BaseCube¶
- class sedfitter.sed.BaseCube(valid=None, names=None, distance=None, wav=None, nu=None, apertures=None, val=None, unc=None)¶
Bases:
object
A cube to represent a cube of models.
This consists of values and uncertainties as a function of wavelength, aperture, and models.
- Parameters:
- names1-d iterable, optional
The names of all the models in the cube
- distance~astropy.units.Quantity, optional
The distance assumed for the values
- wav1-d ~astropy.units.Quantity, optional
The wavelengths at which the SEDs are defined (cannot be used with
nu
)- nu1-d ~astropy.units.Quantity, optional
The frequencies at which the SEDs are defined (cannot be used with
wav
)- apertures1-d ~astropy.units.Quantity, optional
The ap for which the SEDs are defined
- val3-d ~astropy.units.Quantity, optional
The values of the fluxes or polarization
- unc3-d ~astropy.units.Quantity, optional
The uncertainties in the fluxes or polarization
Attributes Summary
The ap at which the SEDs are defined.
The distance at which the SEDs are defined.
The names of the models
The frequencies at which the SEDs are defined.
The uncertainties in the fluxes or polarization.
The fluxes or polarization values.
Which models are valid
The wavelengths at which the SEDs are defined.
Methods Summary
read
(filename[, order, memmap])Read models from a FITS file.
write
(filename[, overwrite, meta])Write the models to a FITS file.
Attributes Documentation
- apertures¶
The ap at which the SEDs are defined.
- distance¶
The distance at which the SEDs are defined.
- n_ap¶
- n_models¶
- n_wav¶
- names¶
The names of the models
- nu¶
The frequencies at which the SEDs are defined.
- unc¶
The uncertainties in the fluxes or polarization.
- val¶
The fluxes or polarization values.
- valid¶
Which models are valid
- wav¶
The wavelengths at which the SEDs are defined.
Methods Documentation
- classmethod read(filename, order='nu', memmap=True)¶
Read models from a FITS file.
- Parameters:
- filename: str
The name of the file to read the cube from.
- order: str, optional
Whether to sort the SED by increasing wavelength (wav) or frequency (‘nu’).
- write(filename, overwrite=False, meta={})¶
Write the models to a FITS file.
- Parameters:
- filename: str
The name of the file to write the cube to.