气象互助社 发表于 2024-4-11 21:53:29

WRF系列教程5:WPS前处理的一些利器


WRF模式模拟中,前处理WPS有许多有用的小工具,本篇文章列出几个常用的小工具,对一些特殊用途或者诊断错误或有帮助。



1.查看GRIB文件
ungrib.exe解压的是GRIB格式的数据,实际使用中,可能会遇到下载变量不全的情况,如果想要检验,可以使用以下工具打印grib文件的气象信息、变量、层次和日期,进行检验。
位于WPS/util文件夹:

[*]g1print.exe# grib1格式


[*]g2print.exe   # grib2格式

./g2print.exe gfs.t12z.pgrb2.0p50.f000




2.将气象数据转化为中间格式
metgrid.exe步骤,读取中间格式(Intermediate Format)的气象数据,一般由ungrib.exe步骤得到,而ungrib解压的数据为grib格式,并且需要提供Vtable。一些其他全球模式,比如耦合模式为NC格式,如果需要用这些模式数据驱动WRF,那么就需要将其转为中间格式,可以使用官方提供的Fortran代码(文末的参考链接)。需要根据具体应用做些修改并编译才能使用。




3.查看中间格式
ungrib.exe解压得到的中间格式或许不全,如果想查看,可以通过rd_intermediate.exe程序进行查看,会打印中间格式的文件信息。
./rd_intermediate.exe FILE\:2021-12-28_12


注: 如果只看到最后SUCCESSFUL这句话,说明中间格式的文件是空的,查看其大小会显示为0,说明ungrib.exe步骤实际没成功(虽然可能也没报错)。



4.中间格式转为nc格式
int2nc.exe 可以将中间格式转为NC格式, ungrib.exe + int2nc.exe结合,可以将grib格式转为NC格式,如果有此需求,也算曲线救国路线。
./int2nc.exe FILE:2021-12-28_12得到FILE:2021-12-28_12.nc



5.绘制模拟区域
plotgrids_new.ncl脚本可以读取namelist.wps的设置,绘制设置的模拟区域,这一步骤可以检查设置模拟区域是否正确。
nclutil/plotgrids_new.ncl




6.其他工具
还有一些其他小工具,虽然没用过,这里列举一下,读者有需要的可以自行探究:


[*]avg_tsfc.exe
计算中间格式数据的日平均陆面温度,起止日期为namelist.wps中share部分设置的日期。


[*]mod_levs.exe
去除intermediate format files格式数据中的某些层,使得数据层与namelist.wps中mod_levs层一致,mod_levs部分的press_pa 表示需要保留的气压层。


[*]calc_ecmwf_p.exe
real.exe步骤需要气象场处于相同垂直层的3D气压场和位势高度场。calc_ecmwf_p.exe可进行垂直插值,将ECMWF的sigma层数据构建成需要的气象场。





参考链接:

https://www2.mmm.ucar.edu/wrf/users/docs/user_guide_v4/v4.0/users_guide_chap3.html#_Writing_Meteorological_Data





文章来源于微信公众号:气海同途

FrankJScott 发表于 2024-8-29 00:10:56

Recommended ASIAN2BET Blog

For the man asking about rtp live judi, rtp slot online hari ini, info rtp pragmatic play hari ini, rtp live dragon303, rtp pjslot168, rtp hari ini pragmatic play, rtp all slot hari ini, rtp live hari ini, rtp live pay4d, rtp live arena369,I highly suggest this from this source about RTP ASIAN2BET link or slot indonesia online, rtp slot olympus hari ini, rtp vipslot777, rtp slot zara4d, rans777 rtp, rtp live 77lucks, rtp live baka88, rtp live zeus 138, liveslot168 rtp, live slot pragmatic, as well as this her explanation on RTP ASIAN2BET link not to mention rtp slot 4d live, rtp slot 777 hari ini, gmslot88 live, rtp mpo555, win88 rtp live, daftar live22 indonesia, jam main slot, join88 live, rtp slot 138 hari ini, nila88 live, on top of this her latest blog on RTP ASIAN2BET advice which is also great. Also, have a look at this updated RTP ASIAN2BET forum not to mention rtp pragmatic hari ini terbaru, live slot online pragmatic, rtp restoslot4d, rtp agen878, rtp live slot367, jam jam main slot gacor, live rtp pg soft, gates of olympus pragmatic play indonesia, vipslot77 live, live slot pragmatic, not to mention this homepage about RTP ASIAN2BET site with rtp live tuna55, rtp live raja89, rtp slot pragmatic live hari ini, jam main slot pragmatic, rtp live pragmatic, rtp live agen138, rtp live playbook88, bocoran rtp slot hari ini live pragmatic, info rtp olympus hari ini, rtp slot 4d hari ini,for good measure. Check more @ Recommended ASIAN2BET Info a7dc8ca
页: [1]
查看完整版本: WRF系列教程5:WPS前处理的一些利器