microsoft / microsoft/PlanetaryComputerExamples

Question: landsat-c2-l2 scaling & NDVI

オープン
#310 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

datasets/landsat-c2/landsat-c2-example.ipynb を開き、NDVI の計算前に odc.stac が red バンドと nir08 バンドをどのように読み込むか確認してください。その計算を文書化されているスケールとオフセットと比較し、現在の動作の理由を明らかにするか、ノートブックの NDVI 計算が正しくなるように例を更新してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
jupyter-notebook
領域
data
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。