data-subscriber
data-subscriber copied to clipboard
-dc flag fails when GranuleUR and granule filename do not match
The -dc flag allows users to download data into folders by cycle. As written, this assumes the CMR UMM-G GranuleUR matches the granule filename (without extension). This is not always the case, for example SWOT sub-collections.
We should update this logic so the filename and GranuleUR don't have to match for the -dc flag to work as expected.
This issue can be recreated with the following command:
podaac-data-downloader -c SWOT_L2_NALT_GDR_SSHA_2.0 -d .data/ -e .nc -dc --cycle 474