maserlib / ExPRES

Exoplanetary and Planetary Radio Emission Simulator
MIT License
4 stars 3 forks source link

Error in archived CDF file #45

Open BaptisteCecconi opened 2 years ago

BaptisteCecconi commented 2 years ago

There is a CDF file which can't be opened with PyCDF. I'll check for other similar errors. We should be run this file.

>>> from spacepy import pycdf
c = pycdf.CDF('/volumes/kronos/serpe/data/earth/2004/05/expres_earth_jupiter_io_jrm09_lossc-wid1deg_3kev_20040516_v11.cdf')
>>> c = pycdf.CDF('/volumes/kronos/serpe/data/earth/2004/05/expres_earth_jupiter_io_jrm09_lossc-wid1deg_3kev_20040516_v11.cdf')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/obs/rpws/anaconda3/envs/cdf/lib/python3.7/site-packages/spacepy/pycdf/__init__.py", line 1718, in __init__
    self._open(True if readonly is None else readonly)
  File "/obs/rpws/anaconda3/envs/cdf/lib/python3.7/site-packages/spacepy/pycdf/__init__.py", line 1899, in _open
    lib.call(const.OPEN_, const.CDF_, self.pathname, ctypes.byref(self._handle))
  File "/obs/rpws/anaconda3/envs/cdf/lib/python3.7/site-packages/spacepy/pycdf/__init__.py", line 633, in call
    *(args + (const.NULL_, ))
  File "/obs/rpws/anaconda3/envs/cdf/lib/python3.7/site-packages/spacepy/pycdf/__init__.py", line 585, in check_status
    raise CDFError(status)
spacepy.pycdf.CDFError: CHECKSUM_ERROR: The data integrity verification through the checksum failed.
>>> 
aicardi-obspm commented 2 years ago

I created all files in earth/2004. I'm running a test of all files, and I'll rerun the simulation for all bugs detected.

aicardi-obspm commented 2 years ago

I built some missing files, rebuilt the wrong files and rechecked all files in 2004.

I let you verify that everything is correct and close the issue.

CorentinLouis commented 2 years ago

Can this issue be closed if Stephane corrected the cdf files he produced?

CorentinLouis commented 2 weeks ago

@BaptisteCecconi Did you check whether the problem you raised has been resolved?