AI代码解释 #获取3D对流有效位能(包含缺省值)cape_3d=getvar(ncfile,"cape_3d")# 因为包含缺省值,因此返回mask数组 cape_3d_ndarray=to_np(cape_3d)print(type(cape_3d_ndarray)) 返回: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 <class'numpy.ma.core.MaskedArray'> 文件序列 使用cat 方法合并...
读取、合并、基本计算 诊断量计算(cape、Cloud fraction、Precipitable Water等) 垂直插值、坐标索引转换 绘图 剖面图 填色图 折线/点线图 其他:3D、风玫瑰、Skew_T 数据信息 首先我们应当查看一下wrf输出变量的一些信息,可以使用ncdump-h直接查看,也可以在ncl里让ncl打印: a=addfile("wrfout_d01_2018-05-06_12...
rip_cape.o build/temp.macosx-11.0-arm64-cpython-311/fortran/wrf_cloud_fracf.o build/temp.macosx-11.0-arm64-cpython-311/fortran/wrf_fctt.o build/temp.macosx-11.0-arm64-cpython-311/fortran/wrf_user_dbz.o build/temp.macosx-11.0-arm64-cpython-311/fortran/wrf_relhl.o build/temp.macosx-...
Files develop .github build_envs build_scripts doc fortran build_help contrib reference calc_uh.f90 eqthecalc.f90 omp.f90 ompgen.F90 ompgen.F90.template ripW.c rip_cape.f90 wrfW.c wrf_cloud_fracf.f90 wrf_constants.f90 wrf_fctt.f90 ...
最近,又开始了那个无休止的WRF实验循环。每次跑完都得费尽心思地检查结果,一遍又一遍地盯着那几个变量。偏偏,老板有时候突发奇想想看看其他要素的变化,然后我就得重新翻阅代码,捋一遍。 为了避免这种反复的无聊事情,我决定写个代码来提取任意数量的变量。我这里只测试了我常用的一些二维和三维的变量,并将它们插值到...
从WRF输出中返回基本诊断变量 插值 代码语言:javascript 代码运行次数:0 运行 AI代码解释 返回3D场插值到2D平面(指定垂直层)的值 坐标转换 代码语言:javascript 代码运行次数:0 运行 AI代码解释 返回经纬度坐标对应的X,Y坐标 网格去栅格 代码语言:javascript ...
Most of the decorators in specialdec.py are used for products that contain multiple outputs like cape_2d, but you can use it for other purposes. If your function is pure python, you can create a new module for it, or place it in another module with similar functionality. For exampl...
Internal API Routines Extraction and Diagnostic Routines 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_db...