The Weather Research and Forecast Model (WRF) is an open source weather simulation software that gives forecasts from actual or idealised conditions. It is used extensively by research laboratories and forecasting centers around the world. It also includes modules for data assimilation (WRFDA), hydrology (WRF-Hydro) and air pollution (WRF-CHEM). Running your Weather Research and Forcast Model simulation on Qarnot is as easy as uploading your case and launching a script. Here’s a walk-through of the different steps.
The test case uses Weather Research and Forcast Model 4.2.1.
If you are interested in another version, please send us an email at firstname.lastname@example.org.
Please ensure that you have created a Qarnot account here.
DATA folder– the initial grib files needed by the ungrib program.
GFS files– GFS outputs from 2020, September 10th until September 11th, 12pm.
namelist.input– a configuration file corresponding to the above shared data, which defines the parameters setup for the WRF package execution.
namelist.wps– a file which defines the parameters setup for WPS.
running_script.sh– a bash script that includes all commands needed to run the case, from setting up the WPS environment to the execution of the file wrf.exe.
You should put those four items in the same folder and call it france. Please note that it needs to be unzipped before it can be used on Qarnot.
Launching the case
Before starting a calculation with the Python SDK, a few steps are required:
Be sure you have copied your authentication token in the script (instead of
<<<MY_SECRET_TOKEN>>>) to be able to launch the task on Qarnot.
To launch this script, simply copy the preceding code in a Python script, put it at the same level as the france folder and execute
python3 wrf.py & in your terminal.
At any given time, you can monitor the status of your task on the general web interface, Console. The following figure shows a successful Weather Research and Forcast Model demo simulation on Qarnot’s Console.
You should also now have a result folder in the output bucket and on your computer containing all the numerical results. You can open the wrfout_d01_2020-09-10_00:00:00 file with any software that can read NetCDF files to view the results.
That’s it! If you have any questions, please contact email@example.com and we will help you with pleasure!
You can read more about this use case of Weather Research and Forcast Model on Qarnot here : What will the weather be like tomorrow?.