ornldaac/daymet-single-pixel-batch

bash script does not write files correctly with wget

Opened this issue · 0 comments

Currently the wget option in daymet_spt_batch.sh uses wget -o to create the output file
The example file has the line

file1.csv, 45.0,   -97.0

which is supposed to output the info for this location to file1.csv. However, this produces

-rw-r--r-- 1 peter peter 28543 Sep 19 20:09 'data?lat=45.0&lon=-97.0&measuredParams=tmin,tmax,prcp&year=2012,2013,2014'
-rw-r--r-- 1 peter peter     0 Sep 19 20:09  file1.csv

... i.e., file1.csv is empty and the data is in the very funnily named file.

The script should have -O instead of -o.