# ConstFlux1D¶

class synphot.models.ConstFlux1D(amplitude, **kwargs)[source]

One dimensional constant flux model.

Flux that is constant in a given unit might not be constant in another unit. During evaluation, flux is always converted to PHOTLAM.

For multiple n_models, this model only accepts amplitudes of the same flux unit; e.g., [1, 2] or Quantity([1, 2], 'photlam').

Parameters
amplitudenumber or Quantity

Value and unit of the constant function. If not Quantity, assume the unit of PHOTLAM.

Methods Summary

 evaluate(x, *args) One dimensional constant flux model function.

Methods Documentation

evaluate(x, *args)[source]

One dimensional constant flux model function.

Parameters
xnumber or ndarray

Wavelengths in Angstrom.

Returns
ynumber or ndarray

Flux in PHOTLAM.

integrate(x)[source]