generated from just-the-docs/just-the-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add command for loading icontools (#43)
* command for loading icontools From the instructions, it is not clear that the package also needs to be loaded after installation * clone icontools * introduce BC * make commands clearer * add -A to sbatch command * Minor corrections * Renaming lbc file * BC -> LBC --------- Co-authored-by: Michael Jähn <[email protected]>
- Loading branch information
Showing
1 changed file
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ parent: Tools | |
# DWD ICON Tools | ||
|
||
The DWD ICON Tools contain a set of routines which may be suitable for reading, remapping and writing of fields from and to predefined grids, | ||
e.g. regular (lat-lon, gaussian) or triangular (ICON). It can be used to genereta boundary and initial conditions for ICON-LAM simulations. | ||
e.g. regular (lat-lon, gaussian) or triangular (ICON). It can be used to generate lateral boundary conditions (LBC) and initial conditions (IC) for ICON-LAM simulations. | ||
|
||
## Access | ||
|
||
|
@@ -18,52 +18,63 @@ please contact your group's technical contact. They will be responsible for addi | |
|
||
Spack takes care of configuring and building Iontools. For detailed instructions, | ||
please consider the official [spack-c2sm documentation](https://c2sm.github.io/spack-c2sm/latest). | ||
The following spack command should be sufficient for most cases: | ||
The following Spack installation should be sufficient for most cases: | ||
|
||
```bash | ||
spack install icontools@c2sm-master%gcc | ||
``` | ||
|
||
After the installation, you need to load the package with Spack: | ||
|
||
```bash | ||
spack load icontools | ||
``` | ||
|
||
## Run | ||
|
||
[The folder C2SM in the icontools repository](https://github.com/C2SM/icontools/tree/master/C2SM) contains a bunch of scripts to run `iconremap` and `icongridgen` on Piz Daint. | ||
Most likely you will use the DWD ICON tools to generate a new grid or interpolate boundary conditions for limited-area ICON runs. | ||
|
||
Below is a recipe to create initial and boundary files for an ICON-LAM run on Piz Daint. | ||
|
||
### Generate new ICON grid | ||
### Clone the repository | ||
```bash | ||
git clone [email protected]:C2SM/icontools.git | ||
``` | ||
|
||
### Generate a new ICON grid | ||
|
||
```bash | ||
./icongridgen --nml gridgen.nml | ||
icongridgen --nml icontools/C2SM/gridgen.nml | ||
``` | ||
|
||
### Interpolate BC from IFS | ||
|
||
This manual refers to the workflow MeteoSwiss is currently using to run LAM simulations. | ||
|
||
* Add fields `FI` and `z` from IFS analysis to BC prior the interpolation using `cdo` (GRIB only). | ||
* Add fields `FI` and `z` from IFS analysis to LBC prior the interpolation using `cdo` (GRIB only). To use the `cdo` command, make sure the module is loaded: `module load daint-gpu CDO`. | ||
|
||
```bash | ||
cdo -selname,FI analysis fi_file | ||
cdo -selname,z analysis z_file | ||
cdo settime,'03:00:00' fi_file fi_file_time | ||
cdo settime,'03:00:00' z_file z_file_time | ||
cdo -selname,FI analysis_file fi_file | ||
cdo -selname,z analysis_file z_file | ||
cdo settime,'03:00:00' fi_file fi_file_time | ||
cdo settime,'03:00:00' z_file z_file_time | ||
cdo setreftime,2019-09-30,03:00:00 z_file_time z_file_reftime | ||
cat file_for_BC zfile_reftime fi_file_time > complete_file | ||
cat lbc_file zfile_reftime fi_file_time > complete_file | ||
``` | ||
|
||
* Adapt scripts remap_ini and remap_lbc to your needs | ||
* Adapt scripts `icontools/C2SM/remap_ini` and `icontools/C2SM/remap_lbc` to your needs | ||
|
||
* Remap IFS data for BC by | ||
* Remap IFS data for BC: | ||
|
||
```bash | ||
sbatch remap_lbc | ||
sbatch -A <account> icontools/C2SM/remap_lbc | ||
``` | ||
|
||
* Remap IFS data for analysis | ||
* Remap IFS data for analysis: | ||
|
||
```bash | ||
sbatch remap_ini | ||
sbatch -A <account> icontools/C2SM/remap_ini | ||
``` | ||
|
||
## Documentation | ||
|