Browse Source

Merge pull request #2 from weinihou/patch-2

correct the example of vinterp
main
Bill Ladwig 8 years ago committed by GitHub
parent
commit
dc916a2f33
  1. 7
      doc/source/basic_usage.rst

7
doc/source/basic_usage.rst

@ -1027,12 +1027,13 @@ The surface levels to interpolate also need to be specified.
from __future__ import print_function from __future__ import print_function
from netCDF4 import Dataset from netCDF4 import Dataset
from wrf import getvar, interpline, CoordPair from wrf import getvar, vinterp
ncfile = Dataset("wrfout_d01_2016-10-07_00_00_00") ncfile = Dataset("wrfout_d01_2016-10-07_00_00_00")
# Interpolate tk to theta-e levels    tk = getvar(ncfile, "tk")
interp_levels = [200, 300, 500, 1000]    # Interpolate tk to theta-e levels                
   interp_levels = [200, 300, 500, 1000]
interp_field = vinterp(ncfile, interp_field = vinterp(ncfile,
field=tk, field=tk,

Loading…
Cancel
Save