0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WRFテストラン手順 その2(WPS編)

0
Last updated at Posted at 2025-06-03

1. 概要

ここでは、前回の記事に引き続いて,WPSの各コンポーネント(geogrid.exe, ungrib.exe, metgrid.exe)の実行順序と必要なコマンドをまとめます.
せっかくなので既往の記事で紹介されているFNLデータではなく,気象庁GSM(全球)を用いたテストランを行ってみようと思います.


2. 前提

  • WRF/WPSは ~/WRF/WPS-4.6.0/ にインストール済み.

  • namelist.wps は例えば以下のように事前に編集済みとする(Streamlit GUI等を活用して1段階ネスティングで設定,前回の記事 ).

namelist.wps
&share
 wrf_core = 'ARW',
 max_dom = 2,
 start_date = '2025-05-05_00:00:00','2025-05-05_00:00:00',
 end_date = '2025-05-08_00:00:00','2025-05-08_00:00:00',
 interval_seconds = 21600
/

&geogrid
 parent_id = 1,1,
 parent_grid_ratio = 1,4,
 i_parent_start = 1,110,
 j_parent_start = 1,160,
 e_we = 500,301,
 e_sn = 500,301,
 geog_data_res = 'default','default',
 dx = 5000,
 dy = 5000,
 map_proj = 'lambert',
 ref_lat = 37.0,
 ref_lon = 138.0,
 truelat1 = 37.0,
 truelat2 = 37.0,
 stand_lon = 138.0,
 geog_data_path = '/home/user/WRF/WPS_GEOG'
 OPT_GEOGRID_TBL_PATH = '/home/user/WRF/WPS-4.6.0/geogrid'
/

&ungrib
 out_format = 'WPS',
 prefix = 'GRIBFILE',
/

&metgrid
 fg_name = 'GRIBFILE'
 OPT_METGRID_TBL_PATH = '/home/user/WRF/WPS-4.6.0/metgrid'
/
  • 実行用ディレクトリは以下とする.
~/WRF/WPS-4.6.0/RUN/run_project_20250603/

3. GRIBデータのリンク

取得済みのGSMデータ(またはFNLデータ)をWPS用にリンク.

cd ~/WRF/WPS-4.6.0/RUN/run_project_20250603
../../link_grib.csh ../../../GSM_DATA/

リンク成功後、GRIBFILE.AAA, GRIBFILE.AAB, ... のファイル群がrunproject内に生成されます.


4. 地形データのリンク

地形データをリンクする.以下のようにnamelist.wpsに追記しておきます(各自のPATHに合わせる).

namelist.wps
OPT_GEOGRID_TBL_PATH = '/home/user/WRF/WPS-4.6.0/geogrid'

5. geogrid.exe の実行

./geogrid.exe

NETCDF形式でgeogridのファイル群が生成されます.

6. ungrib.exe の準備と実行

a. Vtable のリンク

読み込ませる気象データに対応する Vtable を選択してリンク.

例(気象庁GSM の場合):

ln -sf ../../ungrib/Variable_Tables/Vtable.GFS Vtable

(Vtable.JMAGSMというのも同じディレクトリにあることは確認したんですが,テストランはしてません)

b. 実行

./ungrib.exe

grib2形式のデータが先ほどリンクしたVtableを用いてungribされます.


7. metgrid.exe の準備と実行

a. METGRID.TBL のリンク

namelist.wps
OPT_METGRID_TBL_PATH = '/home/user/WRF/WPS-4.6.0/metgrid'

metgridでungribされた気象データとgeogridによる地形データが統合され,met_em.*.ncが入力時系列の分だけ作成されます.

b. 実行

./metgrid.exe

次は「その3(WRF実行編)」で最終的なWRFの計算として,コンパイル済みの./real.exe,./wrf.exeの実行を行っていきます.


0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?