data-subscriber
data-subscriber copied to clipboard
Temporal bounds are ignored when -gr is provided
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*
related to https://github.com/podaac/data-subscriber/pull/138