In [1]: import pysatCDF In [2]: working = pysatCDF.CDF('./omni_hro_5min_20120101_v01.cdf') In [3]: not_working = pysatCDF.CDF('./thd_l2_gmom_20120115_v01.cdf') Error (halting)... BAD_REC_COUNT: Illegal record count specified. Error (halting)... BAD_REC_COUNT: Illegal record count specified. Error (halting)... BAD_REC_COUNT: Illegal record count specified. Error (halting)... BAD_REC_COUNT: Illegal record count specified. Error (halting)... BAD_REC_COUNT: Illegal record count specified. Error (halting)... BAD_REC_COUNT: Illegal record count specified. Error (halting)... BAD_REC_COUNT: Illegal record count specified. --------------------------------------------------------------------------- OSError Traceback (most recent call last) in ----> 1 not_working = pysatCDF.CDF('./thd_l2_gmom_20120115_v01.cdf') ~/anaconda3/envs/spacejunk/lib/python3.7/site-packages/pysatCDF/_cdf.py in __init__(self, fname) 75 self._read_all_z_variable_info() 76 # load variables ---> 77 self.load_all_variables() 78 # load all variable attribute data (zVariables) 79 self._read_all_z_attribute_data() ~/anaconda3/envs/spacejunk/lib/python3.7/site-packages/pysatCDF/_cdf.py in load_all_variables(self) 215 self._call_multi_fortran_z(names, data_types, rec_nums, dim_sizes, 216 self.cdf_data_types['float'], --> 217 fortran_cdf.get_multi_z_real4) 218 self._call_multi_fortran_z(names, data_types, rec_nums, dim_sizes, 219 self.cdf_data_types['real8'], ~/anaconda3/envs/spacejunk/lib/python3.7/site-packages/pysatCDF/_cdf.py in _call_multi_fortran_z(self, names, data_types, rec_nums, dim_sizes, input_type_code, func, epoch, data_offset, epoch16) 323 self._process_return_multi_z(data, sub_names, sub_sizes) 324 else: --> 325 raise IOError(fortran_cdf.statusreporter(status)) 326 327 def _process_return_multi_z(self, data, names, dim_sizes): OSError: b'BAD_REC_COUNT: Illegal record count specified. ' In [4]: