SPICE_DATA::get_window_position - ITA-Solar/solo-spice-ql GitHub Wiki
Source code: SPICE_DATA::get_window_position
Class: SPICE_DATA
Description
This function returns the position of the window on the CCD, starting with 0 if idl_coord is set, 1 otherwise. The position is given as a 4-element vector, with [lambda0, lambda1, y0, y1]. Note: y0 > y1, but lambda0 < lambda1.
Syntax
array = spice_object->get_window_position( window [, detector=detector] [, /idl_coord] [, /reverse_y] [, /reverse_x] [, /no_warning] )
Return Value
Integer array with 4 elements [lambda0, lambda1, y0, y1].
Arguments
window
The index or name of the window.
Keywords
idl_coord
If set, the coordinates start with zero, instead of with 1.
reverse_y
If set, y-coordinates are given as (CCD-size +1 - (original y-coords)).
reverse_x
For dumbbells x-coordinates are flipped. If this keyword is set, the coordinates will be flipped again, i.e. values of PXBEG3 and PXEND3 will be swapped.
no_warning
If set, warnings about x-flipping will be suppressed.
Optional Output
detector
Set this keyword to a named variable, which then will be set to either 1 or 2 to indicate on which detector the window is.