punchbowl.level1.dynamic_stray_light#
Attributes#
Functions#
|
Get a timestamp. |
|
Get a timestamp. |
|
Get a timestamp. |
|
Get roll position phase. |
|
Get roll position phase. |
|
Group files by phase within roll position. |
|
Match pairs of files across two phases. |
|
Estimate time- and orbital-anomaly-dependent stray light. |
|
Interpolate and remove time- and orbital-anomaly-dependent stray light. |
Module Contents#
- punchbowl.level1.dynamic_stray_light.fiducial_utime#
- punchbowl.level1.dynamic_stray_light.fname_date_to_utime(timestamp: str) int[source]#
Get a timestamp.
- punchbowl.level1.dynamic_stray_light.cube_to_utime(cube: ndcube.NDCube) int[source]#
Get a timestamp.
- punchbowl.level1.dynamic_stray_light.phase_in_window(fname: str) int[source]#
Get roll position phase.
- punchbowl.level1.dynamic_stray_light.phase_in_window_from_cube(cube: ndcube.NDCube) int[source]#
Get roll position phase.
- punchbowl.level1.dynamic_stray_light.make_phases(file_list: list[str]) list[list[str]][source]#
Group files by phase within roll position.
- punchbowl.level1.dynamic_stray_light.collect_pairs_by_phase(phases: list[list[str]], phase1: int, phase2: int) list[tuple[str, str]][source]#
Match pairs of files across two phases.
- punchbowl.level1.dynamic_stray_light.construct_dynamic_stray_light_model(filepaths: list[str], reference_time: datetime.datetime | str, pol_state: str, n_crota_bins: int = 24, n_loaders: int = 5) list[ndcube.NDCube][source]#
Estimate time- and orbital-anomaly-dependent stray light.
- punchbowl.level1.dynamic_stray_light.remove_dynamic_stray_light_task(cube: ndcube.NDCube, before_cube: ndcube.NDCube | str | punchbowl.util.DataLoader, after_cube: ndcube.NDCube | str | punchbowl.util.DataLoader) None[source]#
Interpolate and remove time- and orbital-anomaly-dependent stray light.