terraproof 0.7.3 → 0.8.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,141 +1,141 @@
1
- {
2
- "version": "1.0.0",
3
- "checks": {
4
- "crs.defined": {
5
- "family": "crs",
6
- "description": "Each georeferenced input declares a CRS."
7
- },
8
- "crs.consistent": {
9
- "family": "crs",
10
- "description": "Inputs that are combined share one CRS; a mismatch fails until they are reprojected."
11
- },
12
- "crs.metric_operation": {
13
- "family": "crs",
14
- "description": "A distance, area, or buffer operation runs in a projected horizontal CRS with metre or foot units, not in degrees or geocentric coordinates."
15
- },
16
- "geometry.valid": {
17
- "family": "geometry",
18
- "description": "Every geometry is valid (no self-intersections or invalid rings)."
19
- },
20
- "geometry.non_empty": {
21
- "family": "geometry",
22
- "description": "No null or empty geometries are present."
23
- },
24
- "geometry.type_consistent": {
25
- "family": "geometry",
26
- "description": "The layer holds one geometry family; single and multi-part types count together."
27
- },
28
- "geometry.winding": {
29
- "family": "geometry",
30
- "description": "GeoJSON polygon rings follow the RFC 7946 right-hand rule: counterclockwise exteriors, clockwise holes."
31
- },
32
- "scope.record_count": {
33
- "family": "scope",
34
- "description": "The output feature count is compared with a reference dataset's count."
35
- },
36
- "raster.nodata_declared": {
37
- "family": "raster",
38
- "description": "Every raster band declares a nodata value."
39
- },
40
- "raster.resampling": {
41
- "family": "raster",
42
- "description": "The resampling method suits categorical data (nearest or mode)."
43
- },
44
- "raster.grid_alignment": {
45
- "family": "raster",
46
- "description": "Rasters share CRS, pixel size, and pixel-grid origin so they can be combined."
47
- },
48
- "raster.cog_layout": {
49
- "family": "raster",
50
- "description": "Heuristic layout screen for GeoTIFFs: tiled, with internal overviews unless the raster fits in one block, and not lossy JPEG; not COG validation."
51
- },
52
- "rs.reflectance_range": {
53
- "family": "rs",
54
- "description": "Sampled plausibility screen: reflectance values lie within [-0.5, 1.5]; non-finite scale, offset, or values fail. Not a calibration check."
55
- },
56
- "rs.index_range": {
57
- "family": "rs",
58
- "description": "Sampled plausibility screen: spectral index values lie within [-1, 1]; non-finite scale, offset, or values fail."
59
- },
60
- "stac.provenance": {
61
- "family": "stac",
62
- "description": "A STAC Item records a time and a projection code."
63
- },
64
- "rs.scale_applied_once": {
65
- "family": "rs",
66
- "description": "Sampled output pixels equal the input DN through the declared calibration (raster scale/offset metadata, or a product encoding such as s2-l2a or landsat-c2-l2) exactly once; raw DN or a twice-applied calibration fails. Comparison is on a fixed stride and says nothing about other processing steps."
67
- },
68
- "rs.cloud_mask_applied": {
69
- "family": "rs",
70
- "description": "Pixels flagged as cloud or shadow by an aligned QA raster (Sentinel-2 SCL classes 3, 8, 9, 10; Landsat QA_PIXEL bits 1-4) are nodata or NaN in the output; unaligned grids are not-run."
71
- },
72
- "rs.temporal_scope": {
73
- "family": "rs",
74
- "description": "Every STAC item datetime, or the whole start/end interval, falls inside a declared time range; items without a usable acquisition time are not-run."
75
- },
76
- "terrain.slope_consistent": {
77
- "family": "terrain",
78
- "description": "A slope-in-degrees raster matches central differences on its DEM (passed with --dem) using the DEM's declared vertical unit and real pixel spacing; matching the slope with vertical units ignored or square pixels assumed fails, matching neither warns, and geographic or unaligned grids are not-run."
79
- },
80
- "sar.value_domain": {
81
- "family": "sar",
82
- "description": "Sampled backscatter values lie in the domain declared by the expected scale (sigma0-db within [-50, 15] dB; sigma0-linear non-negative with p99 <= 5). Flags decibel/linear confusion as one possible cause; not a calibration check."
83
- },
84
- "sar.geocoded": {
85
- "family": "sar",
86
- "description": "A raster carries both a CRS and a non-identity geotransform; GCP-only geometry or an identity transform fails as not geocoded."
87
- },
88
- "accuracy.sample_design": {
89
- "family": "accuracy",
90
- "description": "Every map class in the reference-sample CSV has at least min_per_class samples (default 50, a configurable rule of thumb); missing class areas when area estimates are requested are warned."
91
- },
92
- "accuracy.estimates": {
93
- "family": "accuracy",
94
- "description": "Confusion matrix, user's and area-weighted producer's accuracy, overall accuracy, and the stratified area-adjusted area of each reference class with 95% confidence intervals (Olofsson et al. 2014, eqs. 5-6 and 10-12); not-run when map-class areas are missing."
95
- },
96
- "provenance.reproducible": {
97
- "family": "provenance",
98
- "description": "A written run manifest verifies: recorded input/output files re-hash identically and recorded tool versions still match; warns on tool-version drift, fails on changed or missing files, an edited manifest core, or a recorded path outside the workspace."
99
- },
100
- "preflight.metric_crs": {
101
- "family": "preflight",
102
- "description": "Plan check: a declared distance, area, or buffer step runs in a projected horizontal CRS with metre or foot units, not in a geographic or geocentric CRS."
103
- },
104
- "preflight.alignment": {
105
- "family": "preflight",
106
- "description": "Plan check: inputs declared for combination or comparison share a CRS, pixel size, and pixel-grid origin, or the plan declares a reprojection/alignment step."
107
- },
108
- "preflight.categorical_resampling": {
109
- "family": "preflight",
110
- "description": "Plan check: a declared categorical layer (classification, mask, or QA band) is resampled with nearest neighbour or mode, not with a bilinear or cubic kernel."
111
- },
112
- "preflight.reflectance_decode": {
113
- "family": "preflight",
114
- "description": "Plan check: an 'expect reflectance' operation on integer raster inputs that carry a non-trivial scale or offset declares a decode step. Reads the plan and input encoding metadata only; it does not compare outputs or show how often a decode was actually applied."
115
- },
116
- "preflight.temporal_scope": {
117
- "family": "preflight",
118
- "description": "Plan check: the requested analysis time range contains the datetimes of the STAC items or inputs the plan selects."
119
- },
120
- "preflight.index_inputs": {
121
- "family": "preflight",
122
- "description": "Plan check: an 'expect index' operation on integer raster inputs that carry a non-trivial scale or offset declares a decode step, so the index would be computed on decoded values rather than raw DN. Reads the plan and input encoding metadata only; it does not verify that the bands a given index needs are present or that any formula was applied."
123
- },
124
- "preflight.output_units": {
125
- "family": "preflight",
126
- "description": "Plan check: the output CRS units match the measurement units the plan requests, so a metric result is not written in degrees or the reverse."
127
- },
128
- "rs.index_formula": {
129
- "family": "rs",
130
- "description": "Opt-in NDVI comparison with declared red/NIR sources, their scale/offset and joint valid support; extra masking warns."
131
- },
132
- "terrain.slope_formula": {
133
- "family": "terrain",
134
- "description": "Opt-in calibrated central-difference slope comparison: every required value, complete center/four-neighbour support and nodata edges."
135
- },
136
- "raster.source_identity": {
137
- "family": "raster",
138
- "description": "Opt-in exact decoded valid-sample and full band-validity comparison with a declared raster source, including grid and band metadata; not COG conformance."
139
- }
140
- }
141
- }
1
+ {
2
+ "version": "1.0.0",
3
+ "checks": {
4
+ "crs.defined": {
5
+ "family": "crs",
6
+ "description": "Each georeferenced input declares a CRS."
7
+ },
8
+ "crs.consistent": {
9
+ "family": "crs",
10
+ "description": "Inputs that are combined share one CRS; a mismatch fails until they are reprojected."
11
+ },
12
+ "crs.metric_operation": {
13
+ "family": "crs",
14
+ "description": "A distance, area, or buffer operation runs in a projected horizontal CRS with metre or foot units, not in degrees or geocentric coordinates."
15
+ },
16
+ "geometry.valid": {
17
+ "family": "geometry",
18
+ "description": "Every geometry is valid (no self-intersections or invalid rings)."
19
+ },
20
+ "geometry.non_empty": {
21
+ "family": "geometry",
22
+ "description": "No null or empty geometries are present."
23
+ },
24
+ "geometry.type_consistent": {
25
+ "family": "geometry",
26
+ "description": "The layer holds one geometry family; single and multi-part types count together."
27
+ },
28
+ "geometry.winding": {
29
+ "family": "geometry",
30
+ "description": "GeoJSON polygon rings follow the RFC 7946 right-hand rule: counterclockwise exteriors, clockwise holes."
31
+ },
32
+ "scope.record_count": {
33
+ "family": "scope",
34
+ "description": "The output feature count is compared with a reference dataset's count."
35
+ },
36
+ "raster.nodata_declared": {
37
+ "family": "raster",
38
+ "description": "Every raster band declares a nodata value."
39
+ },
40
+ "raster.resampling": {
41
+ "family": "raster",
42
+ "description": "The resampling method suits categorical data (nearest or mode)."
43
+ },
44
+ "raster.grid_alignment": {
45
+ "family": "raster",
46
+ "description": "Rasters share CRS, pixel size, and pixel-grid origin so they can be combined."
47
+ },
48
+ "raster.cog_layout": {
49
+ "family": "raster",
50
+ "description": "Heuristic layout screen for GeoTIFFs: tiled, with internal overviews unless the raster fits in one block, and not lossy JPEG; not COG validation."
51
+ },
52
+ "rs.reflectance_range": {
53
+ "family": "rs",
54
+ "description": "Sampled plausibility screen: reflectance values lie within [-0.5, 1.5]; non-finite scale, offset, or values fail. Not a calibration check."
55
+ },
56
+ "rs.index_range": {
57
+ "family": "rs",
58
+ "description": "Sampled plausibility screen: spectral index values lie within [-1, 1]; non-finite scale, offset, or values fail."
59
+ },
60
+ "stac.provenance": {
61
+ "family": "stac",
62
+ "description": "A STAC Item records a time and a projection code."
63
+ },
64
+ "rs.scale_applied_once": {
65
+ "family": "rs",
66
+ "description": "Output pixels equal the input DN through the declared calibration exactly once. Default: sampled band-1 screen. processing_full_scan verifies every corresponding band/pixel, finite delivered values and source invalidity, in bounded windows. Additional output-mask policy and other processing steps are not verified."
67
+ },
68
+ "rs.cloud_mask_applied": {
69
+ "family": "rs",
70
+ "description": "Pixels flagged as cloud or shadow by aligned Sentinel-2 SCL or Landsat QA_PIXEL are nodata or NaN. Default: sampled band-1 screen. processing_full_scan verifies all QA locations and output bands; missing or unsupported QA leaves verification not-run. Cloud detection quality and additional masking policy are not verified."
71
+ },
72
+ "rs.temporal_scope": {
73
+ "family": "rs",
74
+ "description": "Every STAC item datetime, or the whole start/end interval, falls inside a declared time range; items without a usable acquisition time are not-run."
75
+ },
76
+ "terrain.slope_consistent": {
77
+ "family": "terrain",
78
+ "description": "A slope-in-degrees raster matches central differences on its DEM (passed with --dem) using the DEM's declared vertical unit and real pixel spacing; matching the slope with vertical units ignored or square pixels assumed fails, matching neither warns, and geographic or unaligned grids are not-run."
79
+ },
80
+ "sar.value_domain": {
81
+ "family": "sar",
82
+ "description": "Sampled backscatter values lie in the domain declared by the expected scale (sigma0-db within [-50, 15] dB; sigma0-linear non-negative with p99 <= 5). Flags decibel/linear confusion as one possible cause; not a calibration check."
83
+ },
84
+ "sar.geocoded": {
85
+ "family": "sar",
86
+ "description": "A raster carries both a CRS and a non-identity geotransform; GCP-only geometry or an identity transform fails as not geocoded."
87
+ },
88
+ "accuracy.sample_design": {
89
+ "family": "accuracy",
90
+ "description": "Every map class in the reference-sample CSV has at least min_per_class samples (default 50, a configurable rule of thumb); missing class areas when area estimates are requested are warned."
91
+ },
92
+ "accuracy.estimates": {
93
+ "family": "accuracy",
94
+ "description": "Confusion matrix, user's and area-weighted producer's accuracy, overall accuracy, and the stratified area-adjusted area of each reference class with 95% confidence intervals (Olofsson et al. 2014, eqs. 5-6 and 10-12); not-run when map-class areas are missing."
95
+ },
96
+ "provenance.reproducible": {
97
+ "family": "provenance",
98
+ "description": "A written run manifest verifies: recorded input/output files re-hash identically and recorded tool versions still match; warns on tool-version drift, fails on changed or missing files, an edited manifest core, or a recorded path outside the workspace."
99
+ },
100
+ "preflight.metric_crs": {
101
+ "family": "preflight",
102
+ "description": "Plan check: a declared distance, area, or buffer step runs in a projected horizontal CRS with metre or foot units, not in a geographic or geocentric CRS."
103
+ },
104
+ "preflight.alignment": {
105
+ "family": "preflight",
106
+ "description": "Plan check: inputs declared for combination or comparison share a CRS, pixel size, and pixel-grid origin, or the plan declares a reprojection/alignment step."
107
+ },
108
+ "preflight.categorical_resampling": {
109
+ "family": "preflight",
110
+ "description": "Plan check: a declared categorical layer (classification, mask, or QA band) is resampled with nearest neighbour or mode, not with a bilinear or cubic kernel."
111
+ },
112
+ "preflight.reflectance_decode": {
113
+ "family": "preflight",
114
+ "description": "Plan check: an 'expect reflectance' operation on integer raster inputs that carry a non-trivial scale or offset declares a decode step. Reads the plan and input encoding metadata only; it does not compare outputs or show how often a decode was actually applied."
115
+ },
116
+ "preflight.temporal_scope": {
117
+ "family": "preflight",
118
+ "description": "Plan check: the requested analysis time range contains the datetimes of the STAC items or inputs the plan selects."
119
+ },
120
+ "preflight.index_inputs": {
121
+ "family": "preflight",
122
+ "description": "Plan check: an 'expect index' operation on integer raster inputs that carry a non-trivial scale or offset declares a decode step, so the index would be computed on decoded values rather than raw DN. Reads the plan and input encoding metadata only; it does not verify that the bands a given index needs are present or that any formula was applied."
123
+ },
124
+ "preflight.output_units": {
125
+ "family": "preflight",
126
+ "description": "Plan check: the output CRS units match the measurement units the plan requests, so a metric result is not written in degrees or the reverse."
127
+ },
128
+ "rs.index_formula": {
129
+ "family": "rs",
130
+ "description": "Opt-in NDVI comparison with declared red/NIR sources, their scale/offset and joint valid support; extra masking warns."
131
+ },
132
+ "terrain.slope_formula": {
133
+ "family": "terrain",
134
+ "description": "Opt-in calibrated central-difference slope comparison: every required value, complete center/four-neighbour support and nodata edges."
135
+ },
136
+ "raster.source_identity": {
137
+ "family": "raster",
138
+ "description": "Opt-in exact decoded valid-sample and full band-validity comparison with a declared raster source, including grid and band metadata; not COG conformance."
139
+ }
140
+ }
141
+ }