KeyError Traceback (most recent call last)
<ipython-input-17-e0d335b3929e> in <module>()
1 numfile = 0
2 filename = os.path.join(data_dir, Directory[0])
----> 3 radar = pyart.io.read(filename)
4 display = pyart.graph.RadarMapDisplay(radar)
1 frames
/usr/local/lib/python3.7/dist-packages/pyart/io/cfradial.py in read_cfradial(filename,
field_names, additional_metadata, file_field_names, exclude_fields, include_fields,
delay_field_loading, **kwargs)
134 # 4.4 coordinate variables -> create attribute dictionaries enter code here
135 time = _ncvar_to_dict(ncvars['time'])
136 _range = _ncvar_to_dict(ncvars['range'])
137
KeyError: 'time'
source https://stackoverflow.com/questions/70400228/how-can-i-resolve-this-pyart-issue-with-time-as-the-keyerror-from-the-data
Comments
Post a Comment