carpentries-incubator / geospatial-python

Introduction to Geospatial Raster and Vector Data with Python
https://carpentries-incubator.github.io/geospatial-python/
Other
159 stars 57 forks source link

update episode 5 to replace v0 with v1 earth search endpoint, update some code accordingly #138

Closed rbavery closed 1 year ago

rbavery commented 1 year ago

This updates episode 5 to use the v1 endpoint instead of v0.

There are some differences beyond just a url change. The assets are now named with common names instead of B01, B02, etc. The images are also larger, the full granules it looks like. So I added an example for saving a subset of a tif.

Also updated .get_all_items > .item_collection because of a deprecation warning.

On a fresh geo env I was not getting a working v0 endpoint to work, so this is somewhat time sensitive. I'll look to have the other episodes finished Wednesday.

Before merging this, I'll convert each lesson and Pr each episode separately for y'all to review if you have time. @fnattino @rogerkuou

rbavery commented 1 year ago
  • We should also update the first exercise ("Explore a STAC catalog") - the link in the exercise text still points to the old endpoint, the screen shots and the answers need to be updated. Let me know if you want me to implement these changes, I should have time to do this tomorrow (Wednesday).

Thanks so much for the quick review @fnattino ! And for the offer to help here with a new image, that would be much appreciated. I can update the answers to the exercise.

I think that the images have not changed size, but you are looking at a different (higher resolution) band as compared to what we previously had: while we were previously looking at a 60m band ("B01", which became "coastal" in the new deployment), you have now considered a 10m band ("nir", which was previously "B08"). Anyway, saving a portion of an image is also very useful, so the change looks good to me.

Ah, true! I mixed up the band order here with Landsat 5 and 7 where band 1 is blue.

fnattino commented 1 year ago

Figure modified and pushed here!