reproject_to_overlappogram#
- overlappy.reproject.reproject_to_overlappogram(cube, detector_shape, reference_pixel=None, reference_coord=None, scale=None, roll_angle=<Quantity 0. deg>, dispersion_angle=<Quantity 0. deg>, order=1, observer=None, sum_over_lambda=True, algorithm='interpolation', reproject_kwargs=None, meta_keys=None, use_dask=False)[source]#
Reproject a spectral cube to an overlappogram.
- Parameters:
cube (ndcube.NDCube) – Spectral cube with dimensions (wave, lat, lon)
detector_shape (tuple) – Shape of the 2D detector to project onto
reference_pixel (~astropy.units.Quantity) – The pixel that corresponds to (0,0,wave[0]). This will default to the middle of the detector.
scale (tuple) – The scale of the the spatial and spectral axes
roll_angle (~astropy.units.Quantity) – Angle between y-like pixel axis and y-like world axis.
dispersion_angle (~astropy.units.Quantity) – Angle between dispersion direction and the y-like pixel axis.
order (int) – Spectral order to model
observer (~astropy.coordinates.SkyCoord) – Location of observer in HGS coordinates
sum_over_lambda (bool) – If True, sum over all layers in wavelength to create overlapped images. If False, each layer will be the reprojection of the FOV at that wavelength and everything else will be NaN.
meta_keys (list) – Keys from spectral cube metadata to copy into overlappogram metadata.
use_dask (bool) – If True, parallelize the reprojection with Dask. Requires first starting a Dask client.
- Return type:
ndcube.NDCube