Indice dei contenuti
perl -MCPAN -e 'install Chocolate::Belgian'
$HOME/.cpan/build/<module>
perl Makefile.PL LIB=$HOME/<mylib> PREFIX=$HOME/<mylib>
make install
use lib '$HOME/<mylib>'
export OBJECT_MODE=32N.B. if you are going to compile BOLCHEM, remove the "export OBJECT_MODE=32" from .kshrc otherwise the compilation will not succeed!
In general the operational chain is made of the following sequential steps:
ecjput hpce job.cmd -ni 180submits the job.cmd on hpce; the job remains in stand-by until the condition 180 (avaliability of 12utc day 3 deterministic forecast) is verified. The command ecels gives a list of the events (code, name, and description) that can be used in the -ni option in conditioning the execution of a job. See for reference http://www.ecmwf.int/services/computing/docs/tc_apps/tc_opt1.html.
XLFRTEOPTS=ufmt_littleendian=unit list(N.B. The variable is to be set Runtime, before launching the executable; not in compilation!!!) http://www.fz-juelich.de/conference/datapool/parco07/mpitut-jordan-parco07.pdf
Some info (Installation, description and examples in C and FORTRAN) regarding the use of GRIB API library: here.
Here are a summary of the steps to follow reading a grib (1 or 2) file (refer for example to this code:
call grib_check(grib_open_file(infile,'template_file.grib2','r'))
call grib_check(grib_open_file(outfile,output_filename,'w'))
call grib_check( grib_new_from_file(infile,igrib)
call grib_check(grib_set_int(id_grib,'year',year))
call grib_check(grib_set_real8_array(id_grib,'values',array_of_values,array_dimension))
call grib_check(grib_write(id_grib,outfile))
call grib_check(grib_close_file(infile))
call grib_check(grib_release(id_grib))
call grib_check(grib_close_file(outfile))
GRIB tools are available at the ECMWF machines. A useful tool is grib_dump, that allows to get the message from a file. An example output from "grib_dump -a" (writes also the aliases of the keys) can be found here.