8. Legacy References
This document provides a comprehensive comparison between the legacy MaroonX HDF5-based pipeline products and the new DRAGONS FITS-based pipeline products.
8.1. File Structure Overview
The DRAGONS pipeline produces FITS files organized by extensions, while the legacy pipeline used HDF5 format with hierarchical group structures. This section maps legacy HDF5 datasets to their DRAGONS FITS extension equivalents.
8.1.1. Legacy File Naming Convention
Native MAROON-X raw files follow this naming pattern:
YYYYMMDDTHHmmSSZ_SSSSS_C_nnnn.fits. Example:20241115T123456Z_SOOOE_b_0600.fits
Where:
YYYYMMDD- UT date of exposure start
HHmmSS- UT time of exposure start
SSSSS- Light source configuration for each of the five MAROON-X fibers:
D- Dark
F- Flat field
O- Object (stellar target)
S- Sky background (fiber 1 only)
E- Etalon comb
T- ThAr arc
I- Iodine cell
L- Laser Frequency Comb
C- Camera arm (b= blue,r= red)
nnnn- Exposure time in integer seconds
Common exposure types:
SOOOE- Science exposure (Sky, Object, Etalon)
DDDDE- Dark frame (exposure > 30s) or drift tracking (< 30s)
DEEEE- Etalon wavelength calibration
DTTT?- ThAr arc calibration
DFFFD- Flat field (science fibers only)
FDDDF- Flat field (sky and calibration fibers)
DDDDF- Flat field (some FDDDF cases have fiber 1 un-lit)
DLLLL- Laser frequency comb calibration
8.1.2. Gemini Observatory Archive Naming convention
NYYYYMMDDMnnnn.fits. Example:N20241115M0001.fits
Where N = Gemini North, M = MAROON-X, and nnnn is a sequential counter
within each UT day. This is a MEF container for the BLUE (index 0) and RED (index 1) files, which can be restored
to the native format using the processBundle recipe.
>>> import astrodata
>>> import maroonx_instruments
>>> ad = astrodata.open('N20241124M2838.fits')
>>> ad.info()
Filename: N20241124M2838.fits
Tags: BUNDLE GEMINI MAROONX NORTH RAW SCI SPECT UNPREPARED
Pixels Extensions
Index Content Type Dimensions Format
[ 0] science NDAstroData (4400, 4400) uint16
[ 1] science NDAstroData (4400, 4400) uint16
Other Extensions
Type Dimensions
.EXPOSUREMETER Table (278, 3)
Note
The order of the arms in the bundle is ALWAYS guaranteed to be BLUE, ad[0], then RED, ad[1].
8.2. Dark Frame Products
8.2.1. Raw Darks
8.2.2. Master Darks
8.2.3. Dark Coefficient Files
8.2.4. Synthetic Darks
Todo
Add description of the synthetic darks. Uses SOOOE frames
8.3. Flat Field Products
8.3.1. Raw Flats
8.3.2. Master Flats
8.4. Wavelength Calibration Products
8.4.1. Raw Wavelength Calibrations
8.4.2. Static Wavelength Solutions
8.4.3. Dynamic Wavelength Solutions
8.4.4. Simultaneous Wavelength Solutions
8.5. Science Frame Products
8.5.1. Raw Science Frames
8.5.2. Reduced Science Frames
8.5.3. Extraction Products Comparison
The following table maps legacy HDF5 data products to DRAGONS FITS extensions:
Legacy HDF5 Path |
DRAGONS FITS Extension |
Description |
|---|---|---|
|
|
Box-summed 1D spectra |
|
|
Optimally extracted spectra |
|
|
Variance for optimal extraction |
|
|
Wavelength calibration [nm] |
N/A (computed inline) |
|
Box extraction errors |
N/A (computed inline) |
|
Flat-fielded box spectra |
|
|
Combined fibers 2+3+4 |
Note
Array Dimensions:
Legacy: 1D arrays per order accessed via
df.loc[fiber, order]DRAGONS: 2D arrays
(N_orders, N_pixels)in single extension
Fiber Indexing: Both use fibers 2-4 for science, fiber 6 for combination
Sky Fiber: Fiber 1 has placeholder extensions (1×1 arrays) in DRAGONS
8.6. Configuration Files
8.6.1. Static Wavelength Solutions
8.6.2. Bad Pixel Masks
8.6.3. Stripe Identification Tables
8.7. Cheat Sheet
Todo
Provide a quick reference table mapping legacy products to DRAGONS equivalents. Focus on array names within the files and key header keywords.