Image Registration#

Frame Collapsing#

vampires_dpp.coadd.collapse_cube(cube, method='median', header=None, **kwargs)#

Collapse a cube along its time axis

Parameters:
  • cube (NDArray) – 3D cube

  • method (str, optional) – One of “median”, “mean”, “varmean”, “biweight”, by default “median”

  • header (fits.Header, optional) – FITS header, which will be updated with metadata if provided. By default None

Returns:

Tuple of collapsed frame and updated header. If header is not provided, will be None.

Return type:

Tuple[NDArray, Optional[fits.Header]]

vampires_dpp.coadd.weighted_collapse(data, angles, **kwargs)#

Do a variance-weighted simultaneous derotation and collapse of ADI data based on the algorithm presented in Bottom 2017.

Parameters:
  • data (NDArray) – 3D cube

  • angles (NDArray) – Vector of angles to derotate data cube by

Returns:

2D derotated and collapsed frame

Return type:

NDArray