agdc icon indicating copy to clipboard operation
agdc copied to clipboard

--outfile for retrieve_pixel_time_series.py ?

Open juan-guerschman opened this issue 9 years ago • 3 comments

Hi there,

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

Thanks

juan-guerschman avatar Jan 28 '16 07:01 juan-guerschman

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

sixy6e avatar Jan 28 '16 22:01 sixy6e

Thanks Josh,

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

juan-guerschman avatar Jan 28 '16 22:01 juan-guerschman

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.

sixy6e avatar Jan 28 '16 22:01 sixy6e