Open jbudynk opened 10 years ago
Waiting for response from Ivo to see if and how we can include Unknown X units into the Iris Viewer.
Ivo says that Unknown X Units should work in Specview.
Before adding Arbitrary units to Iris, we will need to handle unitless data in the fitting and science tools.
I made a new Quantities class (and added the ENUM in YUnits) that lets Specview ingests "unknown" Y values. This works:
I tried to do the same thing for an arbitrary XUnit in a few ways:
(1) Did exactly what I did for unknown Y units for unknown X units. (2) Made an arbitrary X unit / ENUM for each spectral Quantity (arbitrary Wavelength, arbitrary Energy, etc.)
Results:
(2) didn't work at all; I couldn't load data in arbitrary X units (see image below, particularly the "Setup Help" box errors).
(1) gave me no "x" errors at import, but once imported into Iris, Specview displayed the units as Angstroms (see image below).
Specview does have an UnknownYUnit and UnknownXUnit class, but I'm guessing we need to do something extra in Iris for Specview to read an unknown X unit, unless something is wrong on the Specview side of things.