Hi Maik
Thanks alot for helping me.
I could open rainbow vol file.
But in Runing "load_rainbow_example.py" I see several errors :(please help me. What is my mistake that i see this errors)
>>> import wradlib
>>> import wradlib as wrl
>>> import matplotlib.pyplot as pl
>>> import numpy as np
>>> import os
>>> def ex_load_rainbow():
...
File "<stdin>", line 2
^
IndentationError: expected an indented block
>>> rbdict = wradlib.io.read_Rainbow("e:/2.vol")
File "<stdin>", line 1
rbdict = wradlib.io.read_Rainbow("e:/2.vol")
^
IndentationError: unexpected indent
>>> azi = rbdict['volume']['scan']['slice']['slicedata']['rayinfo']['data']
File "<stdin>", line 1
azi = rbdict['volume']['scan']['slice']['slicedata']['rayinfo']['data']
^
IndentationError: unexpected indent
>>> azidepth = float(rbdict['volume']['scan']['slice']['slicedata']['rayinfo']['@depth'])
File "<stdin>", line 1
azidepth = float(rbdict['volume']['scan']['slice']['slicedata']['rayinfo']['@depth'])
^
IndentationError: unexpected indent
>>> azirange = float(rbdict['volume']['scan']['slice']['slicedata']['rayinfo']['@rays'])
File "<stdin>", line 1
azirange = float(rbdict['volume']['scan']['slice']['slicedata']['rayinfo']['@rays'])
^
IndentationError: unexpected indent
>>> azires = float(rbdict['volume']['scan']['slice']['anglestep'])
File "<stdin>", line 1
azires = float(rbdict['volume']['scan']['slice']['anglestep'])
^
IndentationError: unexpected indent
>>> azi = (azi * azirange / 2**azidepth) * azires
File "<stdin>", line 1
azi = (azi * azirange / 2**azidepth) * azires
^
IndentationError: unexpected indent
>>>
>>> stoprange = float(rbdict['volume']['scan']['slice']['stoprange'])
File "<stdin>", line 1
stoprange = float(rbdict['volume']['scan']['slice']['stoprange'])
^
IndentationError: unexpected indent
>>> rangestep = float(rbdict['volume']['scan']['slice']['rangestep'])
File "<stdin>", line 1
rangestep = float(rbdict['volume']['scan']['slice']['rangestep'])
^
IndentationError: unexpected indent
>>> r = np.arange(0, stoprange, rangestep)
File "<stdin>", line 1
r = np.arange(0, stoprange, rangestep)
^
IndentationError: unexpected indent
>>>
>>> data = rbdict['volume']['scan']['slice']['slicedata']['rawdata']['data']
File "<stdin>", line 1
data = rbdict['volume']['scan']['slice']['slicedata']['rawdata']['data']
^
IndentationError: unexpected indent
>>> datadepth = float(rbdict['volume']['scan']['slice']['slicedata']['rawdata']['@depth'])
File "<stdin>", line 1
datadepth = float(rbdict['volume']['scan']['slice']['slicedata']['rawdata']['@depth'])
^
IndentationError: unexpected indent
>>> datamin = float(rbdict['volume']['scan']['slice']['slicedata']['rawdata']['@min'])
File "<stdin>", line 1
datamin = float(rbdict['volume']['scan']['slice']['slicedata']['rawdata']['@min'])
^
IndentationError: unexpected indent
>>> datamax = float(rbdict['volume']['scan']['slice']['slicedata']['rawdata']['@max'])
File "<stdin>", line 1
datamax = float(rbdict['volume']['scan']['slice']['slicedata']['rawdata']['@max'])
^
IndentationError: unexpected indent
>>> data = datamin + data * (datamax - datamin) / 2 ** datadepth
File "<stdin>", line 1
data = datamin + data * (datamax - datamin) / 2 ** datadepth
^
IndentationError: unexpected indent
>>>
>>> unit = rbdict['volume']['scan']['slice']['slicedata']['rawdata']['@type']
File "<stdin>", line 1
unit = rbdict['volume']['scan']['slice']['slicedata']['rawdata']['@type']
^
IndentationError: unexpected indent
>>> time = rbdict['volume']['scan']['slice']['slicedata']['@time']
File "<stdin>", line 1
time = rbdict['volume']['scan']['slice']['slicedata']['@time']
^
IndentationError: unexpected indent
>>> date = rbdict['volume']['scan']['slice']['slicedata']['@date']
File "<stdin>", line 1
date = rbdict['volume']['scan']['slice']['slicedata']['@date']
^
IndentationError: unexpected indent
>>> lon = rbdict['volume']['sensorinfo']['lon']
File "<stdin>", line 1
lon = rbdict['volume']['sensorinfo']['lon']
^
IndentationError: unexpected indent
>>> lat = rbdict['volume']['sensorinfo']['lat']
File "<stdin>", line 1
lat = rbdict['volume']['sensorinfo']['lat']
^
IndentationError: unexpected indent
>>> sensortype = rbdict['volume']['sensorinfo']['@type']
File "<stdin>", line 1
sensortype = rbdict['volume']['sensorinfo']['@type']
^
IndentationError: unexpected indent
>>> sensorname = rbdict['volume']['sensorinfo']['@name']
File "<stdin>", line 1
sensorname = rbdict['volume']['sensorinfo']['@name']
^
IndentationError: unexpected indent
>>>
>>> cgax, caax, paax, pm = wrl.vis.plot_cg_ppi(data, r=r, az=azi)
File "<stdin>", line 1
cgax, caax, paax, pm = wrl.vis.plot_cg_ppi(data, r=r, az=azi)
^
IndentationError: unexpected indent
>>>
>>> title = sensortype + ' ' + sensorname + ' ' + date + ' ' + time + '\n' + lon + 'E ' + lat + 'N'
File "<stdin>", line 1
title = sensortype + ' ' + sensorname + ' ' + date + ' ' + time + '\n' + lon + 'E ' + lat + 'N'
^
IndentationError: unexpected indent
>>> t = pl.title(title, fontsize=12)
File "<stdin>", line 1
t = pl.title(title, fontsize=12)
^
IndentationError: unexpected indent
>>> t.set_y(1.1)
File "<stdin>", line 1
t.set_y(1.1)
^
IndentationError: unexpected indent
>>> cbar = pl.gcf().colorbar(pm, pad=0.075)
File "<stdin>", line 1
cbar = pl.gcf().colorbar(pm, pad=0.075)
^
IndentationError: unexpected indent
>>> caax.set_xlabel('x_range [km]')
File "<stdin>", line 1
caax.set_xlabel('x_range [km]')
^
IndentationError: unexpected indent
>>> caax.set_ylabel('y_range [km]')
File "<stdin>", line 1
caax.set_ylabel('y_range [km]')
^
IndentationError: unexpected indent
>>> pl.text(1.0, 1.05, 'azimuth', transform=caax.transAxes, va='bottom',
File "<stdin>", line 1
pl.text(1.0, 1.05, 'azimuth', transform=caax.transAxes, va='bottom',
^
IndentationError: unexpected indent
>>> ha='right')
File "<stdin>", line 1
ha='right')
^
IndentationError: unexpected indent
>>> cbar.set_label('reflectivity [' + unit + ']')
File "<stdin>", line 1
cbar.set_label('reflectivity [' + unit + ']')
^
IndentationError: unexpected indent
>>> pl.tight_layout()
File "<stdin>", line 1
pl.tight_layout()
^
IndentationError: unexpected indent
>>> pl.show()
File "<stdin>", line 1
pl.show()
^
IndentationError: unexpected indent
>>>
>>>
>>> if __name__ == '__main__':
... ex_load_rainbow()
...
Thanks a lot.(mohammad)