API Reference#
Resamplers#
|
Nearest-neighbour HEALPix resampler — no sparse matrices. |
|
Bilinear (Npt=4, inverse-distance weighted) HEALPix resampler. |
|
Radial cubic-convolution HEALPix resampler. |
Delaunay triangulation + Clough-Tocher C1 cubic HEALPix resampler. |
|
|
|
|
Resample input lat-lon points as HEALPix "cell-points". |
|
|
Area-weighted, flux-conserving HEALPix resampler. |
Mask-like / categorical data#
BitmaskResampler and CategoricalResampler wrap an
ordinary interpolating resampler (default BilinearResampler) to resample
integer bitmasks and mutually-exclusive class labels respectively – see the
healpix_resample.mask (mask-like / categorical data) page.
|
Resample an integer bitmask (independent boolean flags) to HEALPix. |
|
Resample mutually-exclusive class labels to HEALPix (argmax). |
|
Large-scale processing#
subset_for_parent_cell() restricts a resampler’s
input samples and output cells to one coarse HEALPix parent cell, so a
global dataset can be processed one parent cell at a time without ever
constructing a resampler over the full input. See the
Processing one parent cell at a time (subset_for_parent_cell) page for the
workflow.
Restrict processing to one parent cell: which samples, which output cells. |
Base class#
KNeighborsResampler is the base class inherited by all resamplers above.
Use it directly only if you need to implement a custom weighting scheme via comp_matrix().
GPU-friendly sparse HEALPix regridding via local Gaussian weights + CG deconvolution. |
Output#
All resamplers return a ResampleResults dataclass.
|
Proxy to resampling results. |
Internals#
These functions are not part of the public API but are documented here for contributors.
healpix_weighted_nearest() is called internally by all resamplers to build the sparse operators.
conjugate_gradient() and least_squares_cg() are used internally by PSFResampler.
estimate_pixel_area() is used by PSFResampler to auto-estimate per-sample pixel area when area is not supplied.
Retourne: |
|
Solve A x = b with Conjugate Gradient, using only matvec A_mv(v). |
|
|
Solve for delta in a damped least-squares problem without forming dense matrices. |
Estimate each sample's pixel area from shared-latitude "ring" structure. |