Skip to main content
Version: Next

GetInitialSpectralUnit

Callable


  • Get the initial unit of a spectral coordinate: the header unit if it is a supported unit of the type and not the standard base unit of the type (e.g. Angstrom for a wavelength axis), otherwise the default unit of the type (e.g. GHz for a frequency axis in Hz)


    Parameters

    • type: SpectralType

      spectral type of the axis

    • headerUnit: string | undefined

      CUNIT value of the axis

    Returns SpectralUnit | null