getCFlux(wav,
seds=[ ] ,
star_grid=[ ] ,
nans=1,
deredden=[ ] ,
law=' Fitz2004Chiar2006 ' ,
lawtype=' ism ' ,
map=' marshall ' )
| source code
|
Retrieve the continuum flux at a given wavelength from either a model
spectrum or an observation. If both seds and star_grid are given, values
from the seds are returned first in the array, then the models.
For now assumes the observation is either an ISO SWS spectrum OR that
the continuum point is given in a dictionary that is property of the
Sed() object (sed.cflux) with wavelengths as keys.
star_grid are all models! Works also when seds or star_grid are
empty.
Reddening is taken into account when requested in the models and
parameters are taken from the model objects. However, this is only
allowed if only one data object is given (otherwise model reddening
doesn't make sense)
Dereddening of data is also possible (and extra arguments can be
passed to the reddening law), in which case distances have to be given
for the seds. If any model reddening is requested and only sed is given,
sed dereddening is always turned off.
- Parameters:
- Returns: (array[float],array[float])
- The continuum fluxes in W/m2/Hz with length that of star_grid, as
well as errors if applicable. If a combo mode is requested,
errors are given when available, and listed as None/nan if not
available (Plotting2 module knows how to deal with this).
|