Empirical1D

class synphot.models.Empirical1D(**kwargs)[source]

Bases: abc.Tabular1D

Empirical (sampled) spectrum or bandpass model.

Note

This model requires SciPy 0.14 or later to be installed.

Parameters
keep_negbool

Convert negative lookup_table values to zeroes? This is to be consistent with ASTROLIB PYSYNPHOT.

kwargsdict

Keywords for Tabular1D model creation or interpn(). When fill_value=np.nan is given, extrapolation is done based on nearest end points on each end; This is the default behavior.

Methods Summary

evaluate(inputs)

Evaluate the model.

is_tapered()

sampleset()

Return array that samples the feature.

Methods Documentation

evaluate(inputs)[source]

Evaluate the model.

Parameters
inputsnumber or ndarray

Wavelengths in same unit as points.

Returns
ynumber or ndarray

Flux or throughput in same unit as lookup_table.

is_tapered()[source]
sampleset()[source]

Return array that samples the feature.