simpunch.level3#

Generate synthetic level 3 data.

PTM - PUNCH Level-3 Polarized Mosaic CTM - PUNCH Level-3 Clear Mosaic

Functions#

define_mask(=, distance_value)

Define a mask to describe the FOV for low-noise PUNCH data products.

define_trefoil_mask(→ numpy.ndarray)

Define a mask to describe the FOV for trefoil mosaic PUNCH data products.

generate_uncertainty(→ ndcube.NDCube)

Generate realistic uncertainty for PUNCH.

assemble_punchdata_polarized(→ ndcube.NDCube)

Assemble a punchdata object with correct metadata.

assemble_punchdata_clear(→ ndcube.NDCube)

Assemble a punchdata object with correct metadata for a clear data product.

generate_l3_ptm(→ None)

Generate PTM - PUNCH Level-3 Polarized Mosaic.

generate_l3_ctm(→ None)

Generate CTM - PUNCH Level-3 Clear Mosaic.

generate_l3_all(→ None)

Generate all level 3 synthetic data.

Module Contents#

simpunch.level3.define_mask(shape: int, int = (4096, 4096), distance_value: float = 0.68) numpy.ndarray#

Define a mask to describe the FOV for low-noise PUNCH data products.

simpunch.level3.define_trefoil_mask(rotation_stage: int = 0) numpy.ndarray#

Define a mask to describe the FOV for trefoil mosaic PUNCH data products.

simpunch.level3.generate_uncertainty(pdata: ndcube.NDCube) ndcube.NDCube#

Generate realistic uncertainty for PUNCH.

simpunch.level3.assemble_punchdata_polarized(input_tb: str, input_pb: str, wcs: astropy.wcs.WCS, product_code: str, product_level: str, mask: numpy.ndarray | None = None) ndcube.NDCube#

Assemble a punchdata object with correct metadata.

simpunch.level3.assemble_punchdata_clear(input_tb: str, wcs: astropy.wcs.WCS, product_code: str, product_level: str, mask: numpy.ndarray | None = None) ndcube.NDCube#

Assemble a punchdata object with correct metadata for a clear data product.

simpunch.level3.generate_l3_ptm(input_tb: str, input_pb: str, path_output: str, time_obs: datetime.datetime, time_delta: datetime.timedelta, rotation_stage: int) None#

Generate PTM - PUNCH Level-3 Polarized Mosaic.

simpunch.level3.generate_l3_ctm(input_tb: str, path_output: str, time_obs: datetime.datetime, time_delta: datetime.timedelta, rotation_stage: int) None#

Generate CTM - PUNCH Level-3 Clear Mosaic.

simpunch.level3.generate_l3_all(datadir: str, start_time: datetime.datetime, num_repeats: int = 1) None#

Generate all level 3 synthetic data.