ATK.Models.SED#
- class ATK.Models.SED[source]#
Bases:
Container,DataFrameIOMixin,TableIOMixin,FITSIOMixinContainer for storing spectral energy distribution data. This object stores both data and relevant metadata.
Units
The following attributes are automatically converted to
Quantitywith a default unit unless one is explictly provided:flux- mJyflux_err- mJyseparation- arcsecwavelength- Å
Data Methods
The following Data Methods are supported by
SED- either individually or throughDataSet.apply():Plotting Arguments
The following keyword arguments are accepted when plotting via
plot()oropen().- overlay
Spectrum, optional Overlays a spectrum.
By default, no spectrum is overlayed.
Attributes
Photometric bands.
Achieved degree of proper motion correction.
Flux values.
Flux error values.
Per-survey object IDs.
Separation between position of the search and the returned photometric detections.
Survey from which the stored data originates.
Wavelength values.
Methods
crop([cmin, cmax, inplace])Bins all array-like attributes into a number of bins or a bin size in x (i.e.
wavelength).from_dataframe(target, data, **kwargs)from_table(target, data, **kwargs)show([show_types, show_all])Prints structure to stdout in a human-readable format.
Combines all array-like attributes of a structure into a
DataFrame.to_hdu()Converts structure into a FITS
BinTableHDU.to_table()Combines all array-like attributes of a structure into a
Table, preserving units.Attribute Descriptions
- correction: ndarray | None = None#
Achieved degree of proper motion correction.
'full'= complete 3-dimensional projection on the sky.'partial'= 2-dimensional plane projection.'none'= no correction.
- separation: Quantity | None = None#
Separation between position of the search and the returned photometric detections.
Method Descriptions
- crop(cmin: float | None = None, cmax: float | None = None, inplace=True)[source]#
Bins all array-like attributes into a number of bins or a bin size in x (i.e.
wavelength).Exactly one of
binorsizemust be provided.- Parameters:
- binsint, optional
Number of bins in which to bin data.
- sizefloat or
Quantity, optional Size of each bin in which to bin data. If a
Unitis not provided,sizeis assumed to be in the same unit as x.- inplacebool, optional
If
True, modify the currentSEDinplace. IfFalse, operate on and return a copy - leaving the original unchanged.
- Returns:
SelfThe binned
SED. Returnsselfifinplace=True, otherwise returns a new instance.
- classmethod from_dataframe(target, data, **kwargs)#
Construct a
SEDfrom aDataFrame.- Parameters:
- target
Target, int, orSkyCoord Astronomical target with which to associate input data.
- data
DataFrame Tabular data containing the relevant fields (i.e. array-like attributes) required to construct a
SED. Units are assumed to be as listed above.- **kwargs
Additional keyword arguments to be forwarded to the internal parser.
The following keyword arguments are required:
survey
- target
- Returns:
- classmethod from_table(target, data, **kwargs)#
-
- Parameters:
- target
Target, int, orSkyCoord Astronomical target with which to associate input data.
- data
Table Tabular data containing the relevant fields (i.e. array-like attributes) required to construct a
SED. Units are taken from the table where available, with missing units assumed to be those listed above.- **kwargs
Additional keyword arguments to be forwarded to the internal parser.
The following keyword arguments are required:
survey
- target
- Returns:
- show(show_types=False, show_all=False)#
Prints structure to stdout in a human-readable format.
- Parameters:
- show_typesbool, optional
If True, print data types of structure attributes.
Default is
False- show_allbool, optional
If True, do not truncate printing of large iterables.
Default is
False.
- Returns:
self
- to_dataframe()#
Combines all array-like attributes of a structure into a
DataFrame.Units are not preserved.
- Returns:
- to_hdu() BinTableHDU#
Converts structure into a FITS
BinTableHDU.- Returns: