SPICE_DATA::transform_data_for_ana - ITA-Solar/solo-spice-ql GitHub Wiki

Source code: SPICE_DATA::transform_data_for_ana

Class: SPICE_DATA

Description

This procedure transforms the data of a chosen window, so that it can be used in CFIT_BLOCK and XCFIT_BLOCK.

Syntax

spice_object->transform_data_for_ana, window [, /no_masking] [, /approximated_slit] [, /debug_plot] [, DATA=DATA] [, LAMBDA=LAMBDA] [, WEIGHTS=WEIGHTS] [, MISSING=MISSING]

Optional Output

DATA

Data Array. Rearranged so that the spectra is on the first dimension.

LAMBDA

An array of wavelength values. One value for every point in the data array.

WEIGHTS

Weights to use in the fitting process. Same dimensions as DATA. All pixels are set to 1.0.

MISSING

The MISSING value, used to flag missing data points, and parameter values at points where the fit has been declared as "FAILED". This is set to -1000.0 for now, because cfit_block does not handle NAN.

Arguments

window

The index or name of the desired window.

Keywords

no_masking

If set, then SPICE_DATA::mask_regions_outside_slit will NOT be called on the data. This procedure masks any y regions in a narrow slit data cube that don't contain slit data, i.e. pixels with contributions from parts of the detector that lie above/below the dumbbells, in the gap between the slit ends and the dumbbells, and the dumbbell regions themselves. The masking procedure is not called for wide-slit observations or if window_index corresponds to a regular dumbbell extension or if NOLOAD has been set.

approximated_slit

If set, routine uses a fixed (conservative) value for the slit range, i.e. does not estimate the slit length based on the position of the dumbbells. The keyword is ignored if NO_MASKING is set.

debug_plot

If set, make plots to illustrate which part of the window is being masked. This keyword is ignored if NO_MASKING is set.