containers
- Container structures¶
-
exception
vdrp.containers.
NoShotsException
[source]¶ Bases:
exceptions.Exception
-
class
vdrp.containers.
DithAll
(ra=0.0, dec=0.0, ifuslot='', x=0.0, y=0.0, x_fp=0.0, y_fp=0.0, filename='', timestamp='', expname='')[source]¶
-
class
vdrp.containers.
Spectrum
[source]¶ This class encapsulates the content of a tmp*.dat spectrum file
Attributes: - wl : float
Wavelength
- cnts : float
Counts of the spectrum
- flx : float
Flux of the spectrum
- amp_norm : float
Ampliflier normalization
- tp_norm : float
Throughput normalization
- ftf_norm : float
Fiber to fiber normalization
- err_cts : float
- err_cts_local : float
- err_max_flux : float
-
class
vdrp.containers.
StarObservation
(num=0.0, night=-1, shot=-1, ra=-1, dec=-1, x=-1, y=-1, fname='', shotname='', expname='', offset_ra=-1, offset_dec=1)[source]¶ Data for one spectrum covering a star observation. This corresponds to the data stored in the l1 file with additions from other files
Attributes: - num : int
Star number
- night : int
Night of the observation
- shot : int
Shot of the observation
- ra : float
Right Ascension of the fiber center
- dec : float
Declination of the fiber center
- x : float
Offset of fiber relative to IFU center in x direction
- y : float
Offset of fiber relative to IFU center in y direction
- full_fname : str
Filename of the multi extension fits file.
- shotname : str
NightvShot shot name
- expname : str
Name of the exposure.
- dist : float
Distance of the fiber from the star position
- offset_ra : float
Offset in ra of the fiber from the star position
- offset_dec : float
Offset in dec of the fiber from the star position
- fname : str
Basename of the fits filenname
- ifuslot : str
IFU slot ID
- avg : float
Average of the spectrum
- avg_norm : float
- avg_error : float
Error of the average of the spectrum
- structaz : float
Azimuth of the telescope structure, read from the image header