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(→ str)

Generate PTM - PUNCH Level-3 Polarized Mosaic.

generate_l3_ctm(→ str)

Generate CTM - PUNCH Level-3 Clear Mosaic.

Module Contents#

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

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

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

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

simpunch.level3.generate_uncertainty(pdata: ndcube.NDCube) ndcube.NDCube[source]#

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[source]#

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[source]#

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) str[source]#

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) str[source]#

Generate CTM - PUNCH Level-3 Clear Mosaic.