simpunch.level1#
Generates synthetic level 1 data.
Attributes#
Functions#
|
Generate the spacecraft world coordinate system. |
|
Deproject a polarized image. |
|
Deproject a clear image. |
|
Mark the quality of image patches. |
|
Remix polarization from (M, Z, P) to (P1, P2, P3) using solpolpy. |
|
Add a distortion model to the WCS. |
|
Generate level 1 polarized synthetic data. |
|
Generate level 1 clear synthetic data. |
|
Generate all level 1 synthetic data. |
Module Contents#
- simpunch.level1.CURRENT_DIR#
- 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) tuple[ndcube.NDCube, astropy.wcs.WCS]#
Deproject a polarized image.
- simpunch.level1.deproject_clear(input_data: ndcube.NDCube, output_wcs: astropy.wcs.WCS, adaptive_reprojection: bool = False) tuple[ndcube.NDCube, astropy.wcs.WCS]#
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) ndcube.NDCube#
Add a distortion model to the WCS.
- 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, outdir: str) None#
Generate all level 1 synthetic data.
L1 <- polarization deprojection <- quality marking <- deproject to spacecraft FOV <- L2_PTM