healpix_resample.OverlapConservativeResampler#
- class healpix_resample.OverlapConservativeResampler(lon_bounds, lat_bounds, level, nest=True, normalization='destination')[source]#
First-order overlap-area conservative remapping onto HEALPix.
- Parameters:
lon_bounds, lat_bounds (
array-like) – One-dimensional cell boundaries, in degrees, of a (possibly irregular) rectilinear lat/lon source grid:nlon = len(lon_bounds) - 1columns andnlat = len(lat_bounds) - 1rows.lat_boundsmust be strictly monotonic in [-90, 90];lon_boundsstrictly monotonic with total span <= 360 degrees (antimeridian crossing is allowed).level (
int) – Target HEALPix level (nside = 2**level).nest (
bool) – Nested (default) or ring target indexing.normalization (
{"destination", "covered"}) – Weight normalization for intensive fields; see the module docstring for the xESMF correspondence.
- cell_ids#
The
MHEALPix cells receiving nonzero overlap,int64.- Type:
- weights#
SciPy CSR sparse matrix of shape
(M, nlat * nlon): the normalization-dependent intensive-remapping matrixW(x = W y), built once and reusable for every field sharing this source and target grid.- Type:
- covered_area#
Per target cell,
sum_i O_jiin steradians, shape(M,).- Type:
- source_area#
Per source cell,
|S_i|in steradians, shape(nlat * nlon,).- Type:
Methods
__init__(lon_bounds, lat_bounds, level[, ...])resample(values[, quantity])Remap a source field.