<pyart.core.grid.Grid object at 0x10a2b9190>
In [1]: data.
data.add_field data.axes data.fields data.metadata data.write
In [1]: data.fields
Out[1]: {}
In [2]: data.metadata
Out[2]:
{'Conventions': 'CF/Radial instrument_parameters',
'comment': '',
'history': '',
'institution': '',
'instrument_name': '20030508.2330.MASTER15',
'references': '',
'source': '',
'title': '',
'version': '1.3'}
In [3]: data.axes
Out[3]:
{'alt': {'data': array([ 500.]),
'long_name': 'Altitude at grid origin',
'standard_name': 'altitude',
'units': 'm'},
'lat': {'data': array([ 52.99998856]),
'long_name': 'Latitude at grid origin',
'standard_name': 'latitude',
'units': 'degree_N',
'valid_max': 90.0,
'valid_min': -90.0},
'lon': {'data': array([-95.00001526]),
'long_name': 'Longitude at grid origin',
'standard_name': 'longitude',
'units': 'degree_E',
'valid_max': 180.0,
'valid_min': -180.0},
'time': {'calendar': 'gregorian',
'data': array([ 450.]),
'long_name': 'Time in seconds since volume start',
'standard_name': 'time',
'units': 'seconds since 2003-05-08T23:22:30Z'},
'time_end': {'calendar': 'gregorian',
'data': array([ 900.]),
'long_name': 'Time in seconds of volume end',
'standard_name': 'time',
'units': 'seconds since 2003-05-08T23:22:30Z'},
'time_start': {'calendar': 'gregorian',
'data': array([ 0.]),
'long_name': 'Time in seconds of volume start',
'standard_name': 'time',
'units': 'seconds since 2003-05-08T23:22:30Z'},
'x_disp': {'axis': 'X',
'data': array([-129990.44799805, -129971.32753767, -129952.20707729, ...,
-60047.80394211, -60028.68348174, -60009.56302136]),
'long_name': 'X-coordinate in Cartesian system',
'units': 'degree_E'},
'y_disp': {'axis': 'Y',
'data': array([ 20008.99124146, 20026.95530094, 20044.91936043, ...,
52955.07634059, 52973.04040007, 52991.00445956]),
'long_name': 'Y-coordinate in Cartesian system',
'units': 'degree_N'},
'z_disp': {'axis': 'Z',
'data': array([ 500.]),
'long_name': 'Z-coordinate in Cartesian system',
'positive': 'up',
'units': 'm'}}
In [4]:
395 # fields
396 fields = {}
397 mdv_fields = mdv._make_fields_list()
398 for mdv_field in set(mdv_fields):
399 field_name = filemetadata.get_field_name(mdv_field)
400 if field_name is None:
401 continue
commit 6021043383a02761c8ed2d40a86c71839ef4cdb8
Merge: a65dfa8 0e76c02
Author: Jonathan J. Helmus <jjhe...@gmail.com>
Date: Tue Jun 2 13:37:19 2015 -0500
Merge pull request #309 from jjhelmus/python3_nexrad
PY3: Python 3 support in nexrad_level2 and nexrad_level3
--
You received this message because you are subscribed to the Google Groups "Py-ART Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyart-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<230000.mdv>
--
You received this message because you are subscribed to a topic in the Google Groups "Py-ART Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyart-users/n9hD38Yefys/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyart-users...@googlegroups.com.
--
Hi Anderson thak you for the quick answer, my pyart version is 1.4.0.dev+4dbc6c8. This is what Iget when I try to open the file:import pyart import matplotlib.pyplot as plt pradar = pyart.io.read_mdv(filename)--------------------------------------------------------------------------- UnboundLocalError Traceback (most recent call last) <ipython-input-14-1fc106edf2f9> in <module>() 3 4 # plot quickly ----> 5 pradar = pyart.io.read_mdv(filename) /usr/local/lib/python2.7/dist-packages/pyart/io/mdv.pyc in read_mdv(filename, field_names, additional_metadata, file_field_names, exclude_fields) 80 file_field_names, exclude_fields) 81 ---> 82 mdvfile = MdvFile(filename) 83 84 # value attributes /usr/local/lib/python2.7/dist-packages/pyart/io/mdv.pyc in __init__(self, filename, debug, read_fields) 362 if debug: 363 print "Calculating Radar coordinates" --> 364 az_deg, range_km, el_deg = self._calc_geometry() 365 self.az_deg = np.array(az_deg, dtype='float32') 366 self.range_km = np.array(range_km, dtype='float32') /usr/local/lib/python2.7/dist-packages/pyart/io/mdv.pyc in _calc_geometry(self) 844 el_deg = self.vlevel_headers[0]['level'][0:nsweeps] 845 --> 846 return az_deg, range_km, el_deg 847 848 def _make_time_dict(self):
You received this message because you are subscribed to the Google Groups "Py-ART Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyart-users...@googlegroups.com.
I can open the file as you propose, but I cant plot any grap! can you help me Jonathan?
ThanksFederico
...