punchbowl.level2.resample#

Functions#

reproject_cube(→ numpy.ndarray)

Core reprojection function.

reproject_many_flow(→ list[ndcube.NDCube | None])

Reproject many flow.

Module Contents#

punchbowl.level2.resample.reproject_cube(input_cube: ndcube.NDCube, output_wcs: astropy.wcs.WCS, output_shape: tuple[int, int]) 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_cube (NDCube) – input cube to be reprojected

  • 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_arrays = reproject_cube(input_cube, output_wcs, output_shape)
punchbowl.level2.resample.reproject_many_flow(data: list[ndcube.NDCube | None], trefoil_wcs: astropy.wcs.WCS, trefoil_shape: numpy.ndarray) list[ndcube.NDCube | None]#

Reproject many flow.