Skip to content
Snippets Groups Projects
Commit 58a2896f authored by Stefano Serafin's avatar Stefano Serafin
Browse files

updated WRF.md

parent 30b56ce1
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
The present manual contains basic information about running the Weather Research and Forecasting Model on workstations and clusters of the Department of Meteorology and Geophysics in Vienna. The present manual contains basic information about running the Weather Research and Forecasting Model on workstations and clusters of the Department of Meteorology and Geophysics in Vienna.
More detailed information is also available: Besides this basic guide, more detailed information is available too:
[Basic WRF usage, including compilation instructions](WRF/WRF_basic.md). [Basic WRF usage, including compilation instructions](WRF/WRF_basic.md).
[Advanced WRF usage](WRF/WRF_basic.md). [Advanced WRF usage](WRF/WRF_basic.md).
...@@ -43,30 +43,32 @@ The WRF source code is available on [Github](https://github.com/wrf-model/WRF), ...@@ -43,30 +43,32 @@ The WRF source code is available on [Github](https://github.com/wrf-model/WRF),
* Recommended: download one of the [official releases](https://github.com/wrf-model/WRF/releases): scroll down to the "Assets" section and choose one of the `v*.tar.gz` or `v*zip` files (not the "Source code" ones; these are incomplete). * Recommended: download one of the [official releases](https://github.com/wrf-model/WRF/releases): scroll down to the "Assets" section and choose one of the `v*.tar.gz` or `v*zip` files (not the "Source code" ones; these are incomplete).
To download while working on the terminal on a remote server, use wget or curl: To download while working on the terminal on a remote server, use wget or curl:
```sh ```sh
wget "https://github.com/wrf-model/WRF/releases/download/v4.4.2/v4.4.2.tar.gz" wget "https://github.com/wrf-model/WRF/releases/download/v4.4.2/v4.4.2.tar.gz"
curl -OL "https://github.com/wrf-model/WRF/archive/refs/tags/v4.4.2.zip" curl -OL "https://github.com/wrf-model/WRF/archive/refs/tags/v4.4.2.zip"
``` ```
To uncompress the source code, use either of the following (depending on the format): To uncompress the source code, use either of the following (depending on the format):
```sh ```sh
tar xzvf v4.4.2.tar.gz tar xzvf v4.4.2.tar.gz
unzip v4.4.2.zip unzip v4.4.2.zip
``` ```
* Clone the repository in a local directory: * Clone the repository in a local directory:
```sh ```sh
git clone --recurse-submodule https://github.com/wrf-model/WRF.git git clone --recurse-submodule https://github.com/wrf-model/WRF.git
``` ```
* You can also import WRF from Github into a new empty Gitlab project on [Phaidra](https://gitlab.phaidra.org/explore). To get access to Gitlab, look at the [ZID guidlines](https://zid.univie.ac.at/gitlab/) and send a request via email to `support.phaidra@univie.ac.at`. Once you have access credentials, click on "New Project", then "Import Project", then "Repository by URL". This method might be advisable if you want to use Gitlab for tracking your own changes to the WRF code, but do not want to rely on the official repository. * You can also import WRF from Github into a new empty Gitlab project on [Phaidra](https://gitlab.phaidra.org/explore). To get access to Gitlab, look at the [ZID guidlines](https://zid.univie.ac.at/gitlab/) and send a request via email to `support.phaidra@univie.ac.at`. Once you have access credentials, click on "New Project", then "Import Project", then "Repository by URL". This method might be advisable if you want to use Gitlab for tracking your own changes to the WRF code, but do not want to rely on the official repository.
## Quick start with WRF ## Quick start with WRF
### Compiling
Compiling WRF for an idealized simulation (LES): Compiling WRF for an idealized simulation (LES):
```sh ```sh
...@@ -74,6 +76,17 @@ Compiling WRF for an idealized simulation (LES): ...@@ -74,6 +76,17 @@ Compiling WRF for an idealized simulation (LES):
./compile em_les > compile.log 2>&1 & ./compile em_les > compile.log 2>&1 &
``` ```
The process is similar for other idealized test cases. Just change the compile targe (e.g., `em_hill2d_x`).
Compiling WRF for a real-case simulation:
```sh
./configure
./compile em_real > compile.log 2>&1 &
```
### Running
Running WRF for an idealized simulation (LES): Running WRF for an idealized simulation (LES):
```sh ```sh
...@@ -84,13 +97,6 @@ cd ./test/em_les ...@@ -84,13 +97,6 @@ cd ./test/em_les
For other test cases, compilation might create a `run_me_first.csh` script in the same directory as the executables. If there is one, run it only once, before any other program. It will link any necessary lookup tables needed for the simulation (land-use, parameterizations, etc.). For other test cases, compilation might create a `run_me_first.csh` script in the same directory as the executables. If there is one, run it only once, before any other program. It will link any necessary lookup tables needed for the simulation (land-use, parameterizations, etc.).
Compiling WRF for an idealized simulation (LES):
```sh
./configure
./compile em_real > compile.log 2>&1 &
```
Running WRF for a real_case simulation: Running WRF for a real_case simulation:
```sh ```sh
...@@ -125,5 +131,3 @@ mv geo_em.d0?.nc met_em*nc ${archive} ...@@ -125,5 +131,3 @@ mv geo_em.d0?.nc met_em*nc ${archive}
cp namelist.wps geogrid/GEOGRID.TBL.HIRES ${archive} cp namelist.wps geogrid/GEOGRID.TBL.HIRES ${archive}
rm -fr FILE* PRES* TAVGSFC GRIBFILE* metgrid.log.* rm -fr FILE* PRES* TAVGSFC GRIBFILE* metgrid.log.*
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment