astropy:docs

SpectralGrid

class specgrid.base.SpectralGrid(grid_hdf5_fname, interpolator=<class 'scipy.interpolate.interpnd.LinearNDInterpolator'>)[source]

Bases: object

A SpectralGrid interpolation class. Can serve as a model maybe

Parameters:grid_hdf5_fname: filename for HDF5 File :

Attributes Summary

param_names

Methods Summary

__call__()
evaluate(*args, **kwargs) Interpolating on the grid to the necessary param_names ..

Attributes Documentation

param_names = None

Methods Documentation

__call__()[source]
evaluate(*args, **kwargs)[source]

Interpolating on the grid to the necessary param_names

Examples

This can either be called with arguments specgrid.evaluate(5780, 4.4, -1) or using keyword way of calling (then not all param_names have to be given) specgrid.evaluate(logg=4.4)

Page Contents