get_split_params

sofia_redux.instruments.fifi_ls.split_grating_and_chop.get_split_params(hdul, channel_index=3, sample_index=4, ramp_index=5)[source]

Check if a file can be split by basic header checks. If so, return the necessary parameters for splitting the file.

Parameters:
hdulfits.HDUList
channel_indexint, optional

data header index indicating channel

sample_indexint, optional

data header index indicating number of samples in data

ramp_indexint, optional

data header index indicating number of ramps in data

Returns:
dict

G_STRT (int) -> grating/inductosyn start G_PSUP (int) -> number of grating positions going up G_SZUP (int) -> step size on the way up G_PSDN (int) -> number of grating positions coming down G_SZDN (int) -> step size on the way down G_CYC (int) -> number of grating sweeps (up-down) C_CYC (int) -> number of chop cycles per grating position P_STRT (int) -> primary array start P_PSUP (int) -> primary array number of positions going up P_SZUP (int) -> primary array step size on the way up RAMPLN (int) -> ramp length CHOPLN (int) -> chop length C_AMP (float) -> chop amplitude CHANNEL (str) -> channel ‘RED’ or ‘BLUE’ success (bool) -> True indicates all parameters are valid