punchbowl.level2.resample#
Functions#
|
Core reprojection function. |
|
Reproject many flow. |
Module Contents#
- punchbowl.level2.resample.reproject_array(input_array: numpy.ndarray, input_wcs: astropy.wcs.WCS, time: datetime.datetime, output_wcs: astropy.wcs.WCS, output_shape: tuple) numpy.ndarray#
Core reprojection function.
- Core reprojection function of the PUNCH mosaic generation module.
With an input data array and corresponding WCS object, the function performs a reprojection into the output WCS object system, along with a specified pixel size for the output array. This utilizes the adaptive reprojection routine implemented in the reprojection astropy package.
- Parameters:
input_array – input array to be reprojected
input_wcs – astropy WCS object describing the input array
time – time of the observation to reproject
output_wcs – astropy WCS object describing the coordinate system to transform to
output_shape – pixel shape of the reprojected output array
- Returns:
output array after reprojection of the input array
- Return type:
np.ndarray
Example Call#
>>> reprojected_array = reproject_array(input_array, input_wcs, output_wcs, output_shape)
- punchbowl.level2.resample.reproject_many_flow(data: list[ndcube.NDCube], trefoil_wcs: astropy.wcs.WCS, trefoil_shape: numpy.ndarray) list[ndcube.NDCube]#
Reproject many flow.