extraction
- Spectrum extraction routines¶
Spectrum extraction routines
Contains python translation of Karl Gebhardt
-
vdrp.extraction.
extract_star_spectrum
(starobs, args, wl, wlr, wdir, prefix='')[source]¶ Equivalent of the rextsp[1] and parts of the rsp1b scripts.
Extract stellar spectra, creating the tmp*.dat files. If prefix is set, it is prefixed to the tmp*dat file names.
Parameters: - starobs : list
List with StarObservation objects.
- args : struct
The arguments structure
- wdir : str
Name of the work directory
- prefix : str (optional)
Optional prefix for the output filenames.
Returns: - list
List of tmp*dat filenames created.
-
vdrp.extraction.
get_star_spectrum_data
(ra, dec, args, nightshot, multi_shot=False, dithall=None)[source]¶ This extracts the data about the different observations of the same star on different ifus.
This is essentially the information stored in the l1 file.
Parameters: - ra : float
Right Ascension of the star.
- dec : float
Declination of the star.
- args : struct
The arguments structure
- nightshot : tuple
Tuple of strings with night and shot to search. if None, use all shots containing the given RA /DEC