Closed jklenzing closed 1 year ago
Describe the bug Load a day of data for a cdflib instrument with the use_header flag set to True. The header meta is not there
use_header
True
To Reproduce Load a day of data and inspect the header
import pysat ivm = pysat.Instrument('cnofs', 'ivm', use_cdflib=True, use_header=True) ivm.load(2009, 1) ivm.meta.header
Expected behavior top level attrs should be transferred
Screenshots n/a
Desktop (please complete the following information):
Additional context Found in #175
It looks like the issue is in the CDF.to_pysat method. I don't see where header level attributes are being transferred.
CDF.to_pysat
Describe the bug Load a day of data for a cdflib instrument with the
use_header
flag set toTrue
. The header meta is not thereTo Reproduce Load a day of data and inspect the header
Expected behavior top level attrs should be transferred
Screenshots n/a
Desktop (please complete the following information):
Additional context Found in #175