-
Notifications
You must be signed in to change notification settings - Fork 1
SPICE_DATA::transform_data_for_ana
Source code: SPICE_DATA::transform_data_for_ana
Class: SPICE_DATA
This procedure transforms the data of a chosen window, so that it can be used in CFIT_BLOCK and XCFIT_BLOCK.
spice_object->transform_data_for_ana, window [, /no_masking] [, /approximated_slit] [, /debug_plot] [, DATA=DATA] [, LAMBDA=LAMBDA] [, WEIGHTS=WEIGHTS] [, MISSING=MISSING]
Data Array. Rearranged so that the spectra is on the first dimension.
An array of wavelength values. One value for every point in the data array.
Weights to use in the fitting process. Same dimensions as DATA. All pixels are set to 1.0.
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.
The index or name of the desired window.
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.
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.
If set, make plots to illustrate which part of the window is being masked. This keyword is ignored if NO_MASKING is set.