podaac / data-subscriber

Subscribe and bulk download collections of data at PO.DAAC
Apache License 2.0
83 stars 29 forks source link

Temporal bounds are ignored when -gr is provided #167

Open skorper opened 5 months ago

skorper commented 5 months ago

We didn't originally support wildcards for -gr, meaning that param would only be used when requesting a specific granule. (temporal bounds were not relevant). Once we added support for wildcards in -gr , we did not consider that temporal bounds are now relevant as -gr may refer to multiple granules if a wildcard is used.

We should update the code so that -gr works with temporal bounds.


Examples (from user who reported this issue):

This command correctly matches with data within the provided temporal bounds:

podaac-data-downloader -c TRPSDL2ALLCRSMGLOS -d data -p GES_DISC -sd 2020-01-01T00:00:00Z -ed 2020-01-02T23:59:59Z

This command corrrect matches NH3 granules, but temporal bounds are ignored:

podaac-data-downloader -c TRPSDL2ALLCRSMGLOS -d data -p GES_DISC -sd 2020-01-01T00:00:00Z -ed 2020-01-02T23:59:59Z -gr *NH3*
skorper commented 5 months ago

related to https://github.com/podaac/data-subscriber/pull/138