Reading IDV data into this notebook as a netCDF variable¶
[3]:
%reload_ext ipython_IDV
from ipython_IDV import Idv
[11]:
# A RAMADDA bundle that uses a small test dataset
# at https://geodesystems.com/repository/entry/show/example_grid.xidv?entryid=4728e5eb-fa89-4af8-8162-e2f66a9cd0c9
%load_bundle https://geodesystems.com/repository/entry/get/example_grid.xidv?entryid=4728e5eb-fa89-4af8-8162-e2f66a9cd0c9
[6]:
data1 = Idv.export_data(display_id='z')
Z=data1.variables['Z']
data2 = Idv.export_data(display_id='windspeed')
windspeed=data2.variables['WindSpeed']
print(windspeed)
print (Z)
<class 'netCDF4._netCDF4.Variable'>
float32 WindSpeed(time, level, y, x)
units: meters/second
grid_mapping: lambert_conformal_conic
unlimited dimensions:
current shape = (2, 19, 65, 93)
filling off
<class 'netCDF4._netCDF4.Variable'>
float32 Z(time, level, y, x)
units: gp m
grid_mapping: lambert_conformal_conic
unlimited dimensions:
current shape = (2, 1, 65, 93)
filling off
[10]:
print(windspeed.units)
meters/second
[ ]: