readchop

sofia_redux.instruments.hawc.steps.basehawc.readchop(step, nsamp, chop_tol, chopflag=True)[source]

Read chop state into high, low, or not used values.

Parameters:
stepStepParent

The calling pipe step, containing data loaded into step.praw.

nsamp: int

The number of samples in the input data.

chop_tolfloat

Chopper tolerance in arcseconds.

chopflagbool, optional

If not set, it is assumed that no chopping was performed.

Returns:
array-like of int

The chop state for each sample. 1 indicates high state, -1 indicates low, 0 indicates not used.