Home | Trees | Indices | Help |
|
---|
|
Code dealing with spectra (the actual data), in particular in the spectral data model (sdm).
This assumes Spectral Data Model Version 1, but doesn't use very much of it. There's an sdm2 module for version 2 support. Generic, version-independent code should go here.
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
GETDATA_FORMATS =
|
|
SDM1_TO_SDM2_IRREGULARS =
|
|
__package__ =
|
Function Details |
returns a utype from the spectrum data model for a utype of the ssa data model. For most utypes, this just removes a prefix and adds spec:Spectrum. Heaven knows why these are two different data models anyway. There are some (apparently random) differences, though. For convenience, utype=None is allowed and returned as such. |
returns a utype from the spectral data model 2 for a utype of the ssa data model. For convenience, utype=None is allowed and returned as such. |
changes some utypes to make an SDM2 compliant spectrum from an SDM1 compliant one. All this is too horrible to even contemplate, but it's really pending sound DM support in both DaCHS and the VO. If we have that, I hope sick mess like this is going to disappear. |
returns a rsc.Data instance containing an SDM compliant spectrum for the spectrum described by ssaRow. spectrumData is a data element making a primary table containing the spectrum data from an SSA row (typically, this is going to be the tablesource property of an SSA service). You'll usually use this via //soda#sdm_genData |
returns a rsc.Data instance containing an SDM compliant spectrum for pubDID from ssaTable. ssaTD is the definition of a table containg the SSA metadata, spectrumData is a data element making a primary table containing the spectrum data from an SSA row (typically, this is going to be the tablesource property of an SSA service). |
returns the fits field index that has colUtype as its utype within header. If no such field exists, this raises a KeyError |
returns sdmData in an SDM-compliant FITS. This only works for SDM version 1. Behaviour with version 2 SDM data is undefined. |
returns a pair of mime-type and payload for a rendering of the SDM Data instance sdmData in format. (you'll usually use this via //soda#sdm_format) |
returns the column containing the flux in sdmTable. sdmTable can be in SDM1 or SDM2. |
returns the column containing the spectral coordindate in sdmTable. sdmTable can be in SDM1 or SDM2. |
returns only those rows from sdmTable for which the spectral coordinate is between low and high. Both low and high must be given. If you actually want half-open intervals, do it in interface code (low=-1 and high=1e308 should do fine). |
returns sdmTable with a new calibration. Currently, we can only normalize the spectrum to the maximum value. |
Variables Details |
GETDATA_FORMATS
|
SDM1_TO_SDM2_IRREGULARS
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |