ConvolvedFluxes

class sedfitter.convolved_fluxes.ConvolvedFluxes(wavelength=None, model_names=None, apertures=None, flux=None, error=None, initialize_arrays=False, initialize_units=Unit("mJy"))

Bases: object

Attributes Summary

apertures The apertures at which the SED is defined
central_wavelength The central or characteristic wavelength of the filter
error The convolved flux errors
flux The SED fluxes
model_names The names of the models
n_ap
n_models

Methods Summary

find_radius_cumul(fraction) Find for each model the radius containing a fraction of the flux.
find_radius_sigma(fraction) Find for each model a fractional surface brightness radius
interpolate(apertures) Interpolate the flux to the apertures specified.
read(filename) Read convolved flux from a FITS file
sort_to_match(requested_model_names) Sort the models following requested_model_names
write(filename[, overwrite]) Write convolved flux to a FITS file.

Attributes Documentation

apertures

The apertures at which the SED is defined

central_wavelength

The central or characteristic wavelength of the filter

error

The convolved flux errors

flux

The SED fluxes

model_names

The names of the models

n_ap
n_models

Methods Documentation

find_radius_cumul(fraction)

Find for each model the radius containing a fraction of the flux.

Parameters:
fraction: float

The fraction to use when determining the radius

find_radius_sigma(fraction)

Find for each model a fractional surface brightness radius

This is the outermost radius where the surface brightness is larger than a fraction of the peak surface brightness.

Parameters:
fraction: float

The fraction to use when determining the radius

interpolate(apertures)

Interpolate the flux to the apertures specified.

Parameters:
apertures : astropy.units.Quantity instance

The apertures to interpolate to

classmethod read(filename)

Read convolved flux from a FITS file

Parameters:
filename : str

The name of the FITS file to read the convolved fluxes from

sort_to_match(requested_model_names)

Sort the models following requested_model_names

write(filename, overwrite=False)

Write convolved flux to a FITS file.

Parameters:
filename: str

The name of the file to output the convolved fluxes to.

overwrite: bool, optional

Whether to overwrite the output file