function wrf_user_getvar (nc_file, fld, it) Usage: ter = wrf_user_getvar (a, “HGT”, 0) nc_file:wrfout的nc文件名称 fld:变量名 it:时间设置。假如it=-1,则所有时间均输出。 例如:tc=wrf_user_getvar(f,"tc",-1) === ;*** load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code...
1.z = wrf_user_getvar(a_1, "z",-1) ; grid point height 2.pt = wrf_user_getvar(a_1, "th",-1) ; potential temperature (theta) 位温 th/theta是位温,tc是温度(摄氏度),tk是温度(开尔文) 3.floatSWDOWN(Time, south_north, west_east) ;地表高度的向下的短波辐射通量 SWDOWN:description...
wrf_user_getvar wrf_user_getvar function wrf_user_getvar (nc_file, fld, it)Usage: ter = wrf_user_getvar (a, “HGT”, 0)Get fields from a netCDF file for 1. Any given time by setting it to the time required.2. For all times in the input file(s), by setting it = -1 3...
[WRF]wrf_user_getvar 函数的使用 摘要:function wrf_user_getvar (nc_file, fld, it)Usage: ter = wrf_user_getvar (a, “HGT”, 0)nc_file:wrfout的nc文件名称fld:变量名it:时间设置。假如it=-1,则所有时间均输出。例如:tc=wrf_user_getvar(f,"tc",-1)===;***阅读全文 posted @2013-04-...
slp = wrf_user_getvar(a,"slp",-1) 1. 2. 3. 4. 5. 6. 7. 8. wrf-python os.chdir('F:/wrfout/wrfoutnew/') file_list = os.listdir(filepath) files = [os.path.join(filepath,x) for x in file_list] wrflist=[Dataset(d) for d in files] ...
(0,:)time=wrf_user_getvar(a,"XTIME",-1)u10=wrf_user_getvar(a,"U10",0)v10=wrf_user_getvar(a,"V10",0)slp=wrf_user_getvar(a,"slp",0)t2=wrf_user_getvar(a,"T2",0)td=wrf_user_getvar(a,"td",0)rainc=wrf_user_getvar(a,"RAINC",0)rainnc=wrf_user_getvar(a,"RAINNC"...
_user_getvar(a,"slp",time) ; slp tc2 = wrf_user_getvar(a,"T2",time) ; T2 in Kelvin u10 = wrf_user_getvar(a,"U10",time) ; u at 10 m v10 = wrf_user_getvar(a,"V10",time) ; v at 10 m rh2 = wrf_user_getvar(a,"rh2",time) ; rh at 2 m lat2d = wrf_user_...
a=addfile("我是路径/wrfout.nc","r")t=wrf_user_getvar(a,"tc",0), land=wrf_user_getvar(a,"LANDMASK",0);land 中海洋区域数据为0, 陆地区域为1mt=mask(t,land,0);此时0为选中区域,其他区域会设为缺测 借助此方法,可以仅绘制或计算部分区域。
NCL: height=wrf_user_getvar(f,"height",-1)python:height = wrf.getvar(ncfile, "z", wrf...
u = wrf_user_getvar(a,"ua",it) ; 3D U at mass points v = wrf_user_getvar(a,"va",it) ; 3D V at mass points ;---Now get the lowest (bottommost) level nl = 0 tc2 = tc(nl,:,:) u10 = u(nl,:,:) v10 = v(nl,:,:) ...