Skip to content

Convert wavelength units when opening a file (or check units in DRAGONS) #450

@chris-simpson

Description

@chris-simpson

When astrodata reads a FITS file with a wavelength axis, the units (from CUNITj) are stored but not changed. However, DRAGONS assumes that the units of wavelength axes are nm, without checking.

So we have to implement one of two things:

  1. Convert units at read time to nm
  2. Wherever a wavelength is determined from the WCS, its units have to be checked and converted to nm if necessary

Clearly 1 is easiest; 2 is a pain (which is why we didn't do this originally).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions