GeoscienceAustralia / agdc

Repository for Australian Geoscience Data Cube (AGDC) code
BSD 3-Clause "New" or "Revised" License
29 stars 24 forks source link

--outfile for retrieve_pixel_time_series.py ? #96

Open juan-guerschman opened 8 years ago

juan-guerschman commented 8 years ago

Hi there,

Is there a way to have an output called something other than "output.csv" out of retrieve_pixel_time_series.py ?

Thanks

sixy6e commented 8 years ago

Also could be the version you are using.

Specifying the --output-directory flag, will output the file with a filename with the following elements:

{Satellite}_{Product}_{masking applied}_{Lon}_{Lat}_{Start Datetime}_{End Datetime}.csv

For example:

retrieve_pixel_time_series.py --lon 120.25 --lat -20.25 --acq-min 2013-12 --acq-max 2013-12 --satellite LS7 --dataset-type ARG25 --quiet --mask-pqa-apply --hide-no-data --output-directory $PWD

yeilds:

LS7_NBAR_WITH_PQA_120.25000_-20.25000_2013_12_01_2013_12_31.csv

Hope that helps

juan-guerschman commented 8 years ago

Thanks Josh,

I was actually referring to retrieve_aoi_time_series.py (my mistake)

sixy6e commented 8 years ago

Ahh ok.

Just had a look at the code and it is marked as a TODO.

https://github.com/GeoscienceAustralia/agdc/blob/develop/api/source/main/python/datacube/api/tool/retrieve_aoi_time_series.py#L341

Unfortunately it won't be addressed at our end, so the best I can offer is rename the output file. mv output.csv some-other-name.csv.

Sorry it's not the solution you're looking for.