I tried Scott's solution (see attached file) but i came up with the following errors:
Traceback (most recent call last):
File "C:\Users\cwlok\Documents\Python_Scripts\pyart\RHI_allelements.py", line 147, in <module>
rhi_radar = rhi_from_ppi(radar, [240])
File "C:\Users\cwlok\Documents\Python_Scripts\pyart\RHI_allelements.py", line 126, in rhi_from_ppi
this_syn_rhi, azm, ele = extract_rhi(radar, ppi_field, angles)
File "C:\Users\cwlok\Documents\Python_Scripts\pyart\RHI_allelements.py", line 36, in extract_rhi
ppi_shape = radar.fields[radar.fields.keys()[0]]['data'].shape
TypeError: 'dict_keys' object does not support indexing
I search the error through the internet and it seems to be the coding problem with Python 2 and 3 (i am using Python 3.4), any solutions with this one? Thank you.
Jonathan Helmus於 2015年9月12日星期六 UTC+8上午3時42分38秒寫道: