normalize_scan_coordinates

sofia_redux.scan.custom.fifi_ls.info.info.normalize_scan_coordinates(ra, dec, x, y, z, data, error, valid, flags, channel_valid)[source]

Convert (frame, pixel) indexed data to consistent flat arrays.

Parameters:
ranumpy.ndarray (float)

The right-ascension values of shape (n_frames, n_pixels).

decnumpy.ndarray (float)

The declination values of shape (n_frames, n_pixels).

xnumpy.ndarray (float)

The detector x-coordinates of shape (n_frames, n_pixels).

ynumpy.ndarray (float)

The detector y-coordinates of shape (n_frames, n_pixels).

znumpy.ndarray (float)

The pixel wavelength values of shape (n_pixels,).

datanumpy.ndarray (float)

The detector data values of shape (n_frames, n_pixels).

errornumpy.ndarray (float)

The detector error values of shape (n_frames, n_pixels).

validnumpy.ndarray (bool)

The valid frames (True) of shape (n_frames,).

flagsnumpy.ndarray (int)

The sample flags of shape (n_frames, n_pixels). Only zero valued flags will be included in the output.

channel_validnumpy.ndarray (bool)

A boolean mask of shape (n_pixels,) where False indicates that a given channel is bad and should not be included.

Returns:
flattened7-tuple (numpy.ndarray)

Seven arrays each of shape (n,) where n is the number of zero-valued samples that are also valid frames. The order of the arrays are: (RA, DEC, WAVE, X, Y, DATA, ERROR).