microsoft / microsoft/PlanetaryComputerExamples
Question: landsat-c2-l2 scaling & NDVI
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 455
- Forks
- 225
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Abra datasets/landsat-c2/landsat-c2-example.ipynb e revise como odc.stac carrega as bandas red e nir08 antes do cálculo do NDVI. Compare esse cálculo com a escala e o offset documentados e, em seguida, esclareça o motivo do comportamento atual ou atualize o exemplo para que o cálculo do NDVI do notebook esteja correto.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- jupyter-notebook
- Domínio
- data
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100