-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filtering down spectral bands #409
Comments
What collection are you looking at? I did a search and looks like there's a collection containing band-specific cloud-optimized geotiffs for this dataset (collection 10.5067/HLS/HLSS30.002) : For this collection you could use the |
Hi @jparal, if you know the name of the bands you want to filter you can definitely do it, here is an example after we get our results from filtered_urls = []
for granule in results:
links = granule.data_links()
for link in links:
if any(pattern in link for pattern in ["B02", "B01"]):
filtered_urls.append(link)
earthaccess.download(filtered_urls, "HLS_DATA") This notebook from LP DAAC does something similar, https://nasa-openscapes.github.io/earthdata-cloud-cookbook/tutorials/Observing_Seasonal_Ag_Changes.html#finding-hls-data-using-earthaccess Let us know if this helps! |
Thank you, this is helpful. I could do it manually as you suggested and wrap the results in some regex filter. Thx. |
Hi, I am trying to download Harmonized Landsat Sentinel (HLS) dataset from earthdata using earthaccess. A single granule contains several spectral bands and mask(s) but for our use case, I only need a subset.
Is there a way for me to select a subset of the bands either using
search_data
API call or manually after getting the result of the search and before passing it ontodownload()
?Thx, J
The text was updated successfully, but these errors were encountered: