Skip to main content

Module projection

Module projection 

Source
Expand description

Grid geometry a reader needs without the encoder: the Lambert conformal projection a grid.projection block declares, and the true latitudes of a grid.gaussian block (docs/bundle.md, “Regional Grids”).

The trigonometry runs through f64’s methods, the C library’s sin/cos/tan/pow, which is what Python’s math module calls too, so the two encoders land on the same doubles on one machine.

Structs§

GaussianRows
A grid.gaussian block: which rows of the full Gaussian grid a bundle’s rows are, so a crop or a reduced-resolution tier keeps its true latitudes.
LambertConformal
A Lambert conformal conic projection on a sphere, as GRIB2 grid definition template 3.30 declares it and as GDAL reports it back (Lambert Conic Conformal (2SP) with a spherical datum). Snyder (1987) §15, spherical case; with two equal standard parallels the cone constant is sin of the parallel.

Functions§

gaussian_latitude
The latitude in degrees of row row of the regular Gaussian grid with n latitudes per hemisphere, counted from the north: the row-th root of the Legendre polynomial of order 2n.
gaussian_latitudes
Every latitude of the Gaussian grid with n latitudes per hemisphere, north to south.