Closed anayeaye closed 1 year ago
Update: this is no longer blocked. The staging stack is now running with the upgraded titiler code.
Is this what you would expect for the hurricane maria ndwi? Naively it looks like there is some kind of offset relative to the water features on the basemap
@jsignell I see what you mean about the apparent offset and do not know if it should be expected for the index (I had selected one just to showcase the different options for visualizing multi band data. We have observed some differences in how tiles are rendered with the latest raster-api and it is possible this visualization could have changed.
@brianmfreitag does this look right to you and/or you recommend another index?
What
This is a list of notebooks and updates that will be needed when the upgraded titiler is released. I ran this work locally against https://test-raster.delta-backend.com/ some of the changes pre-date the most recent upgrade.
PI Objective
https://github.com/NASA-IMPACT/veda-architecture/issues/333
Why not just a PR?
We check in evaluated notebooks so instead; let's reproduce these changes after the API is live.
AC
Implement the following changes
statistics/
results for bands as b1, b2, b3 instead of 1, 2, 3notebooks/datasets/ocean-npp-timeseries-analysis.ipynb
In both notebooks the clean_stats method used to shorten the keys in the results off"{RASTER_API_URL}/cog/statistics"
need to be updated to use statistics.b1 instead of statistics.1. This comes from an earlier titiler change that normalized band keys in stats responses.statistics/
exactly the sameclean_stats()
change as above notebooks/quickstarts/timeseries-stac-api.ipynb`notebooks/tutorials/gif-generation.ipynb
usecog/feature
instead ofcog/crop
. Header text and code changes neededhelper_functions.py
usecog/feature
instead ofcog/crop
notebooks/quickstarts/hls-visualization.ipynb
has older changes unrelated to upgrade. First we need to correct the band expressions defined a the top of the notebook by adding_b1
. Then we should add back the third tiling example so that we cover all three cases (Map 1 = shows how to apply post process algorithm, Map 2 = demonstrates composite of multiple bands, Map 3 (previously removed because of band expression error) shows applying NDVI band math in the tile url.s30_vegetation_index_expression = "(B08_b1-B04_b1)/(B08_b1+B04_b1)"
l30_ndwi_expression = "(B03_b1-B05_b1)/(B03_b1+B05_b1)"
"post_process": "swir"
with"algorithm": "swir"
in example map one of SWIR post processing_b1
)