Level 3 FITS file : Extension 1 (Data) - ITA-Solar/solo-spice-ql GitHub Wiki
- Level 3 FITS file
- [Extension 0 - Results (Fit components and parameters)](#--extension-0---results--fit-components-and-parameters--level-3-fits-file---extension-0--results---)
- Extension 1 - Data
- [Extension X - Lambda](#--extension-x---lambda-level-3-fits-file---extension-x--lambda---)
- [Extension 2 - Weights](#--extension-2---weights-level-3-fits-file---extension-2--weights---)
- [Extension 3 - Includes](#--extension-3---includes-level-3-fits-file---extension-3--includes---)
- [Extension 4 - Constants](#--extension-4---constants-level-3-fits-file---extension-4--constants---)
- [Extension 5 - Residuals](#--extension-5---residuals-level-3-fits-file---extension-5--residuals---)
Extension 1 - Data
Data cube
This extension contains the original header from the level 2 file. But it does not contain the data cube itself. When reading the level 3 file using FITS2ANA, the data cube is read from the level 2 file and rearranged so that it can be used in XCFIT_BLOCK. The WAVE dimension must be the first dimension for XCFIT_BLOCK to work.
If the level 2 file cannot be found, then a warning is printed and a dummy data cube is created.
Keywords
All keywords from the original level 2 extension are also in this header. But there are some adaptations and additions to the header of the original level 2 file:
NAXIS = Number of data axes
This is set to zero, since no data is saved in the extension. The keywords NAXISn are deleted. The original keywords are added to the header with the following keywords:
XNAXIS = Number of data axes in the original data cube in level 2
XNAXIS1 = Size of 1st dimension in the original data cube in level 2
XNAXIS2 = Size of 2nd dimension in the original data cube in level 2
XNAXIS3 = Size of 3rd dimension in the original data cube in level 2
XNAXIS4 = Size of 4th dimension in the original data cube in level 2
The keywords pointing to the other extensions of this data window are also added to the header:
EXTNAME = Extension name (= DATAEXT, i.e. includes also path and filename)
RESEXT = Extension name of the results extension
DATAEXT = Extension name of the data extension (this is a link to an external extension, if data cube is not saved in this file)
WGTSEXT = Extension name of the weights extension
INCLEXT = Extension name of the include extension
CONSTEXT = Extension name of the constant extension
RESIDEXT = Extension name of the residuals extension