In [11]:
import xarray as xr
import atmPy
plt.style.use('hagen_default')

In [2]:
from atmPy.general import flightpath

In [18]:
fname = '/Volumes/HTelg_4TB_Backup/arm_data/OLI/balloon_soundings/olisondewnpnM1.b1.20170523.232900.cdf'
sound = atmPy.data_archives.arm.read_sonding(fname)

In [19]:
tmp = sound.vertical_profile.drop_all_columns_but('Temp')

In [24]:
a = tmp.plot()
a.set_ylim(0,2000)
a.set_xlim(-4, 3)
# a.set_xscale('log')


Out[24]:
(-4, 3)

Netcdf file structure


In [9]:
fname = '/Volumes/HTelg_4TB_Backup/arm_data/OLI/balloon_soundings/olisondewnpnM1.b1.20170401.172800.cdf'
data = xr.open_dataset(fname)

In [25]:
data.wspd


Out[25]:
<xarray.DataArray 'wspd' (time: 2390)>
array([  1.9     ,   0.5     ,   0.4     , ...,  19.200001,  19.1     ,  18.9     ])
Coordinates:
  * time     (time) datetime64[ns] 2017-04-01T17:28:00 2017-04-01T17:28:02 ...
Attributes:
    long_name:   Wind Speed
    units:       m/s
    valid_min:   0.0
    valid_max:   100.0
    resolution:  0.1

In [ ]: