Comment 8 for bug 1420864

Revision history for this message
Jeff Stys (jstys-z) wrote :

Pablo-

The value of the FITS keyword <WAVELNTH> in the JP2000 files must match the value of the `name` field in the `measurements` table in the database.

This is awkward in the case where you would like to display a different measurement name in the user interface than what is encoded in <WAVELNTH>.

We have previously addressed this issue in a development branch of the helioviewer.org source code that we are targeting for the version 3.0 milestone. In that code branch, there is both a FITS name and a display name for each measurement in the database.

 In the meantime, the workaround you described of editing the install/helioviewer/jp2.py file to override the value found in <WAVELNTH> with the value specified in the database is reasonable. Another option would be to set the name of the measurements in the database to match the value in the FITS keyword prior to the important, and then change it back after the import.

My apologies for the inconvenience.