PlanetaryComputerExamples icon indicating copy to clipboard operation
PlanetaryComputerExamples copied to clipboard

Question: landsat-c2-l2 scaling & NDVI

Open mnowatzki-treefera opened this issue 2 months ago • 0 comments

Hi,

I was going through the landsat-c2-example.ipynb notebook and noticed that the NDVI is calculated directly from the red and nir08 bands as loaded via odc.stac - without applying the documented scale and offset. My understanding of odc.stac is that it does not apply scaling by default, so the computation as in the example notebook seems to be using the raw integer DNs. Doesn't this bias the NDVI? Is there a specific reason why the example computes NDVI on the unscaled data - or have I misunderstood anything?

Thank you for providing and maintaining these examples, they've been super helpful for getting familiar with MPC!

Best Maike

mnowatzki-treefera avatar Nov 13 '25 12:11 mnowatzki-treefera