Add capability to download custom set of assets from DataGranule using earthaccess.download() #1088
Replies: 3 comments 1 reply
-
|
Would you mind providing some example code that doesn't do what you want, plus what you imagine the same code might look like after implementing your idea? Thanks! 🙇 |
Beta Was this translation helpful? Give feedback.
-
|
Hi @forrestfwilliams! this is a recurrent requested feature, HLS has a similar issue, what if a user only needs 3 bands from the granule... we talked about using a glob or a list of globs to match the assets: results = earthaccess.search_data(**params)
custom_bands = earthaccess.download(results, pattern=["*B01*", "*S1*"], "./data")Would this work with your use case? |
Beta Was this translation helpful? Give feedback.
-
|
So, is it like having filtering implemented within the download function? #409 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If this already exists it would be awesome to know, but I don't think earthaccess currently supports downloading just one asset (i.e., image band), or a custom set of assets, from a
DataGranuleusingearthaccess.download. It would be great to be able to specify a set of bands when making aearthaccess.downloadcall.Beta Was this translation helpful? Give feedback.
All reactions