astrofrog / pyavm

Pure-python AVM library
http://astrofrog.github.io/pyavm/
Other
20 stars 9 forks source link

controlled vocabulary error #40

Open depasq opened 2 years ago

depasq commented 2 years ago

pyavm will not read AVM from an image if any of the Spectral tags with controlled vocabulary include a dash '-'. This should be treated as part of the controlled vocabulary. A user can enter known information and substitute a dash for any spectral parameters that may not be known when entering AVM. For example:

Facility: Hubble; Hubble; Hubble; Hubble; Hubble Instrument: WFPC2; WFPC2; WFPC2; WFPC2; WFPC2 SpectralColorAssignment: blue; green; yellow; red; -

Attempting to read a file with those entries will throw the "Item is not in controlled vocabulary" error.