simpunch.level1#

Generates synthetic level 1 data.

Functions#

generate_spacecraft_wcs(→ astropy.wcs.WCS)

Generate the spacecraft world coordinate system.

deproject_polar(input_data, output_wcs, ...)

Deproject a polarized image.

deproject_clear(input_data, output_wcs, ...)

Deproject a clear image.

mark_quality(→ ndcube.NDCube)

Mark the quality of image patches.

remix_polarization(→ ndcube.NDCube)

Remix polarization from (M, Z, P) to (P1, P2, P3) using solpolpy.

add_distortion(→ ndcube.NDCube)

Add a distortion model to the WCS. Currently empty.

generate_l1_pmzp(→ None)

Generate level 1 polarized synthetic data.

generate_l1_cr(→ None)

Generate level 1 clear synthetic data.

generate_l1_all(→ None)

Generate all level 1 synthetic data.

Module Contents#

simpunch.level1.generate_spacecraft_wcs(spacecraft_id: str, rotation_stage: int, time: astropy.time.Time) astropy.wcs.WCS#

Generate the spacecraft world coordinate system.

simpunch.level1.deproject_polar(input_data: ndcube.NDCube, output_wcs: astropy.wcs.WCS, adaptive_reprojection: bool = False)#

Deproject a polarized image.

simpunch.level1.deproject_clear(input_data: ndcube.NDCube, output_wcs: astropy.wcs.WCS, adaptive_reprojection: bool = False)#

Deproject a clear image.

simpunch.level1.mark_quality(input_data: ndcube.NDCube) ndcube.NDCube#

Mark the quality of image patches.

simpunch.level1.remix_polarization(input_data: ndcube.NDCube) ndcube.NDCube#

Remix polarization from (M, Z, P) to (P1, P2, P3) using solpolpy.

simpunch.level1.add_distortion(input_data: ndcube.NDCube, num_bins: int = 100) ndcube.NDCube#

Add a distortion model to the WCS. Currently empty.

simpunch.level1.generate_l1_pmzp(input_file: str, path_output: str, rotation_stage: int, spacecraft_id: str) None#

Generate level 1 polarized synthetic data.

simpunch.level1.generate_l1_cr(input_file: str, path_output: str, rotation_stage: int, spacecraft_id: str) None#

Generate level 1 clear synthetic data.

simpunch.level1.generate_l1_all(datadir: str) None#

Generate all level 1 synthetic data.

L1 <- polarization deprojection <- quality marking <- deproject to spacecraft FOV <- L2_PTM