itacart.metrics
Cell shape metrics, for comparison against other DGGS implementations.
The two metrics of compactness() and normalized_cell_area()
are transcribed from Kmoch, Vasilyev, Virro and Uuemaa (2022), “Area and
shape distortions in open-source discrete global grid systems”, Big
Earth Data 6(3), 256-275, doi:10.1080/20964471.2022.2094926. That paper
measures H3, S2, OpenEAGGR, rHEALPix and DGGRID on exactly these two
numbers, and the point of reproducing its conventions rather than better
ones is that the result has to be comparable with its figures. Where a
geodesic quantity would have been more accurate, the paper’s planar
convention is kept and the difference is stated.
cell_base_angle() is not from that paper. It answers the question
the ITACaRT paper leaves qualitative: the cells are identical
parallelograms with a 45-degree acute angle on the sinusoidal plane, and
Figure 8 of Silva, Dietzsch and Shiguemori (2025) shows in pictures what
becomes of that angle on the ellipsoid. This function is that picture as
a number.
Three properties of the results are worth knowing before reading them.
Compactness is not monotone in latitude: it rises from 0.539 at the
equator to 0.785 at row 900, where the shear of the index cancels the
convergence of the meridians and the cell is a square to five decimal
places, and then falls again. The angle is a function of the lattice
position, not of latitude alone, and it is not monotone either. And
compactness is undefined on a cell whose ring wraps the whole parallel –
the cell that holds a pole, at every resolution, and from resolution 4
down many cells around it inside the polar caps – for a reason documented
in compactness(); the angle is defined there, and is zero on the cell
that holds the pole.
Both metrics hold at every resolution, down to the one-centimetre cell of resolution 13 and the thinnest trapezoid the border cuts. Nothing in them is a tolerance in degrees: the cells span six orders of magnitude, and a tolerance that suited the coarse ones once swallowed every cell from resolution 11 down.
cell_max_uncertainty() is not a shape metric. It says how far a
position written as a cell can lie from the point the cell stands for, its
centroid, measured on the ground: the reach that
itacart.geometry.cells_to_geometry() states for a rebuilt vertex.
Functions
Ellipsoidal image of the 45-degree angle of the sinusoidal plane. |
|
How far a position written as a cell can lie from the cell's centre. |
|
Isoperimetric quotient of a cell, |
|
Cell area divided by the nominal area of its resolution. |