This issue was detected on release 0.3.9 while reading the same kind of data of closed issue #20.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-8975049777ad> in <module>
----> 1 x = cdf.varget('SyncStatus')
~/.local/opt/anaconda3/envs/swarm/lib/python3.7/site-packages/cdflib/cdfread.py in varget(self, variable, epoch, starttime, endtime, startrec, endrec, record_range_only, inq, expand, to_np)
543 return self._read_vardata(vdr_info, epoch=epoch, starttime=starttime, endtime=endtime,
544 startrec=startrec, endrec=endrec, record_range_only=record_range_only,
--> 545 expand=expand, to_np=to_np)
546
547 def epochrange(self, epoch=None, starttime=None, endtime=None):
~/.local/opt/anaconda3/envs/swarm/lib/python3.7/site-packages/cdflib/cdfread.py in _read_vardata(self, vdr_info, epoch, starttime, endtime, startrec, endrec, record_range_only, expand, to_np)
2010
2011 data = self._read_vvrs(vdr_info, vvr_offsets, vvr_start, vvr_end,
-> 2012 startrec, endrec, to_np=to_np)
2013 if record_range_only:
2014 return [startrec, endrec]
~/.local/opt/anaconda3/envs/swarm/lib/python3.7/site-packages/cdflib/cdfread.py in _read_vvrs(self, vdr_dict, vvr_offs, vvr_start, vvr_end, startrec, endrec, to_np)
1671 filled_data = CDF._convert_np_data(
1672 self._default_pad(vdr_dict['data_type'],
-> 1673 vdr_dict['num_elements']),
1674 vdr_dict['data_type'],
1675 vdr_dict['num_elements'])
~/.local/opt/anaconda3/envs/swarm/lib/python3.7/site-packages/cdflib/cdfread.py in _default_pad(self, data_type, num_elms)
2149 dt = np.dtype(dt_string)
2150 ret = np.frombuffer(pad_value, dtype=dt, count=1)
-> 2151 ret.setflags('WRITEABLE')
2152 return ret
2153
ValueError: cannot set WRITEABLE flag to True of this array