Question: landsat-c2-l2 scaling & NDVI
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- jupyter-notebook
- Domain
- data
Research direction
Open datasets/landsat-c2/landsat-c2-example.ipynb and review how odc.stac loads the red and nir08 bands before the NDVI calculation. Compare that calculation with the documented scale and offset, then clarify the reason for the current behavior or update the example so the notebook's NDVI computation is correct.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Jupyter Notebook
- Stars
- 455
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/PlanetaryComputerExamples
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
microsoft/PlanetaryComputerExamples#307 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/PlanetaryComputerExamples#303 · 5 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
All issues in microsoft/PlanetaryComputerExamples
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
removeToken
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
cowprotocol/token-lists#1514 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
anomalyco/models.dev#7670 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
cisagov/cyhy-reports#149 · 3 comments ·
-
correction metadata
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
acl-org/acl-anthology#10032 · 1 comment ·