Skip to content

Commit

Permalink
Handle CMR advertising of granules without .hdf extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob committed Mar 29, 2023
1 parent 629a6a8 commit 18d498e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- fixed authentication flow (#174)
- #### v 1.0.3
- added support for new metadata structure and SHA256 checksum (used for download validation when using the -robust option)
- added support for CMR advertising granules by name (without .hdf) rather than filename (with .hdf)

- ## v 0.3
- #### v 0.3.0:
Expand Down
5 changes: 4 additions & 1 deletion modape/modis/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ def download(self,
# check if downloads are OK
for fid, err in downloaded_temp:
if err is None:
del to_download[fid]
try:
del to_download[fid]
except KeyError:
del to_download[fid[:-4]]
downloaded.append(fid)

if to_download:
Expand Down

0 comments on commit 18d498e

Please sign in to comment.