pysat / pysatNASA

pysat support for NASA Instruments
BSD 3-Clause "New" or "Revised" License
21 stars 7 forks source link

BUG: OMNI HRO data load #113

Closed jklenzing closed 2 years ago

jklenzing commented 2 years ago

Describe the bug When trying to load omni hro data, we get an error in pandas.

To Reproduce

import pysat
inst = pysat.Instrument('omni', 'hro', tag='1min')
inst.load(2009, 1)

yields

ValueError: ('Lengths must match to compare', (1440,), (1,))

The 5min data produces a similar ValueError with different lengths.

Expected behavior Data should load

Screenshots n/a

Desktop (please complete the following information):

Additional context

jklenzing commented 2 years ago

Root cause is treatment of metadata in older versions of cdflib. Already solved by https://github.com/pysat/pysatNASA/pull/112.