...
If you have access to the MARS archive at ECMWF then an example of how to retrieve single level fields is:
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
The following MARS request will retrieve ERA-Interim vorticity, divergence and geopotential fields together with a gridpoint field that can be used to create the initial ICMSH and ICMGG files in a similar way to the above method.
|
Namelists
It is extremely important to correctly set the NAMELIST to configure the shallow-water model correctly. Two examples are given here, one for semi-Lagrangian advection, the other for Euler advection. Euler advection must use a regular gaussian grid. It will not work with a reduced grid.
Code Block | ||||
---|---|---|---|---|
| ||||
code |
Code Block | ||||
---|---|---|---|---|
| ||||
|
Gotchas
...
Info | ||
---|---|---|
| ||
The model will fail unless the environment variable:
|
...
is set in the job script. This is because the shallow-water code does not go through the usual code path (if NCONF=1) and uses a older code to output. Otherwise the model will crash at the first output |
...
attempt. Users will usually see a failure |
...
from the grib_api library ( |
...
typically grib_set_real8_array). |
Info | ||
---|---|---|
| ||
Related to the above, the shallow-water model does not use the FULLPOS part of the model for output (namelist NAMFPC) normally used when NCONF=1 (3D primitive equation model). Make sure FULLPOS is off by setting:
in the fort.4 namelist file. |
- make sure &NAMDIM, NUNDEFLD=0 is set. This ensure all uninitialized variables are set to zero. The SW model can output fields not used.
- FPO FPOS must be off.
Plotting
data is spectral
...