Skip to content

FITS2ANA

Martin Wiesmann edited this page Nov 24, 2022 · 13 revisions

Source code: fits2ana.pro

Description

FITS2ANA reads a FITS file and returns ana structure(s). The input FITS file must contain all the necessary extensions and keywords. ANA2FITS creates the correct FITS files. An ANA structure is used by e.g. XCFIT_BLOCK, it is created by e.g. MK_ANALYSIS.

If the FITS file is a SPICE level 3 file, the data will be rearranged, so that XCFIT_BLOCK can use it. Since the data block is stored as the original data block from level 2.

Syntax

anas = fits2ana( fitsfile [ ,headers_results=headers_results] [, headers_data=headers_data] [, headers_lambda=headers_lambda] [, headers_residuals=headers_residuals] [, headers_weights=headers_weights] [, headers_include=headers_include] [, headers_contants=headers_contants] )

Return Value

Array of ANA structures, number of elements is the same as number of windows in the FITS file. Output is scalar if there is only one window. Output is scalar if there is only one window.

Arguments

fitsfile

Name and path to a FITS file (e.g. SPICE level 3 file)

Optional Output

headers_results

A pointer array, containing the headers of the results extensions as string arrays.

headers_data: A pointer array, containing the headers of the data extensions as string arrays.

headers_lambda

A pointer array, containing the headers of the lambda extensions as string arrays.

headers_residuals

A pointer array, containing the headers of the residuals extensions as string arrays.

headers_weights

A pointer array, containing the headers of the weights extensions as string arrays.

headers_include

A pointer array, containing the headers of the include extensions as string arrays.

headers_contants

A pointer array, containing the headers of the constants extensions as string arrays.

Clone this wiki locally