agdc
agdc copied to clipboard
--outfile for retrieve_pixel_time_series.py ?
Hi there,
Is there a way to have an output called something other than "output.csv" out of retrieve_pixel_time_series.py ?
Thanks
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
Thanks Josh,
I was actually referring to retrieve_aoi_time_series.py
(my mistake)
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.