Skip to content

将天机共享数据应用于 WRF 参考指南

将天机数据(TJ1系列)应用于 WRF 作为边界条件的参考步骤如下:

1. 确认WRF输入数据要求

明确WRF所需驱动数据的格式(支持 GRIB1、GRIB2 或 NetCDF)及必要的气象要素。详细要求请参阅 WRF 官方用户手册:

https://www2.mmm.ucar.edu/wrf/users/wrf_users_guide/build/html/wps.html#required-input-for-running-wrf

2. 下载天机数据

访问中科天机数据共享平台,下载所需时段与区域的天机模式数据:

https://www.tjweather.com/Download

3. 配置 namelist.wps 文件

根据下载数据的时间间隔与模拟窗口,修改 namelist.wps 中的关键参数,如 interval_seconds、start_date、end_date、prefix 等。

详细配置说明请参考:

https://www2.mmm.ucar.edu/wrf/users/wrf_users_guide/build/html/wps.html#wps-namelist-variables

4. 编写自定义 Vtable(如 Vtable.TJ1)

Vtable 用于定义变量映射关系,指导 ungrib 将输入数据中的变量名或 GRIB 编码映射到 WRF 内部变量。

天机数据的变量含义可参考:

https://www.tjweather.com/info/doc/factor/tj1hcn.html

Vtable 编写方法请参阅:

https://www2.mmm.ucar.edu/wrf/users/wrf_users_guide/build/html/wps.html#creating-and-editing-vtables

5. 建立软连接

将编写完成的 Vtable 文件链接到工作目录:

Bash
ln -sf Vtable.TJ1 Vtable

6. 数据预处理

按 ungrib 的输入要求,将天机数据整理为 “同一时刻包含所有要素的单一 NetCDF 文件”,并包含时间维。示例结构如下:

Plain
dimensions:  
  time = 1; // 单时刻  
  lev = 30;  
  lat = 100;  
  lon = 100;  
variables:  
  double time(time);  
    time:units = "hours since 2025-11-11 00:00:00";  
    time:calendar = "gregorian";  
  float U(time, lev, lat, lon);  
  float V(time, lev, lat, lon);  
  float T(time, lev, lat, lon);  
  ...

7.运行WPS流程并检查结果

依次执行 geogrid、ungrib、metgrid 等步骤,确认各阶段文件是否生成正确。若成功,可进一步进行 WRF 主程序的数值模拟。

说明:

以上为使用天机数据作为 WRF 边界条件的参考流程,建议同时查阅 WRF 官方文档以获取更多技术细节:

https://www2.mmm.ucar.edu/wrf/users/wrf_users_guide/build/html/overview.html