Skip to content

Commit fe65eb8

Browse files
authored
correct the example of vinterp
1 parent 5b01084 commit fe65eb8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎doc/source/basic_usage.rst‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,12 +1027,13 @@ The surface levels to interpolate also need to be specified.
10271027
from __future__ import print_function
10281028
10291029
from netCDF4 import Dataset
1030-
from wrf import getvar, interpline, CoordPair
1030+
from wrf import getvar, vinterp
10311031
10321032
ncfile = Dataset("wrfout_d01_2016-10-07_00_00_00")
10331033
1034-
# Interpolate tk to theta-e levels
1035-
interp_levels = [200, 300, 500, 1000]
1034+
   tk = getvar(ncfile, "tk")
1035+
   # Interpolate tk to theta-e levels                
1036+
   interp_levels = [200, 300, 500, 1000]
10361037
10371038
interp_field = vinterp(ncfile,
10381039
field=tk,

0 commit comments

Comments
 (0)