obs_ops submodule

This submodule includes functions for processing observation-level data, including making a SSO footprint.

obs_ops.sources

Module containing functions for making a SSO footprint.

sotodlib.obs_ops.sources.get_sso(aman, sso, nstep=100)[source]

Function for getting xi, eta position of given sso.

Parameters:
  • aman (AxisManager) – Input axis manager.

  • sso (str) – Name of input sso.

  • nstep (int) – Number of steps to downsample the TOD.

Returns:

  • xi (array) – Array of xi positions.

  • eta (array) – Array of eta positions.

obs_ops.splits

Module containing functions for making splits of the data

sotodlib.obs_ops.splits.det_splits_relative(aman, det_left_right=False, det_upper_lower=False, det_in_out=False, wrap=None)[source]

Function for adding relative detector splits to aman. A new FlagManager called det_flags will be created and the flags put there.

Parameters:
  • aman (AxisManager) – Input axis manager.

  • det_left_right (Bool) – Perform a detector left/right split

  • det_upper_lower (Bool) – Perform a detector upper/lower split

  • det_in_out (Bool) – Perform a detector in/out split

  • wrap (Bool or str) – If True, the flags with the det splits will be wrapped to aman.det_flags. If a string, the flags with the det splits will be wrapped to aman.string

Returns:

fm

Return type:

FlagManager with the requested flags

sotodlib.obs_ops.splits.get_split_flags(aman, proc_aman=None, split_cfg=None)[source]

Function returning flags used for null splits consumed by the mapmaking and bundling codes. Fields labeled field_name_flag contain boolean masks and _avg are the mean of the numerical based split flags to be used for observation level splits.

Parameters:
  • aman (AxisManager) – Main axis manager containing signal.

  • proc_aman (AxisManager) – Preprocess axis manager, usually loaded in aman.preprocess.

  • split_cfg (dict) – Dictionary containing the thresholds used for cutting

Returns:

split_aman – Axis manager containing splitting flags. cuts field is a FlagManager containing the detector and subscan based splits used in the mapmaker. <split_name>_threshold fields contain the threshold used for the split. Other fields conatain info for obs-level splits.

Return type:

AxisManager