-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add a tutorial to access NASA CMR STAC api using pystac & stackstac #102
Conversation
pystac-client & stackstac
Hi @srmsoumya, I really like the content of this episode! I have tried to run the code blocks, I wanted to check whether the NASA CMR STAC index could be an alternative to the EarthSearch endpoint used in the data-access episode. However, I get lots of errors like the following when calling
I could nail this down to import rasterio
f = rasterio.open("https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSS30.020/HLS.S30.T36QUK.2021190T081611.v2.0/HLS.S30.T36QUK.2021190T081611.v2.0.B8A.tif")
The error seems to suggest that the extension is not recognised (maybe because of the multiple dots in the file name?). Specifying the driver ( |
Wonderful, seems to work indeed - thank you so much! |
@srmsoumya do you recall where you found the instruction to se these configs?
love that you found it! this was needed for me to use the CMR STAC API |
@rbavery I had my fair share of trouble trying to access NASA CMR STAC and tried multiple things. I guess I found this from one of the tutorials: https://nasa-openscapes.github.io/2021-Cloud-Workshop-AGU/how-tos/Earthdata_Cloud__Single_File__HTTPS_Access_COG_Example.html |
I'll look to finish this in November: #82 (comment) given this issue, we may not want to use CMR STAC as an example anymore and instead switch to something else, maybe the Sentinel-2 data. I'm not sure when the cloud cover filtering will be fixed: nasa/cmr-stac#206 |
closing since this is a bit stale and any material needs to be ported to the new lesson template in #158 |
In this tutorial, we learn to
stackstac
to create lazy xarray's, filter by cloud-cover, compute monthly mosaics