In [0]:
In [1]:
import netCDF4
In [2]:
datapath = '/net/atmos/data/erainterim/cdf/2010/10/pressure_cst'
pfile = netCDF4.Dataset(datapath)
pressure = pfile.variables['aklay'][:]
pfile.close()
In [4]:
pressure
Out[4]:
Simple equation of the potential temperature $\Theta_{e}$: \begin{equation} \Theta_{e} = T \cdot (1000/P)^{0.286} + 3\cdot w \end{equation}
with T, temperature in K, P the pressure in hPa, w, mixing ratio in g kg$^{-1}$.
The mixing ratio (kg kg$^{-1}$) can be expressed as : \begin{equation} w = \frac{1}{\frac{1}{q_{v}}-1} \end{equation} with $q_{v}$, the specific humidity in kg kg $^{-1}$
In [0]:
In [0]:
In [0]:
In [0]: