Feat/new operators - #56
Merged
Merged
Conversation
- sum accepts vector sources. With params area = true each polygon's attribute is shared among the cells in proportion to the intersected area (TerraME's sum with area = true), conserving the total; without it every feature adds its whole value to each cell it touches. The column defaults to the target name (params column overrides). Vector sources are not clipped to the grid for sum, so a polygon crossing the border keeps its full denominator. - median operator (fine-aligned, like std). - std takes params ddof (0 default, 1 sample); defaults and spec_hash are unchanged. Verified against TerraME on Itaituba: population within 4e-7 in all 620 cells, total conserved. Tests and docs updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Fill benchmarks were described against a reference file that TerraME 2.0.1 does not reproduce. Against the goldens of LambdaGeo/luccme-goldens: - coverage divides by the valid pixels, so `percentage` matches with no `coverage_purity` correction (Itaituba max 0.0064, Amazônia identical); - distance is measured from the cell centre to the nearest vertex of the feature: `distance` is identical for points and smaller for lines where a line passes between vertices (mean 24 m on Itaituba, 300 m on Amazônia); `min_distance` errs by up to about a cell (1.2 km and 12 km mean). Rewrite the correspondence tables, the Itaituba and Amazônia sections, the known gaps and the positioning statement accordingly; drop the stale "sum with area = true is not implemented" gap; fix the DistanceOperator docstring, which claimed TerraME is smaller by half a cell diagonal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.