-
Notifications
You must be signed in to change notification settings - Fork 1
SPICE_DATA::get_one_image
Source code: SPICE_DATA::get_one_image
Class: SPICE_DATA
This routine returns the data of the specified window and exposure index. If 'noscale' keyword is set, the output data will not be scaled using the optional BSCALE and BZERO keywords in the FITS header. The exposure index is in the first dimension of the 4D cube in case the study type is 'Raster', and in the fourth dimension if study type is 'Sit-and-stare'. The array is also transposed, so that it can be directly plotted, i.e. array = [lambda, instrument-Y].
image = spice_object->get_one_image( window, exposure_index, [, /noscale] [, /debin] [, /no_masking] [, /approximated_slit] )
Returns a transposed 2D subset of the data from the specified window and exposure (array = [lambda, instrument-Y]).
A scalar integer or string giving the index or name of the window to be returned.
The index of the desired exposure.
If present and non-zero, then the output data will not be scaled using the optional BSCALE and BZERO keywords in the FITS header. Default is to scale.
If set, the image will be expanded if binning is GT 1, and data values will be divided by the binning value.
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.
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.