Primary header¶
The primary header contains keywords to identify FITS data type and some others (e.g. NFRAME, EXPTOT, FP_TEMP) dedicated to track specific MSDParameters.
$PrintPrimaryHeader fit/euc-test-nir.xml nir.masterDark
$SetSchemaPath nir/euc-test-nir-MasterDark.xsd
$PrintDataProductName
$PrintDataProductCustodian
$PrintSchemaFilename
$PrintDataProductElements
A master dark frame for each filter is foreseen.
In addition, a set of metadata is used to describe the validity range, the time interval and the list of raw dark frames used to generate the master dark, the temperature of the focal plane.
The MasterDark frame is a Calibration Data product created by the NIR_MasterDark_Pipeline which combines dedicated dark frames to create a MEF file.
The task responsible for MasterDark creation is MakeMasterDarkProg (under NIR_DarkBiasSubtraction project).
This is an internal NIR data product, and it is used only by the NIR PF.
It is applied by DarkSubtractionProgram task (under NIR_DarkBiasSubtraction project) in the NIR_ProcessField_Pipeline and in most of the calibration pipelines.
The main elements inside the Data section are:
Filter: The filter name (e.g. NIR_Y, NIR_J, NIR_H)
ValidityRange: Calibration file validity period estimated
FrameNumbers: Number of dark frames that went into the Master Dark creation. Corresponding to NFRAME primary header keyword
TotalExposureTime: Total exposure time in seconds. Corresponding to EXPTOT primary header keyword
FocalPlaneTemperature: Focal plane temperature. Corresponding to FP_TEMP primary header keyword
DataStorage: Element that links to a FITS file containing the MasterDark FITS file
Min: Minimum image pixel value
Max: Maximum image pixel value
Mean: Average image level (mean of all image pixel values)
Median: Median image level (median of all image pixel values)
MAD: Median Absolute Deviation of the image pixel values
MaskedPixelFraction: The fraction of masked pixels
NoisePixelNumber: Number of high noise pixels with filled dark values. NDFILL detector header
The structure of the NIR MasterDark is the same as the Science Image of the NIR Calibrated Frame with 16 x 3 layers, i.e. containing median dark current, RMS, and Data Quality flags for each detector.
The primary header contains keywords to identify FITS data type and some others (e.g. NFRAME, EXPTOT, FP_TEMP) dedicated to track specific MSDParameters.
$PrintPrimaryHeader fit/euc-test-nir.xml nir.masterDark
The scientific header contains some basic image definition keywords.
In addition it guests the NDFILL -> NoisePixelNumber
$PrintExtensionHeader fit/euc-test-nir.xml nir.masterDark SCI.n