Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in archived CDF file #45

Open
BaptisteCecconi opened this issue Nov 5, 2021 · 3 comments
Open

Error in archived CDF file #45

BaptisteCecconi opened this issue Nov 5, 2021 · 3 comments

Comments

@BaptisteCecconi
Copy link
Collaborator

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.
>>> 
@BaptisteCecconi BaptisteCecconi changed the title Error in archived CF file Error in archived CDF file Nov 5, 2021
@aicardi-obspm
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants