load "$NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
;--------------------------------WRFOUT
a = addfile("/.../wrfout.nc","r") ;读取wrfout文件
pa = wrf_user_getvar(a,"pres",-1) ;读取wrfout变量
use_out=addfile("/.../d01_pres_June_01.nc", "c") ;输出所提取变量存储路径
use_out->pa = pa ;提取需要的变量