microsoft / microsoft/PlanetaryComputerExamples
Question: landsat-c2-l2 scaling & NDVI
还没有人认领这个 Issue。
- 主要语言
- Jupyter Notebook
- 星标
- 455
- 派生
- 225
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开 datasets/landsat-c2/landsat-c2-example.ipynb,检查 odc.stac 在计算 NDVI 之前如何加载 red 和 nir08 波段。将该计算与文档中说明的 scale 和 offset 进行比较,然后明确当前行为的原因,或更新示例,使 notebook 的 NDVI 计算正确。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- jupyter-notebook
- 领域
- data
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100