microsoft / microsoft/PlanetaryComputerExamples

Question: landsat-c2-l2 scaling & NDVI

未關閉
#310 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。