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 a realistic starfield. |
|
Add synthetic polarized starfield. |
|
Add synthetic starfield. |
|
Create a synthetic polarization map. |
|
Generate level 1 polarized synthetic data. |
|
Generate level 1 clear synthetic data. |
Module Contents#
- simpunch.level1.CURRENT_DIR#
- simpunch.level1.generate_spacecraft_wcs(spacecraft_id: str, rotation_stage: int) astropy.wcs.WCS[source]#
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][source]#
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][source]#
Deproject a clear image.
- simpunch.level1.mark_quality(input_data: ndcube.NDCube) ndcube.NDCube[source]#
Mark the quality of image patches.
- simpunch.level1.remix_polarization(input_data: ndcube.NDCube) ndcube.NDCube[source]#
Remix polarization from (M, Z, P) to (P1, P2, P3) using solpolpy.
- simpunch.level1.add_distortion(input_data: ndcube.NDCube) ndcube.NDCube[source]#
Add a distortion model to the WCS.
- simpunch.level1.generate_starfield(wcs: astropy.wcs.WCS, img_shape: int, int, fwhm: float, wcs_mode: str = 'all', mag_set: float = 0, flux_set: float = 500000, noise_mean: float | None = 25.0, noise_std: float | None = 5.0, dimmest_magnitude: float = 8)[source]#
Generate a realistic starfield.
- simpunch.level1.add_starfield_polarized(input_collection: ndcube.NDCollection, polfactor: tuple = (0.2, 0.3, 0.5)) ndcube.NDCollection[source]#
Add synthetic polarized starfield.
- simpunch.level1.add_starfield_clear(input_data: ndcube.NDCube) ndcube.NDCube[source]#
Add synthetic starfield.
- simpunch.level1.generate_dummy_polarization(map_scale: float = 0.225, pol_factor: float = 0.5) ndcube.NDCube[source]#
Create a synthetic polarization map.