Populate an array containing the waveplate angle for each
sample. This can be calculated in two ways. If the SCUCD_WPLATE
array is present (N_WPLATE
0), then this array contains the waveplate
position for each measurement. If this array is not present
the Waveplate angle is assumed to start at 0 degrees and increment
by 22.5 degrees for each integration. If the number of
measurements exceeds the number of positions in the SCUCD_WPLATE
array the sequence wraps round to the first value.
The final output array will contain a single number (waveplate
position) per sample (up to N_POS). The output value will be
in degrees.
Since integrations and measurements are stored sequentially
in a data file (in DEM_PNTR) there is no need to use
SCULIB_FIND_SWITCH to determine the start and end points
in the data array - use SCULIB_FIND_INT.
The waveplate angles are also stored in a small
array containing a single wave plate angle for each integration
and each measurement. This is created to make it easier to
extract the individual waveplate positions later on when
storing them in output file