pysat / pysatNASA

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

OMNI IMF meta data #95

Closed aburrell closed 2 years ago

aburrell commented 2 years ago

Describe the bug OMNI IMF meta data float values are assigned array values instead of float/int values. This causes errors in pysat, as meta values should not be arrays.

To Reproduce Steps to reproduce the behavior:

import pysat
imf = pysat.Instrument('omni', 'hro', tag='1min', clean_level='clean')
imf.load(2021, 1)
imf.meta['YR']
Out[4]: 
FIELDNAM                 Year
SCALEMIN               [1963]
SCALEMAX               [2020]
VAR_TYPE         support_data
FORMAT                     I4
DEPEND_0                Epoch
LABLAXIS                 Year
DISPLAY_TYPE              NaN
units                     NaN
long_name                  YR
notes                     NaN
desc                     Year
value_min              [1963]
value_max              [2020]
fill            [-2147483648]
children                 None
Name: YR, dtype: object

Expected behavior float and integer values should not be arrays.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

jklenzing commented 2 years ago

Possible solutions: