Helioviewer-Project / JHelioviewer-SWHV

Space Weather JHelioviewer ☉
https://swhv.oma.be
Mozilla Public License 2.0
49 stars 16 forks source link

PHI L2 FITS files from SOAR cannot be opened in recent versions of JHelioviewer #221

Closed dmueller3000 closed 1 year ago

dmueller3000 commented 1 year ago

I tried opening the PHI L2 FITS file solo_L2_phi-hrt-blos_20220303T094309 (in the SOAR, search for PHI data)., but get the attached error message; same error message when opening the file locally. When trying the same with earlier versions of JHV, it turned out that the file can still be displayed in this version of JHV: Version 4.3.3.10675 (11 May 2022) but no longer in this one (as well as the current version): Version 4.3.3.10693 (16 June 2022)

Screen Shot 2022-12-01 at 09 42 10
bogdanni commented 1 year ago

The headers of those files are peculiar.

Compare

FILENAME= 'solo_L2_phi-hrt-blos_20220303T094009_V01.fits'                       
DATE    = '2022-11-30T10:03:14.956' / file cre/mod date (UT)                    

          / Instrument and observation configuration FITS keywords              
OBSRVTRY= 'Solar Orbiter'      / Satellite Name       

with

COMMENT --------- General Description: -----------------------------------------
FILENAME= 'solo_L2_eui-fsi174-image_20220301T000045294_V01.fits' / FITS filename
DATE    = '2022-04-13T15:49:58.347' / [UTC] FITS file creation date  

I didn't even know that it's valid FITS, but surprisingly it is.

The headers are transformed to XML inside JHV, then read back by the XML parser of Java which freaks out. I'll commit shortly a fix.