solo-spice / sospice

Python data analysis tools for the SPICE extreme-UV spectrometer on Solar Orbiter
BSD 3-Clause "New" or "Revised" License
12 stars 5 forks source link

Get wavelength ranges for an observation #32

Closed ebuchlin closed 11 months ago

ebuchlin commented 11 months ago

From an observation (Catalog row / FileMetadata object), get a list of wavelength ranges, as interpreted from the WAVECOV column; example:

WAVECOV = '70.039865-70.839504, 71.61964-72.107225, 74.779191-75.266776, 76.66&'
CONTINUE  '1269-77.441405, 78.348313-79.128449, 96.89013-98.04489, 98.756992-9&'
CONTINUE  '9.372864, 102.90451-103.50113&' / [nm] All WAVEMIN-WAVEMAX, after    
CONTINUE  '' / merging adjacent windows

would give

[[70.039865, 70.839504], [71.61964, 72.107225], [74.779191, 75.266776], [76.661269, 77.441405], [78.348313, 79.128449], [96.89013, 98.04489], [98.756992, 99.372864], [102.90451, 103.50113]]

Optionnally, return in the form of portion objects (for intervals), and test whether some give wavelength or wavelength range is included in the observed wavelength ranges.

Caveat: because of slit tilt, the actual wavelength ranges depend on the position along the slit.

ebuchlin commented 11 months ago

Solved by #33

ebuchlin commented 11 months ago

Comments: