RateGrid¶
- class nsb2.core.spectral.RateGrid[source]¶
Bases:
objectBand-integrated rates tabulated on an N-dimensional parameter grid.
- Parameters:
points (list of numpy.ndarray) – Grid coordinates along each parameter axis, one array per axis.
rate (astropy.units.Quantity) – Tabulated rates, shape
(*grid_shape, C).
See also
SpectralGridThe wavelength-resolved counterpart.
Methods Summary
__call__(xi)Interpolate the grid at the given parameter coordinates.
Methods Documentation
- __call__(xi)[source]¶
Interpolate the grid at the given parameter coordinates.
- Parameters:
xi (numpy.ndarray) – Parameter coordinates, shape
(N, D). An empty array returns the tabulated rates unchanged.- Returns:
Interpolated rates, shape
(N, C).- Return type:
- classmethod __new__(*args, **kwargs)¶