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: - names : 1-d iterable, optional
The names of all the models in the cube
- distance : ~astropy.units.Quantity, optional
The distance assumed for the values
- wav : 1-d ~astropy.units.Quantity, optional
The wavelengths at which the SEDs are defined (cannot be used with
nu
)- nu : 1-d ~astropy.units.Quantity, optional
The frequencies at which the SEDs are defined (cannot be used with
wav
)- apertures : 1-d ~astropy.units.Quantity, optional
The ap for which the SEDs are defined
- val : 3-d ~astropy.units.Quantity, optional
The values of the fluxes or polarization
- unc : 3-d ~astropy.units.Quantity, optional
The uncertainties in the fluxes or polarization
Attributes Summary
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 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.