Skip to content

Commit

Permalink
remove metadata from download when using scenes option
Browse files Browse the repository at this point in the history
  • Loading branch information
nifg414 committed Jan 11, 2024
1 parent ee99a6c commit 195463b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/imagery/i.asf.download/i.asf.download.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ def main():
else:
scenes = options["scenes"].split(",")
results = asf.granule_search(scenes)
# Remove metadata from download
for file in results:
if file.properties['fileName'].endswith('iso.xml') and file.properties['processingLevel'] == 'METADATA_GRD_HD':
results.remove(file)
else:
results = asf.geo_search(**opts)
checkout_results(results)
Expand Down

0 comments on commit 195463b

Please sign in to comment.