punchbowl.level1.flow#
Attributes#
Functions#
|
Generate PSF model. |
|
Core flow for level 1, doing preliminary stray light subtraction. |
|
Core flow for level 1, applying final stray light subtraction. |
|
Core flow for level 0.5 also known as level H. |
Module Contents#
- punchbowl.level1.flow.KEYS_TO_NOT_COPY = ['BUNIT', 'DESCRPTN', 'FILENAME', 'ISSQRT', 'LEVEL', 'PIPEVRSN', 'TITLE', 'TYPECODE', 'FILEVRSN']#
- punchbowl.level1.flow.generate_psf_model_core_flow(input_filepaths: list[str], masks: list[pathlib.Path | str] | numpy.ndarray | collections.abc.Generator = None, alpha: float = 2.0, epsilon: float = 0.3, image_shape: tuple[int, int] = (2048, 2048), psf_size: int = 32, target_fwhm: float = 3.25) regularizepsf.ArrayPSFTransform[source]#
Generate PSF model.
- punchbowl.level1.flow.level1_early_core_flow(input_data: list[str] | list[ndcube.NDCube], gain_bottom: float = 4.9, gain_top: float = 4.9, dark_level: float = 55.81, read_noise_level: float = 17, bitrate_signal: int = 16, quartic_coefficient_path: str | pathlib.Path | punchbowl.util.DataLoader | None = None, despike_sigclip: float = 50, despike_sigfrac: float = 0.25, despike_objlim: float = 160.0, despike_niter: int = 10, despike_cleantype: str = 'meanmask', exposure_time: float = 49 * 1000, readout_line_time: float = 163 / 2148, reset_line_time: float = 163 / 2148, vignetting_function_path: str | punchbowl.util.DataLoader | None = None, deficient_pixel_map_path: str | None = None, deficient_pixel_method: str = 'median', deficient_pixel_required_good_count: int = 3, deficient_pixel_max_window_size: int = 10, output_filename: list[str] | None = None, max_workers: int | None = None, mask_path: str | None = None) list[ndcube.NDCube][source]#
Core flow for level 1, doing preliminary stray light subtraction.
- punchbowl.level1.flow.level1_late_core_flow(input_data: list[str] | list[ndcube.NDCube], stray_light_before_path: str | None = None, stray_light_after_path: str | None = None, psf_model_path: str | punchbowl.util.DataLoader | None = None, distortion_path: str | None = None, mask_path: str | None = None, do_align: bool = True, output_as_Q_file: bool = False, output_filename: list[str] | None = None, max_workers: int | None = None) list[ndcube.NDCube][source]#
Core flow for level 1, applying final stray light subtraction.
- punchbowl.level1.flow.levelh_core_flow(input_data: list[str] | list[ndcube.NDCube], gain_bottom: float = 4.9, gain_top: float = 4.9, bias_level: float = 100, dark_level: float = 55.81, read_noise_level: float = 17, bitrate_signal: int = 16, psf_model_path: str | None = None, distortion_path: str | None = None, output_filename: str | None = None) list[ndcube.NDCube][source]#
Core flow for level 0.5 also known as level H.