...
Panel |
---|
bgColor | white |
---|
titleBGColor | #f0f0f0 |
---|
title | Creating initial fields from existing GRIB files |
---|
|
The GRIB files from an existing experiment can also be used to create initial files for the shallow-water model. In the following example, the initial files from the T21 test case distributed with the OpenIFS tarfile are used. Code Block |
---|
title | Extract starting files from existing experiment |
---|
collapse | true |
---|
| # Extract a single level (level 1) for the shallow water model
# and change the experiment id in the file.
expid="epc8"
newid="sw01"
grib_copy -w level=1,shortName=vo ICMSHepc8INITICMSH${expid}INIT tmp
grib_set -s experimentVersionNumber=epc9"$newid" -w experimentVersionNumber=epc8"$expid" tmp vo.grb
grib_copy -w level=1,shortName=d ICMSHepc8INITICMSH${expid}INIT tmp
grib_set -s experimentVersionNumber=epc9"$newid" -w experimentVersionNumber=epc8"$expid" tmp d.grb
grib_copy -w shortName=z ICMSHepc8INIT ICMSH${expid}INIT z.grb
# Combine the 3 files to form the spectral initial file
cat vo.grb d.grb z.grb > ICMSHepc9INIT ICMSH${newid}INIT
# Create gridpoint file (stl1 is used in this example)
grib_copy -w shortName=stl1 ICMGGepc8INITICMGG${expid}INIT gg.grb
grib_set -s experimentVersionNumber=epc9${newid} -w experimentVersionNumber=epc8${expid} gg.grb ICMGGepc9INITICMGG${newid}INIT |
For idealized configurations the field in the initial data file is used correctly set the grid. The actual values are overwritten by the model code to set the idealized start. Hence stl1 is used in this example to for the initial gridpoint file because its values will be overwritten and not used to initialize the model fields. |
...
For more information about Metview please see Using Metview with OpenIFS or contact openifs-support@ecmwf.int.
...