ChandraCXC / iris

Build and Analyze Spectral Energy Distributions in the Virtual Observatory
http://cxc.cfa.harvard.edu/iris
4 stars 3 forks source link

Arbitrary Units in Iris - import and display #40

Open jbudynk opened 10 years ago

jbudynk commented 10 years ago

I made a new Quantities class (and added the ENUM in YUnits) that lets Specview ingests "unknown" Y values. This works:

arbitrary-y-units

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).

arbitraryxunits

(1) gave me no "x" errors at import, but once imported into Iris, Specview displayed the units as Angstroms (see image below).

arbitrary-x-and-y-units

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.

jbudynk commented 10 years ago

Waiting for response from Ivo to see if and how we can include Unknown X units into the Iris Viewer.

jbudynk commented 9 years ago

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.