RateGrid

class nsb2.core.spectral.RateGrid[source]

Bases: object

Band-integrated rates tabulated on an N-dimensional parameter grid.

Parameters:

See also

SpectralGrid

The 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:

astropy.units.Quantity

__init__(points, rate)[source]
classmethod __new__(*args, **kwargs)