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:

Science Frame Data Product Mapping

Legacy HDF5 Path

DRAGONS FITS Extension

Description

/spec_[blue|red]/box_extraction

.BOX_REDUCED_FIBER_N

Box-summed 1D spectra

/spec_[blue|red]/optimal_extraction

.OPTIMAL_REDUCED_FIBER_N

Optimally extracted spectra

/spec_[blue|red]/optimal_var

.OPTIMAL_REDUCED_VAR_N

Variance for optimal extraction

/spec_[blue|red]/wavelengths

.WLS_SIMULTANEOUS_FIBER_N

Wavelength calibration [nm]

N/A (computed inline)

.BOX_REDUCED_VAR_N

Box extraction errors

N/A (computed inline)

.BOX_REDUCED_FLAT_N

Flat-fielded box spectra

fiber_6 (combined)

.OPTIMAL_REDUCED_FIBER_6

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.