SED¶
- class sedfitter.sed.SED¶
Bases:
object
Attributes Summary
The apertures at which the SED is defined
The convolved flux errors
The SED fluxes
The frequencies at which the SED is defined
The wavelengths at which the SED is defined
Methods Summary
copy
()interpolate
(apertures)Interpolate the SED to different apertures
interpolate_variable
(wavelengths, apertures)Interpolate the SED to a variable aperture as a function of wavelength.
read
(filename[, unit_wav, unit_freq, ...])Read an SED from a FITS file.
scale_to_av
(av, law)scale_to_distance
(distance)Returns the SED scaled to distance distance
write
(filename[, overwrite])Write an SED to a FITS file.
Attributes Documentation
- apertures¶
The apertures at which the SED is defined
- error¶
The convolved flux errors
- flux¶
The SED fluxes
- n_ap¶
- n_wav¶
- nu¶
The frequencies at which the SED is defined
- wav¶
The wavelengths at which the SED is defined
Methods Documentation
- copy()¶
- interpolate(apertures)¶
Interpolate the SED to different apertures
- interpolate_variable(wavelengths, apertures)¶
Interpolate the SED to a variable aperture as a function of wavelength. This method should be called with an interpolating function for aperture as a function of wavelength, in log10 space.
- classmethod read(filename, unit_wav=Unit('micron'), unit_freq=Unit('Hz'), unit_flux=Unit('erg / (cm2 s)'), order='nu')¶
Read an SED from a FITS file.
- Parameters:
- filename: str
The name of the file to read the SED from.
- unit_wav: `~astropy.units.Unit`, optional
The units to convert the wavelengths to.
- unit_freq: `~astropy.units.Unit`, optional
The units to convert the frequency to.
- unit_flux: `~astropy.units.Unit`, optional
The units to convert the flux to.
- order: str, optional
Whether to sort the SED by increasing wavelength (wav) or frequency (‘nu’).
- scale_to_av(av, law)¶
- scale_to_distance(distance)¶
Returns the SED scaled to distance distance
- Parameters:
- distancefloat
The distance in cm
- Returns:
- sedSED
The SED, scaled to the new distance
- write(filename, overwrite=False)¶
Write an SED to a FITS file.
- Parameters:
- filename: str
The name of the file to write the SED to.