punchbowl.level1.dynamic_stray_light#

Attributes#

Functions#

fname_date_to_utime(→ int)

Get a timestamp.

fname_to_utime(→ int)

Get a timestamp.

cube_to_utime(→ int)

Get a timestamp.

phase_in_window(→ int)

Get roll position phase.

phase_in_window_from_cube(→ int)

Get roll position phase.

make_phases(→ list[list[str]])

Group files by phase within roll position.

collect_pairs_by_phase(→ list[tuple[str, str]])

Match pairs of files across two phases.

construct_dynamic_stray_light_model(→ list[ndcube.NDCube])

Estimate time- and orbital-anomaly-dependent stray light.

remove_dynamic_stray_light_task(→ None)

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.fname_to_utime(fname: 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.