wrf-python是用于WRF模式后处理的python模块,其中提供了很多有用的函数,下面就来详细说一下其用法: 基本用法 计算诊断变量 wrf.getvar 函数的主要作用是返回需要计算的诊断变量,因为WRF本身不会返回这些变量。比如:CAPE(对流有效位能),SRH(风暴螺旋度)等等。 下例计算海平面压力: 代码语言:javascript 代码运行次数:0...
wrf-python和NCL都有对应的wrf变量提取、插值、诊断量计算的函数,其中常用函数总结如下表: NCL与WRF-python常用计算函数 可以看出wrf-python与NCL在WRF处理中的一致性与相似性。 文件读取与诊断变量的计算 诊断变量的获取代码如下: NCL: DATADir ="/public/home/zhangzilu/Build_WRF/WRF-4.3/run/out/" FILES =...
>http://www.ncl.ucar.edu/Document/Functions/wrf.shtml> > So far I’ve only wrapped these six: wrf_avo, wrf_tk, wrf_td, wrf_slp, > wrf_rh, wrf_dbz. > > Would the wrf_cape_2d and wrf_cape_3d routines be of interest? These are > specific to WRF data. I believe these are ...
Open a WRF output dataset. Args: path (str): Path to WRF output file. Returns: xr.Dataset: WRF output dataset. """ return Dataset(path) def extract_variables(ncfile, variables_to_extract): """ Extract variables from WRF output dataset. Args: ncfile (xr.Dataset): WRF output dataset. ...
The routines below are called internally by:meth:`wrf.getvar`. .. autosummary:: :nosignatures: :toctree: ./generated/ wrf.g_cape.get_2dcape wrf.g_cape.get_3dcape wrf.g_cloudfrac.get_cloudfrac wrf.g_ctt.get_ctt wrf.g_dbz.get_dbz wrf.g_dbz.get_max_dbz wrf.g_dewpoint.get_dp ...
从WRF输出中返回基本诊断变量 插值 代码语言:javascript 代码运行次数:0 运行 AI代码解释 返回3D场插值到2D平面(指定垂直层)的值 坐标转换 代码语言:javascript 代码运行次数:0 运行 AI代码解释 返回经纬度坐标对应的X,Y坐标 网格去栅格 代码语言:javascript ...