terraproof 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,217 +1,218 @@
1
- ---
2
- name: time-series-and-change
3
- description: Build analysis-ready satellite time series and detect change defensibly, covering per-observation masking and decoding, compositing, gap handling, temporal alignment, per-date index versus index of a composite, seasonality and phenology confounds, thresholded differences, trend and breakpoint methods, post-classification comparison and validation of change with reference data; use for multi-date optical or SAR monitoring, composites and change maps.
4
- license: MIT
5
- ---
6
-
7
- # Time series and change detection
8
-
9
- ## Define the change question first
10
-
11
- State what change means (land-cover conversion, disturbance, flooding, gradual
12
- trend), the minimum detectable size and magnitude, the period and the
13
- observation frequency needed. Different change-detection procedures produce
14
- different change maps even in the same environment [S1]; the question decides the
15
- method, not the other way round. Reviews organise Landsat time-series change
16
- detection by temporal frequency, preprocessing, algorithm and application [S2].
17
-
18
- Related skills: [satellite preprocessing](../satellite-preprocessing/SKILL.md)
19
- (decoding, QA masks, single-period composites),
20
- [spectral indices](../spectral-indices/SKILL.md) (formulas, dNBR),
21
- [SAR basics](../sar-basics/SKILL.md) (backscatter scales, orbit consistency),
22
- [STAC and cloud access](../stac-and-cloud-access/SKILL.md) (search, loading,
23
- provenance), [raster processing](../raster-processing/SKILL.md) (grids,
24
- resampling), [accuracy assessment](../accuracy-assessment/SKILL.md) (validation).
25
- Shared rules: [engineering](../../instructions/engineering.md),
26
- [simplicity](../../instructions/simplicity.md), [security](../../instructions/security.md).
27
-
28
- ## Build an analysis-ready time series
29
-
30
- Process each observation **before** stacking or compositing:
31
-
32
- 1. Decode scale/offset exactly once and mask fill, cloud, shadow and other QA
33
- classes per sensor ([satellite preprocessing](../satellite-preprocessing/SKILL.md)).
34
- Check whether your loader already decoded the data
35
- ([STAC and cloud access](../stac-and-cloud-access/SKILL.md#know-what-your-loader-decodes)).
36
- 2. Put all dates on **one grid** (CRS, transform, shape); categorical QA layers
37
- with nearest neighbour.
38
- 3. Merge tiles of the same acquisition into one observation (e.g. odc-stac
39
- `groupby="solar_day"`) so overlaps are not counted as extra dates [S3].
40
- 4. Keep one consistent product definition: processing level and baseline,
41
- sensor, band (B08 vs B8A) and, for SAR, quantity/scale and relative orbit.
42
- 5. Keep per-observation provenance: item id, acquisition time (UTC), processing
43
- version and mask policy.
44
-
45
- Store a **valid-observation count** per pixel and period beside every composite
46
- or statistic. A median of two valid observations is not comparable with a median
47
- of twenty.
48
-
49
- ## Handle gaps without inventing data
50
-
51
- - Invalid pixels stay nodata (NaN or a declared nodata), never 0 — zero is a
52
- valid reflectance or index value.
53
- - Set a minimum valid count per period and mask results below it; report the
54
- masked fraction.
55
- - Interpolation or gap filling is a model: label filled values, keep the
56
- original count, and never treat filled values as observations in validation.
57
- - Irregular sampling (orbit changes, constellation gaps, seasonal cloud) biases
58
- composites towards the clearer part of a period; report the dates that
59
- actually contributed.
60
-
61
- ## Align observations in time
62
-
63
- STAC `datetime` is UTC [S4]. Define periods (calendar months, 16-day windows,
64
- seasons) explicitly, and whether an observation belongs to a period by its UTC
65
- timestamp or local solar day. For bi-temporal change use comparable dates
66
- (anniversary dates or the same phenological window), the same sensor geometry
67
- (SAR: same relative orbit) and the same processing baseline where possible.
68
-
69
- ## Composite of indices is not index of composite
70
-
71
- For a nonlinear index such as NDVI, the median (or mean) of per-date indices
72
- differs in general from the index of per-band composites, and per-band medians can
73
- come from **different dates**. Three valid dates (red, NIR):
74
- (0.05, 0.40), (0.10, 0.20), (0.04, 0.30):
75
-
76
- ```text
77
- per-date NDVI = 0.778, 0.333, 0.765 → median of NDVI = 0.765
78
- median red, median NIR = 0.05 (date 1), 0.30 (date 3) → NDVI of medians = 0.714
79
- ```
80
-
81
- Pick one, name it in metadata and outputs, and use it consistently across
82
- periods. A medoid or best-observation composite keeps real spectra from a single
83
- date ([satellite preprocessing](../satellite-preprocessing/SKILL.md)). The code below computes both, with counts:
84
-
85
- ```python
86
- import numpy as np
87
- import xarray as xr
88
-
89
- def ndvi(red, nir):
90
- den = nir + red
91
- return ((nir - red) / den).where(den != 0)
92
-
93
- def monthly_products(red, nir, min_obs=3):
94
- """red, nir: decoded, masked reflectance (NaN = invalid), dims (time, y, x)."""
95
- valid = np.isfinite(red) & np.isfinite(nir) & ((red + nir) != 0)
96
- red, nir = red.where(valid), nir.where(valid)
97
- count = valid.resample(time="1MS").sum()
98
- median_of_ndvi = ndvi(red, nir).resample(time="1MS").median()
99
- ndvi_of_median = ndvi(red.resample(time="1MS").median(),
100
- nir.resample(time="1MS").median())
101
- enough = count >= min_obs
102
- return xr.Dataset({
103
- "valid_count": count,
104
- "median_of_ndvi": median_of_ndvi.where(enough),
105
- "ndvi_of_median": ndvi_of_median.where(enough),
106
- })
107
- ```
108
-
109
- Both products use the same observations: finite red/NIR pairs with a nonzero
110
- NDVI denominator. Undefined per-date NDVI never increases `valid_count` or
111
- satisfies `min_obs`. On the three dates above this returns 0.765 and 0.714 with
112
- `valid_count` 3. For
113
- Dask-backed arrays, test chunking along `time` before relying on median
114
- reductions; write outputs with explicit nodata
115
- ([raster processing](../raster-processing/SKILL.md)).
116
-
117
- ## Separate seasonality and phenology from change
118
-
119
- Vegetation indices, soil moisture, snow and water levels vary within the year.
120
- A difference between a spring and a summer image is mostly phenology. Options:
121
-
122
- - compare the same season or phenological stage across years;
123
- - use a multi-year baseline per period (e.g. same month in prior years) and
124
- express change as a departure from it;
125
- - use models that represent seasonality explicitly (harmonic or seasonal terms),
126
- as BFAST and CCDC do [S5, S6].
127
-
128
- Also check for non-land-change causes: residual cloud/shadow, sensor or baseline
129
- changes, illumination and view geometry, and (SAR) moisture and incidence angle.
130
-
131
- ## Thresholded differences
132
-
133
- Bi-temporal differencing (e.g. ΔNDVI, dNBR) or SAR log ratios
134
- (`log10(date2/date1)` on linear power) is simple and transparent
135
- ([spectral indices](../spectral-indices/SKILL.md), [SAR basics](../sar-basics/SKILL.md)).
136
- The corresponding difference in dB is ten times that log ratio; declare the
137
- units before selecting a threshold.
138
-
139
- - Use the intersection of both dates' valid masks.
140
- - No universal threshold exists; derive and document it for the study area
141
- (reference data, histogram analysis) and report sensitivity to it.
142
- - A difference measures signal change, not cause; interpret with the change
143
- definition and validate.
144
-
145
- ## Trend and breakpoint methods
146
-
147
- Dense time-series methods model each pixel's trajectory and flag departures:
148
-
149
- - **BFAST** decomposes a series into trend, seasonal and remainder components and
150
- detects abrupt changes in the trend and seasonal components [S5].
151
- - **CCDC** uses all available observations, iteratively fitting harmonic
152
- functions and finding temporal breakpoints [S6, S7].
153
- - **LandTrendr** temporally segments yearly Landsat trajectories into linear
154
- segments to characterise disturbance and recovery [S8, S7].
155
-
156
- Their parameters, input requirements and outputs are compared in
157
- [references/change-methods.md](references/change-methods.md). Each needs a
158
- consistent, well-masked series; gaps, undetected clouds and baseline changes
159
- create false breaks. Treat their parameters as model choices to document and
160
- test, not universal defaults.
161
-
162
- ## Post-classification comparison
163
-
164
- Comparing two independently classified maps labels every classification error
165
- in either date as change, and the accuracies of the two single-date maps say
166
- nothing about the accuracy of the change classes [S9]. Prefer mapping change
167
- directly (time-series or multi-date classification). If maps must be compared,
168
- assess the resulting change map itself.
169
-
170
- ## Validate change with reference data
171
-
172
- Change is usually rare, so assessment needs a probability sample **stratified by
173
- the change map's classes** (e.g. loss, gain, stable) with enough units in the
174
- change strata, reference labels that cover both dates, and area-adjusted
175
- estimates with confidence intervals [S9, S10]. Follow
176
- [accuracy assessment](../accuracy-assessment/SKILL.md); do not report change area
177
- as a pixel count of the change map.
178
-
179
- ## Verify with Terraproof
180
-
181
- ```bash
182
- python -m terraproof check ndvi_2023-06.tif ndvi_2024-06.tif --expect index
183
- python -m terraproof check composite_count_2024-06.tif
184
- python -m terraproof check source-item.json
185
- ```
186
-
187
- `raster.grid_alignment` (dates on one grid), `raster.nodata_declared`,
188
- `crs.defined`/`crs.consistent`, `rs.index_range` (normalised indices, not dNBR or
189
- differences), `rs.reflectance_range` (decoded reflectance composites) and
190
- `stac.provenance` apply today.
191
-
192
- For source Items, add `--time-range START END` to run `rs.temporal_scope`.
193
- For individual decoded observations, `--qa QA.tif --qa-kind s2-scl` runs
194
- `rs.cloud_mask_applied`; use `landsat-qa-pixel` for Landsat. Compare a decoded
195
- observation to its raw source with `--reference-input RAW.tif --encoding s2-l2a`
196
- or `landsat-c2-l2` for `rs.scale_applied_once`. These sampled pixel comparisons
197
- do not validate a composite against a single acquisition's QA or raw DN.
198
- `--manifest run.json --require-provenance` runs `provenance.reproducible`.
199
- For change-map reference samples and estimates, follow the current CLI example
200
- in [accuracy assessment](../accuracy-assessment/SKILL.md#verify-with-terraproof).
201
-
202
- **Not checked automatically:** composite method and its consistency across
203
- periods, valid-count thresholds, phenological comparability, change thresholds,
204
- breakpoint-model parameters, and whether a detected change is real.
205
-
206
- ## Sources
207
-
208
- - [S1 — Singh, A. (1989). Digital change detection techniques using remotely-sensed data. International Journal of Remote Sensing 10(6):989–1003](https://doi.org/10.1080/01431168908903939): different procedures give different change maps.
209
- - [S2 — Zhu, Z. (2017). Change detection using Landsat time series: a review of frequencies, preprocessing, algorithms, and applications. ISPRS J. Photogramm. Remote Sens. 130:370–384](https://doi.org/10.1016/j.isprsjprs.2017.06.013).
210
- - [S3 — odc-stac `load`](https://odc-stac.readthedocs.io/en/latest/_api/odc.stac.load.html): `groupby="solar_day"` and fusing of overlapping items.
211
- - [S4 — STAC Item specification](https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md): `datetime` in UTC.
212
- - [S5 — Verbesselt, J., Hyndman, R., Newnham, G., Culvenor, D. (2010). Detecting trend and seasonal changes in satellite image time series. Remote Sensing of Environment 114(1):106–115](https://doi.org/10.1016/j.rse.2009.08.014); [bfast package description](https://github.com/cran/bfast/blob/master/DESCRIPTION): trend/seasonal/remainder decomposition and break detection.
213
- - [S6 — Zhu, Z., Woodcock, C.E. (2014). Continuous change detection and classification of land cover using all available Landsat data. Remote Sensing of Environment 144:152–171](https://doi.org/10.1016/j.rse.2014.01.011).
214
- - [S7 — Google Earth Engine `ee.Algorithms.TemporalSegmentation.Ccdc`](https://developers.google.com/earth-engine/apidocs/ee-algorithms-temporalsegmentation-ccdc) and [`LandTrendr`](https://developers.google.com/earth-engine/apidocs/ee-algorithms-temporalsegmentation-landtrendr): harmonic-function breakpoints; temporal segmentation of spectral trajectories.
215
- - [S8 — Kennedy, R.E., Yang, Z., Cohen, W.B. (2010). Detecting trends in forest disturbance and recovery using yearly Landsat time series: 1. LandTrendr. Remote Sensing of Environment 114(12):2897–2910](https://doi.org/10.1016/j.rse.2010.07.008).
216
- - [S9 — FAO (2016). Map accuracy assessment and area estimation: a practical guide](https://www.fao.org/3/i5601e/i5601e.pdf): accuracy of change must be assessed on change, not on two single-date maps; stratification for change classes.
217
- - [S10 — Olofsson, P. et al. (2014). Good practices for estimating area and assessing accuracy of land change. Remote Sensing of Environment 148:42–57](https://doi.org/10.1016/j.rse.2014.02.015).
1
+ ---
2
+ name: time-series-and-change
3
+ description: Build analysis-ready satellite time series and detect change defensibly, covering per-observation masking and decoding, compositing, gap handling, temporal alignment, per-date index versus index of a composite, seasonality and phenology confounds, thresholded differences, trend and breakpoint methods, post-classification comparison and validation of change with reference data; use for multi-date optical or SAR monitoring, composites and change maps.
4
+ license: MIT
5
+ ---
6
+
7
+ # Time series and change detection
8
+
9
+ ## Define the change question first
10
+
11
+ State what change means (land-cover conversion, disturbance, flooding, gradual
12
+ trend), the minimum detectable size and magnitude, the period and the
13
+ observation frequency needed. Different change-detection procedures produce
14
+ different change maps even in the same environment [S1]; the question decides the
15
+ method, not the other way round. Reviews organise Landsat time-series change
16
+ detection by temporal frequency, preprocessing, algorithm and application [S2].
17
+
18
+ Related skills: [satellite preprocessing](../satellite-preprocessing/SKILL.md)
19
+ (decoding, QA masks, single-period composites),
20
+ [spectral indices](../spectral-indices/SKILL.md) (formulas, dNBR),
21
+ [SAR basics](../sar-basics/SKILL.md) (backscatter scales, orbit consistency),
22
+ [STAC and cloud access](../stac-and-cloud-access/SKILL.md) (search, loading,
23
+ provenance), [raster processing](../raster-processing/SKILL.md) (grids,
24
+ resampling), [accuracy assessment](../accuracy-assessment/SKILL.md) (validation).
25
+ Shared rules: [engineering](../../instructions/engineering.md),
26
+ [simplicity](../../instructions/simplicity.md), [security](../../instructions/security.md).
27
+
28
+ ## Build an analysis-ready time series
29
+
30
+ Process each observation **before** stacking or compositing:
31
+
32
+ 1. Decode scale/offset exactly once and mask fill, cloud, shadow and other QA
33
+ classes per sensor ([satellite preprocessing](../satellite-preprocessing/SKILL.md)).
34
+ Check whether your loader already decoded the data
35
+ ([STAC and cloud access](../stac-and-cloud-access/SKILL.md#know-what-your-loader-decodes)).
36
+ 2. Put all dates on **one grid** (CRS, transform, shape); categorical QA layers
37
+ with nearest neighbour.
38
+ 3. Merge tiles of the same acquisition into one observation (e.g. odc-stac
39
+ `groupby="solar_day"`) so overlaps are not counted as extra dates [S3].
40
+ 4. Keep one consistent product definition: processing level and baseline,
41
+ sensor, band (B08 vs B8A) and, for SAR, quantity/scale and relative orbit.
42
+ 5. Keep per-observation provenance: item id, acquisition time (UTC), processing
43
+ version and mask policy.
44
+
45
+ Store a **valid-observation count** per pixel and period beside every composite
46
+ or statistic. A median of two valid observations is not comparable with a median
47
+ of twenty.
48
+
49
+ ## Handle gaps without inventing data
50
+
51
+ - Invalid pixels stay nodata (NaN or a declared nodata), never 0 — zero is a
52
+ valid reflectance or index value.
53
+ - Set a minimum valid count per period and mask results below it; report the
54
+ masked fraction.
55
+ - Interpolation or gap filling is a model: label filled values, keep the
56
+ original count, and never treat filled values as observations in validation.
57
+ - Irregular sampling (orbit changes, constellation gaps, seasonal cloud) biases
58
+ composites towards the clearer part of a period; report the dates that
59
+ actually contributed.
60
+
61
+ ## Align observations in time
62
+
63
+ STAC `datetime` is UTC [S4]. Define periods (calendar months, 16-day windows,
64
+ seasons) explicitly, and whether an observation belongs to a period by its UTC
65
+ timestamp or local solar day. For bi-temporal change use comparable dates
66
+ (anniversary dates or the same phenological window), the same sensor geometry
67
+ (SAR: same relative orbit) and the same processing baseline where possible.
68
+
69
+ ## Composite of indices is not index of composite
70
+
71
+ For a nonlinear index such as NDVI, the median (or mean) of per-date indices
72
+ differs in general from the index of per-band composites, and per-band medians can
73
+ come from **different dates**. Three valid dates (red, NIR):
74
+ (0.05, 0.40), (0.10, 0.20), (0.04, 0.30):
75
+
76
+ ```text
77
+ per-date NDVI = 0.778, 0.333, 0.765 → median of NDVI = 0.765
78
+ median red, median NIR = 0.05 (date 1), 0.30 (date 3) → NDVI of medians = 0.714
79
+ ```
80
+
81
+ Pick one, name it in metadata and outputs, and use it consistently across
82
+ periods. A medoid or best-observation composite keeps real spectra from a single
83
+ date ([satellite preprocessing](../satellite-preprocessing/SKILL.md)). The code below computes both, with counts:
84
+
85
+ ```python
86
+ import numpy as np
87
+ import xarray as xr
88
+
89
+ def ndvi(red, nir):
90
+ den = nir + red
91
+ return ((nir - red) / den).where(den != 0)
92
+
93
+ def monthly_products(red, nir, min_obs=3):
94
+ """red, nir: decoded, masked reflectance (NaN = invalid), dims (time, y, x)."""
95
+ valid = np.isfinite(red) & np.isfinite(nir) & ((red + nir) != 0)
96
+ red, nir = red.where(valid), nir.where(valid)
97
+ count = valid.resample(time="1MS").sum()
98
+ median_of_ndvi = ndvi(red, nir).resample(time="1MS").median()
99
+ ndvi_of_median = ndvi(red.resample(time="1MS").median(),
100
+ nir.resample(time="1MS").median())
101
+ enough = count >= min_obs
102
+ return xr.Dataset({
103
+ "valid_count": count,
104
+ "median_of_ndvi": median_of_ndvi.where(enough),
105
+ "ndvi_of_median": ndvi_of_median.where(enough),
106
+ })
107
+ ```
108
+
109
+ Both products use the same observations: finite red/NIR pairs with a nonzero
110
+ NDVI denominator. Undefined per-date NDVI never increases `valid_count` or
111
+ satisfies `min_obs`. On the three dates above this returns 0.765 and 0.714 with
112
+ `valid_count` 3. For
113
+ Dask-backed arrays, test chunking along `time` before relying on median
114
+ reductions; write outputs with explicit nodata
115
+ ([raster processing](../raster-processing/SKILL.md)).
116
+
117
+ ## Separate seasonality and phenology from change
118
+
119
+ Vegetation indices, soil moisture, snow and water levels vary within the year.
120
+ A difference between a spring and a summer image is mostly phenology. Options:
121
+
122
+ - compare the same season or phenological stage across years;
123
+ - use a multi-year baseline per period (e.g. same month in prior years) and
124
+ express change as a departure from it;
125
+ - use models that represent seasonality explicitly (harmonic or seasonal terms),
126
+ as BFAST and CCDC do [S5, S6].
127
+
128
+ Also check for non-land-change causes: residual cloud/shadow, sensor or baseline
129
+ changes, illumination and view geometry, and (SAR) moisture and incidence angle.
130
+
131
+ ## Thresholded differences
132
+
133
+ Bi-temporal differencing (e.g. ΔNDVI, dNBR) or SAR log ratios
134
+ (`log10(date2/date1)` on linear power) is simple and transparent
135
+ ([spectral indices](../spectral-indices/SKILL.md), [SAR basics](../sar-basics/SKILL.md)).
136
+ The corresponding difference in dB is ten times that log ratio; declare the
137
+ units before selecting a threshold.
138
+
139
+ - Use the intersection of both dates' valid masks.
140
+ - No universal threshold exists; derive and document it for the study area
141
+ (reference data, histogram analysis) and report sensitivity to it.
142
+ - A difference measures signal change, not cause; interpret with the change
143
+ definition and validate.
144
+
145
+ ## Trend and breakpoint methods
146
+
147
+ Dense time-series methods model each pixel's trajectory and flag departures:
148
+
149
+ - **BFAST** decomposes a series into trend, seasonal and remainder components and
150
+ detects abrupt changes in the trend and seasonal components [S5].
151
+ - **CCDC** uses all available observations, iteratively fitting harmonic
152
+ functions and finding temporal breakpoints [S6, S7].
153
+ - **LandTrendr** temporally segments yearly Landsat trajectories into linear
154
+ segments to characterise disturbance and recovery [S8, S7].
155
+
156
+ Their parameters, input requirements and outputs are compared in
157
+ [references/change-methods.md](references/change-methods.md). Each needs a
158
+ consistent, well-masked series; gaps, undetected clouds and baseline changes
159
+ create false breaks. Treat their parameters as model choices to document and
160
+ test, not universal defaults.
161
+
162
+ ## Post-classification comparison
163
+
164
+ Comparing two independently classified maps labels every classification error
165
+ in either date as change, and the accuracies of the two single-date maps say
166
+ nothing about the accuracy of the change classes [S9]. Prefer mapping change
167
+ directly (time-series or multi-date classification). If maps must be compared,
168
+ assess the resulting change map itself.
169
+
170
+ ## Validate change with reference data
171
+
172
+ Change is usually rare, so assessment needs a probability sample **stratified by
173
+ the change map's classes** (e.g. loss, gain, stable) with enough units in the
174
+ change strata, reference labels that cover both dates, and area-adjusted
175
+ estimates with confidence intervals [S9, S10]. Follow
176
+ [accuracy assessment](../accuracy-assessment/SKILL.md); do not report change area
177
+ as a pixel count of the change map.
178
+
179
+ ## Verify with Terraproof
180
+
181
+ ```bash
182
+ python -m terraproof check ndvi_2023-06.tif ndvi_2024-06.tif --expect index
183
+ python -m terraproof check composite_count_2024-06.tif
184
+ python -m terraproof check source-item.json
185
+ ```
186
+
187
+ `raster.grid_alignment` (dates on one grid), `raster.nodata_declared`,
188
+ `crs.defined`/`crs.consistent`, `rs.index_range` (normalised indices, not dNBR or
189
+ differences), `rs.reflectance_range` (decoded reflectance composites) and
190
+ `stac.provenance` apply today.
191
+
192
+ For source Items, add `--time-range START END` to run `rs.temporal_scope`.
193
+ For individual decoded observations, `--qa QA.tif --qa-kind s2-scl` runs
194
+ `rs.cloud_mask_applied`; use `landsat-qa-pixel` for Landsat. Compare a decoded
195
+ observation to its raw source with `--reference-input RAW.tif --encoding s2-l2a`
196
+ (with `--decode-offset`, since the S2 offset depends on baseline and distributor)
197
+ or `landsat-c2-l2` for `rs.scale_applied_once`. These sampled pixel comparisons
198
+ do not validate a composite against a single acquisition's QA or raw DN.
199
+ `--manifest run.json --require-provenance` runs `provenance.reproducible`.
200
+ For change-map reference samples and estimates, follow the current CLI example
201
+ in [accuracy assessment](../accuracy-assessment/SKILL.md#verify-with-terraproof).
202
+
203
+ **Not checked automatically:** composite method and its consistency across
204
+ periods, valid-count thresholds, phenological comparability, change thresholds,
205
+ breakpoint-model parameters, and whether a detected change is real.
206
+
207
+ ## Sources
208
+
209
+ - [S1 — Singh, A. (1989). Digital change detection techniques using remotely-sensed data. International Journal of Remote Sensing 10(6):989–1003](https://doi.org/10.1080/01431168908903939): different procedures give different change maps.
210
+ - [S2 — Zhu, Z. (2017). Change detection using Landsat time series: a review of frequencies, preprocessing, algorithms, and applications. ISPRS J. Photogramm. Remote Sens. 130:370–384](https://doi.org/10.1016/j.isprsjprs.2017.06.013).
211
+ - [S3 — odc-stac `load`](https://odc-stac.readthedocs.io/en/latest/_api/odc.stac.load.html): `groupby="solar_day"` and fusing of overlapping items.
212
+ - [S4 — STAC Item specification](https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md): `datetime` in UTC.
213
+ - [S5 — Verbesselt, J., Hyndman, R., Newnham, G., Culvenor, D. (2010). Detecting trend and seasonal changes in satellite image time series. Remote Sensing of Environment 114(1):106–115](https://doi.org/10.1016/j.rse.2009.08.014); [bfast package description](https://github.com/cran/bfast/blob/master/DESCRIPTION): trend/seasonal/remainder decomposition and break detection.
214
+ - [S6 — Zhu, Z., Woodcock, C.E. (2014). Continuous change detection and classification of land cover using all available Landsat data. Remote Sensing of Environment 144:152–171](https://doi.org/10.1016/j.rse.2014.01.011).
215
+ - [S7 — Google Earth Engine `ee.Algorithms.TemporalSegmentation.Ccdc`](https://developers.google.com/earth-engine/apidocs/ee-algorithms-temporalsegmentation-ccdc) and [`LandTrendr`](https://developers.google.com/earth-engine/apidocs/ee-algorithms-temporalsegmentation-landtrendr): harmonic-function breakpoints; temporal segmentation of spectral trajectories.
216
+ - [S8 — Kennedy, R.E., Yang, Z., Cohen, W.B. (2010). Detecting trends in forest disturbance and recovery using yearly Landsat time series: 1. LandTrendr. Remote Sensing of Environment 114(12):2897–2910](https://doi.org/10.1016/j.rse.2010.07.008).
217
+ - [S9 — FAO (2016). Map accuracy assessment and area estimation: a practical guide](https://www.fao.org/3/i5601e/i5601e.pdf): accuracy of change must be assessed on change, not on two single-date maps; stratification for change classes.
218
+ - [S10 — Olofsson, P. et al. (2014). Good practices for estimating area and assessing accuracy of land change. Remote Sensing of Environment 148:42–57](https://doi.org/10.1016/j.rse.2014.02.015).
@@ -390,3 +390,57 @@ The full calibration/QA checks (`src/terraproof/checks/processing_full.py`) and
390
390
  checker scorecard (`tests/checker_scorecard.py`) are original Terraproof/Geova MIT code. No
391
391
  external implementation is vendored. Raster validity follows the
392
392
  [Rasterio mask API](https://rasterio.readthedocs.io/en/stable/topics/masks.html).
393
+
394
+ ## Verification contracts and runtime admission
395
+
396
+ Verification contracts, structured diagnostics, unsigned evidence bundles and the
397
+ study runtime-admission helper are original Terraproof/Geova code under this
398
+ repository's MIT license. No external implementation or data is vendored.
399
+ Existing product skills, sources and third-party attribution remain included in
400
+ candidate wheels. Evidence bundles are local integrity records, not signatures
401
+ or scientific certification.
402
+
403
+ ---
404
+
405
+ ## Real-data held-out verification cases (Phase 8)
406
+
407
+ The bundle `evals/verification-heldout-real/` fetches the following public
408
+ sources with fixed URLs (no account, API key, requester-pays bucket or expiring
409
+ signed URL) into a local, git-ignored cache; binaries are never committed. The
410
+ SHA-256 of every fetched file is recorded in the bundle's cache manifest.
411
+
412
+ ### Sentinel-2 L2A (Copernicus, via Earth Search)
413
+
414
+ - **Data:** single scene `S2B_32TMS_20250831_0_L2A` (MGRS tile 32TMS, acquired
415
+ 2025-08-31, Bernese Oberland, Switzerland), served as stage-1 COGs by
416
+ element84's Earth Search STAC API v1
417
+ (`https://earth-search.aws.element84.com/v1`) with companion tileinfo JSON
418
+ and granule metadata XML.
419
+ - **Licence:** ESA Copernicus Sentinel data, free of charge under the ESA
420
+ Sentinel use conditions.
421
+ - **Required attribution:** *"Contains modified Copernicus Sentinel data
422
+ 2025."*
423
+
424
+ ### Copernicus DEM GLO-30
425
+
426
+ - **Data:** small windows of tiles `N28 E084` (Nepal) and `N78 E016`
427
+ (Svalbard), 30 m elevation rasters (EPSG:4326), from the public
428
+ Copernicus DEM S3 bucket on AWS Open Data
429
+ (`copernicus-dem-30m.s3.amazonaws.com`).
430
+ - **Licence:** Copernicus Digital Elevation Model — © DLR 2025, made available
431
+ by ESA/DLR for the Copernicus programme for free use with attribution.
432
+ - **Required attribution:** *"Contains Copernicus DEM data"*/*"© DLR"*.
433
+
434
+ ### USGS 3DEP 1/3 arc-second
435
+
436
+ - **Data:** windows of tiles `n31w091` (Mississippi delta) and `n22w159`
437
+ (Kauai) with their FGDC metadata sidecars, from the public USGS
438
+ (`prd-tnm.s3.amazonaws.com`) staged elevation products (resolution 13).
439
+ - **Licence:** public domain — the sidecar itself states *"All 3DEP products
440
+ are public domain."*
441
+
442
+ ### Natural Earth 110m admin-0 countries
443
+
444
+ - **Data:** `ne_110m_admin_0_countries.geojson` pinned at tag v5.1.2 of
445
+ `https://github.com/nvkelso/natural-earth-vector` (published via GitHub raw).
446
+ - **Licence:** public domain (no restrictions, no attribution required).