Available on crate feature
encoder only.Expand description
Grid discovery, the -180-first column roll, and regional cropping — the
port of xuebuild/grid.py.
Structs§
- Block
Reduction - The thinning a source’s
Downsampleasks for, fixed to one file’s grid: everyfactorxfactorblock of the(source_height, source_width)plane becomes its maximum. Never serialized: the bundle’s grid is the thinned one. MirrorsBlockReductioninxuebuild/grid.py. - Crop
Window - A rectangular window cut out of every extracted plane, indexed in the -180-first layout the column roll produces.
- Grid
Info
Functions§
- crop_
grid - Restrict a grid to the smallest whole-cell window covering
bbox(west, south, east, north, degrees). - gaussian_
rows - Which rows of the Gaussian grid of
na file’s are: the inverse of the iteration’s first guess, rounded, so a whole file’s are all of them and a file cut out of one starts wherever its first latitude says, its rows still consecutive. A file that is not on the grid is refused. Mirrorsgaussian_rowsinxuebuild/grid.py. - normalize_
longitudes - Roll grids that start at Greenwich to the -180-first layout.
- snap_
global_ longitudes - Give a global grid the exact step and origin its column count implies —
the port of
snap_global_longitudesinxuebuild/grid.py, which explains the rule; the two must agree to the bit. - snap_
regional_ steps - Give a regional grid the round step it was clearly published on — the
port of
snap_regional_stepsinxuebuild/grid.py, which explains the rule; the two must agree to the bit.