How to run a demo experiment
- Install WRF4G:
$ wget -O- https://meteo.unican.es/work/WRF4G/install.sh | bash
==========================
WRF4G installation script
==========================
--> Downloading wrf4g_x86_64_versions from https://meteo.unican.es/work/WRF4G ...
2015-02-13 13:07:09 URL:https://meteo.unican.es/work/WRF4G/wrf4g_x86_64_versions [36/36] -> "wrf4g_x86_64_versions" [1]
This script will install WRF4G version: 2.0.0
--> Downloading wrf4g-2.0.0-x86_64.tar.gz from https://meteo.unican.es/work/WRF4G ...
2015-02-13 13:07:09 URL:https://meteo.unican.es/work/WRF4G/wrf4g-2.0.0-x86_64.tar.gz [1486041/1486041] -> "wrf4g-2.0.0-x86_64.tar.gz" [1]
--> Unpacking wrf4g-2.0.0-x86_64.tar.gz in directory /home/user ...
====================================
Installation of WRF4G 2.0.0 is done!
====================================
In order to work with WRF4G you have to enable its
environment with the command:
. /home/user/wrf4g/bin/wrf4g_init.sh
You need to run the above command on every new shell you
open before using WRF4G, but just once per session.
[user@mycomputer~]$ . /home/user/wrf4g/bin/wrf4g_init.sh
- Start up WRF4G :
[user@mycomputer~]$ wrf4g start
Starting DRM4G ....
OK
Starting WRF4G_DB (MySQL) ...
OK
- Show information about all available resources and their host :
[user@mycomputer~]$ wrf4g resource list
RESOURCE STATE
localmachine enabled
[user@mycomputer~]$ wrf4g host list
HID ARCH JOBS(R/T) LRMS HOSTNAME
0 x86_64 0/0 fork localmachine
[user@mycomputer~]$ wrf4g host list 0
HID ARCH JOBS(R/T) LRMS HOSTNAME
0 x86_64 0/0 fork localmachine
QUEUENAME JOBS(R/T) WALLT CPUT MAXR MAXQ
default 0/0 0 0 1 1
- Define an experiment called test from a template :
[user@mycomputer~]$ wrf4g exp test define --from-template=single
- Take a look at test experiment configuration :
[user@mycomputer~]$ cat test/experiment.wrf4g
[DEFAULT]
# Experiment configuration
name = test
# Simulation domain
max_dom = 1
# Experiment time-specification
# start_date | end_date | chunk_size_h
date_time = 2011-08-28_12:00:00 | 2011-08-30_00:00:00 | 12
calendar = standard
timestep_dxfactor = 6
# Running options
np = 1
requirements = ARCH = "x86_64"
clean_after_run = yes
save_wps = no
real_parallel = no
wrf_parallel = yes
# Input data
domain_path = /home/user/WRF4G_2_0/repository/domains/Santander_50km
# Vtables must exist as Vtable.[input_extdata]
extdata_vtable = GFS
extdata_path = /home/user/WRF4G_2_0/repository/input/NCEP/GFS
# Seconds between global analysis input times
extdata_interval = 21600
preprocessor = default
# Output
output_path = /home/user/test/output
postprocessor = SFC
wrfout_name_end_date = no
# app
app = wrf_all_in_one | bundle | /home/user/WRF4G_2_0/repository/apps/WRF/WRFbin-3.4.1_r2265_gfortran.tar.gz
# WRF-namelist parameters. Override namelist.input variables here
namelist_version = 3.4.1
namelist = spec_bdy_width | 10
spec_zone | 1
relax_zone | 9
feedback | 0
history_interval | 180
frames_per_outfile | 3
e_vert | 28
mp_physics | 4
radt | 15
ra_lw_physics | 3
ra_sw_physics | 3
- Create the test experiment on WRF4G :
[user@mycomputer~]$ wrf4g exp test create --dir test
Checking the variables in experiment.wrf4g file
Preparing namelist...
---> Realization test_20110828T120000
---> Chunk 1 2011-08-28_12:00:00 2011-08-29_00:00:00
---> Chunk 2 2011-08-29_00:00:00 2011-08-29_12:00:00
---> Chunk 3 2011-08-29_12:00:00 2011-08-30_00:00:00
- Submit the experiment :
[user@mycomputer~]$ wrf4g exp test submit
---> Submitting Realization test_20110828T120000
---> Submitting Chunk 1 2011-08-28_12:00:00 2011-08-29_00:00:00
---> Submitting Chunk 2 2011-08-29_00:00:00 2011-08-29_12:00:00
---> Submitting Chunk 3 2011-08-29_12:00:00 2011-08-30_00:00:00
- Check the evolution of the experiment :
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 1/3 localmachine CONF_APP 0 - 0.00
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 1/3 localmachine METGRID 0 - 0.00
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 1/3 localmachine WRF 0 - 0.00
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 2/3 - SUBMITTED 1 - 33.33
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 2/3 localmachine CONF_APP 1 - 33.33
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 2/3 localmachine UNGRIB 1 - 33.33
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 2/3 localmachine WRF 1 - 33.33
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 3/3 - SUBMITTED 2 - 66.67
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 3/3 localmachine CONF_APP 2 - 66.67
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 3/3 localmachine UNGRIB 2 - 66.67
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 3/3 localmachine REAL 2 - 66.67
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 RUNNING 3/3 localmachine WRF 2 - 66.67
[user@mycomputer~]$ wrf4g exp test status
REALIZATION STATUS CHUNKS RESOURCE RUN STATUS JID EXT %
test_20110828T120000 FINISHED 3/3 localmachine FINISHED 2 0 100.00
- Check out the output :
[user@mycomputer~]$ tree /home/user/test/output/test/test_20110828T120000/
/home/user/test/output/test/test_20110828T120000/
├── db.conf
├── experiment.pkl
├── experiment.wrf4g
├── log
│ ├── log_1_0.tar.gz
│ ├── log_2_1.tar.gz
│ └── log_3_2.tar.gz
├── namelist.input
├── output
│ ├── wrfout_d01_20110828T120000Z.nc
│ ├── wrfout_d01_20110828T210000Z.nc
│ ├── wrfout_d01_20110829T030000Z.nc
│ ├── wrfout_d01_20110829T120000Z.nc
│ ├── wrfout_d01_20110829T150000Z.nc
│ └── wrfout_d01_20110830T000000Z.nc
├── realout
└── restart
├── wrfrst_d01_20110829T000000Z.nc
├── wrfrst_d01_20110829T120000Z.nc
└── wrfrst_d01_20110830T000000Z.nc