Skip to main content

normalize_longitudes

Function normalize_longitudes 

Source
pub fn normalize_longitudes(grid: GridInfo) -> GridInfo
Available on crate feature encoder only.
Expand description

Roll grids that start at Greenwich to the -180-first layout.

GDAL’s GRIB driver rotates global regular lat/lon grids to start at -180 but leaves the sflux Gaussian grid starting at longitude 0; downstream (shaders, posters, particles) assumes one layout, so the columns whose centers lie at or past 180 degrees move to the front of every extracted plane.