diff --git a/CHANGES.rst b/CHANGES.rst index 90896852a..a0aea10ec 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,8 @@ New features Bug fixes ^^^^^^^^^ - The accidentally removed Ulysses spice kernel has returned. :issue:`582` +- `heliopy.data.helper.cdfpeek` has been updated to work with cdflib, and now + prints all CDF file information. Version 0.6.0 ------------- diff --git a/heliopy/data/helper.py b/heliopy/data/helper.py index 7fa1e9a21..245a5996c 100644 --- a/heliopy/data/helper.py +++ b/heliopy/data/helper.py @@ -28,8 +28,14 @@ def cdfpeek(cdf_loc): Local location of the cdf file. """ import cdflib + cdf_loc = os.path.expanduser(cdf_loc) cdf = cdflib.CDF(cdf_loc) - print(cdf) + info = cdf.cdf_info() + for key in info: + print('=' * len(key)) + print(key) + print('=' * len(key)) + print(info[key]) def listdata(probes=None):