Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
There are several programs distributed with OpenIFS that can be useful in working with the grids used by the model. These are documented here.
All these programs except for 'gaussgr' are compiled executables, build when the OpenIFS model is compiled. By default, after compilation, they can be found in the 'make' directory in the build sub-directory pointed to by the OIFS_COMP & OIFS_BUILD environment variables. e.g. for OIFS_COMP=gnu, OIFS_BUILD=opt, the compiled executables are found in 'make/gnu-opt/oifs/bin'.
Number of latitudes in a grid: gaussgr
The command 'gaussgr' returns the number of latitudes between the pole and the equator for a given input resolution and grid type. It is a bash script and can be found in the 'bin' directory of the OpenIFS distribution.
Code Block | ||||
---|---|---|---|---|
| ||||
% gaussgr -h |
Code Block | ||||
---|---|---|---|---|
| ||||
% gaussgr -r 95 -g _4 96 |
Code Block | ||||
---|---|---|---|---|
| ||||
% gaussgr -r 511 -g l_2 256 |
Info |
---|
For grid types, see 4.3 OpenIFS: Horizontal Resolution and Configurations |
Get resolution of files: getres
This command will provide all resolution information by reading OpenIFS GRIB files (both initial files and model output files).
Note getres.exe is a compiled program provided with OpenIFS and not a Bash script.
Code Block | ||||
---|---|---|---|---|
| ||||
% getres.exe -h |
The command expects the location of the 'resolution: res' files provided with in the 'ifsdata' directory. It helps if the OpenIFS environment variable OIFS_DATA_DIR is set (see the file oifs-config.sh in the OpenIFS distribution).
Code Block | ||||
---|---|---|---|---|
| ||||
% getres.exe -s ICMSHepc8INIT -g ICMGGepc8INIT -p $OIFS_DATA_DIR/rtables
GETRES VERSION 1.0
OUTPUT FILENAME IS "./result"
INPUT_RESOL= 21
INPUT_LEVELS= 19
INPUT_GTYPE= _full |
Code Block | ||||
---|---|---|---|---|
| ||||
% getres.exe -s ICMSHhah0INIT -g ICMGGhah0INIT -p $OIFS_DATA_DIR/rtables
GETRES VERSION 1.0
OUTPUT FILENAME IS "./result"
PATH openifs/ifsdata/43r3/43r3/rtables/rtable_4095
INPUT_RESOL= 95
INPUT_LEVELS= 60
INPUT_GTYPE= _4
|
rgrid
grib_set_vtable
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Panel | ||||
---|---|---|---|---|
| ||||
On this page ...
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|