Add temporal analysis and raster change detection

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
data

調査の方向性

No specific files, entry points, or tests are named. Start by reviewing the existing raster-analysis algorithms and their xarray time-dimension handling, then define the smallest supported slice of the proposed scope. Done should include the selected temporal-analysis capability, documented behavior for stacked rasters, and validation of Dask-compatible per-pixel processing.

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

説明

after-1.0.0-release enhancement

Motivation

xarray-spatial handles single-time raster analysis well, but lacks tools for multi-temporal workflows. With Sentinel-2, MODIS, and Landsat time series now standard inputs, users regularly need change detection and trend analysis on stacked rasters. Currently this means writing custom code or pulling in unrelated libraries.

Scope

Image differencing and change vectors:

  • Simple band differencing between two dates
  • Change vector analysis (CVA) that computes magnitude and direction of change across multiple bands

Land cover transitions:

  • From/to transition matrices with area estimates (goes beyond what zonal_crosstab does today)
  • Per-class gain/loss/swap/net-change decomposition

Pixel-level trend analysis:

  • Mann-Kendall test for monotonic trend detection over a time series
  • Theil-Sen slope estimator (robust to outliers, good for NDVI trends)

Phenology extraction from NDVI time series:

  • Start of season, end of season, peak timing
  • Seasonal amplitude and integrated greenness

Implementation notes

  • Should work with xarray's time dimension natively, operating along the time axis of a 3D (time, y, x) DataArray.
  • Dask support matters here more than usual since time stacks can be tens of GB. Per-pixel operations (trend tests, phenology) parallelize naturally across spatial chunks.
  • Mann-Kendall and Theil-Sen are per-pixel reductions along the time axis, similar to how apply_ufunc works.
  • Phenology extraction will likely need interpolation or smoothing as a preprocessing step. Could use a simple Savitzky-Golay filter or similar.
主要言語
Python
スター
972
フォーク
92
平均マージ
2日 12時間
マージ済み PR(30日)
7

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

xarray-contrib/xarray-spatial のほかの issue

xarray-contrib/xarray-spatial の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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