Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
ssh ccbcca
troifs@ccbtroifs@cca-login2:~> 

The contents of the account should look like:

Code Block
languagebash
troifs1@ccbtroifs1@cca-login2:~> ls
bin  make  python  t21test  scratch

...

Code Block
titleTo copy multiple dates. Example 2: copy all dates
cd inidir/ob50
cp -rL /perm/rd/openifs/oifs_workshop_2017/expts-inidata/ob00/201511* .   # this will be slow!

Change

...

experiment id

OpenIFS forecasts are identified by an 'experiment id', a four letter string. An experiment could consist of a single forecast date or multiple starting dates. It can be of any length and could also include a restarted forecast. However, an experiment only has one horizontal and vertical resolution.

The experiment id is contained the names of the initial files, and it is encoded into the GRIB messages within those files.

Listing experiment id

The command 'exptid' can be used to check and change the experiment id in the GRIB files.

Code Block
titleConfirm experiment id contained in GRIB files..
troifs0@ccbtroifs0@cca-login3:> cd inidir/ob50/2015110100
troifs0@cca-login3:> exptid ICMSHob00INIT
In file ICMSHob00INIT, values of key experimentVersionNumber = are:
ob00

The 'experimentVersionNumber' is the GRIB parameter encoded in the GRIB fields.

This can also be seen using the 'grib_ls' command to list the contents of the file:

Code Block
troifs0@ccbtroifs0@cca-login3:> grib_ls -p shortName,typeOfLevel,dataDate,experimentVersionNumber ICMSHob00INIT
ICMSHob00INIT
shortName                typeOfLevel              dataDate                 experimentVersionNumber  
t                        hybrid                   20151101                 ob00                    
t                        hybrid                   20151101                 ob00                    
t                        hybrid                   20151101                 ob00  
.......    

The 'exptid' and 'grib_ls' commands can also be used for multiple files:

Code Block
troifs0@cca-login3:> exptid ICM*
In file ICMCLob00INIT, values of key experimentVersionNumber are:
0001
In file ICMGGob00INIT, values of key experimentVersionNumber are:
0001
ob00
In file ICMGGob00INIUA, values of key experimentVersionNumber are:
ob00
In file ICMSHob00INIT, values of key experimentVersionNumber are:
ob00

Note that the ICMCL and ICMGG*INIT files both have a experimentVersionNumber key of '0001'. This is used for climatological fields.

Set new experiment id

Use the exptid command to set the new experiment id to 'ob50':

Code Block
troifs0@cca-login3:> exptid -n ob50 ICM*ob00*
Changing expid from 'ob00' to 'ob50' for ICMCLob00INIT and writing to new file ICMCLob50INIT.
Changing expid from 'ob00' to 'ob50' for ICMGGob00INIT and writing to new file ICMGGob50INIT.
Changing expid from 'ob00' to 'ob50' for ICMGGob00INIUA and writing to new file ICMGGob50INIUA.
Changing expid from 'ob00' to 'ob50' for ICMSHob00INIT and writing to new file ICMSHob50INIT.

Verify the command worked by checking the experimentVersionNumber in the new files:

Code Block
troifs0@cca-login3:> exptid *ob50*
In file ICMCLob50INIT, values of key experimentVersionNumber are:
0001
In file ICMGGob50INIT, values of key experimentVersionNumber are:
0001
ob50
In file ICMGGob50INIUA, values of key experimentVersionNumber are:
ob50
In file ICMSHob50INIT, values of key experimentVersionNumber are:
ob50

To save space, you can delete the ob00 files (these will always be available in the directory where they were copied from)

Code Block
troifs0@cca-login3:> rm ICM*ob00*
rm: remove regular file `ICMCLob00INIT'? y
rm: remove regular file `ICMGGob00INIT'? y
rm: remove regular file `ICMGGob00INIUA'? y
rm: remove regular file `ICMSHob00INIT'? y

 

Useful Unix commands

 

Code Block
titleRemove a directory and ALL it's contents.. (note this is recursive delete!)
rm -rf 2015110100
rm -rf 2015110[1-5]00

...