microsoft / microsoft/PlanetaryComputerExamples
Question: landsat-c2-l2 scaling & NDVI
Nessuno ha ancora preso questa issue.
- Lingua principale
- Jupyter Notebook
- Stelle
- 455
- Fork
- 225
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Apri datasets/landsat-c2/landsat-c2-example.ipynb e verifica come odc.stac carica le bande red e nir08 prima del calcolo dell’NDVI. Confronta tale calcolo con la scala e l’offset documentati, quindi chiarisci il motivo del comportamento attuale oppure aggiorna l’esempio in modo che il calcolo dell’NDVI del notebook sia corretto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- jupyter-notebook
- Ambito
- data
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100