WCS

class ndcube.utils.wcs.WCS(header=None, naxis=None, **kwargs)[source] [edit on github]

Bases: astropy.wcs.WCS

Initiates a WCS object with additional functionality to add dummy axes.

Not all WCS axes are independent. Some, e.g. latitude and longitude, are dependent and one cannot be used without the other. Therefore this WCS class has the ability to determine whether a dependent axis is missing and can augment the WCS axes with a dummy axis to enable the translations to work.

Parameters
  • header (FITS header or dict with appropriate FITS keywords.) –

  • naxis (int) – Number of axis described by the header.