Job scripts
Here you find some simple serial batch job examples which are designed to be submitted to and run in the ef queue of the ECS virtual complex, but can be easily adapted to run on any other complex on the other complexes just changing the QoS to nf. Use them as templates to learn from, or as starting points to construct your own jobs.
Do not forget to modify the scripts with your own workdir, UID and GID as necessary!
HPC2020: ecfs1.sh
This example shell script demonstrates the use of various ECFS commands to
- list the contents of and ECFS directory and
- copy files to and from ECFS.
HPC2020: ecfs2.sh
This example shell scripts shows how to
- use the ecfsdir command to save and retrieve a complete Unix directory as one ECFS file and
- print the ecfs_audit file using ecat:
HPC2020: first_job.sh
This example shell script
- shows the current directory and its contents
- shows the path where the shell looks for commands and
HPC2020: magicsjob.sh
This example shell script retrieves a GRIB input file from ECFS and then:
compiles and links a Fortran program with the Magics++ library and
HPC2020: mars_ectrans.sh
This example shell script:
- executes an advanced MARS request (to calculate total precipitation)
- sends the data to a remote site using ectrans
HPC2020: realtime_metgram.sh
This example shell script is designed to run as a time-critical job under ECaccess control using the base date and time of the latest forecast from ECaccess. The script:
- creates 10-day ENS meteogram by running a Metview macro (users can also choose to create 10-day Wave ENSgrams or 15-day ENSgrams)
- sends plot to a remote site using ectrans
HPC2020: retrieve_decode_bufr.sh
This example shell script demonstrates how to use a Fortran program calling the BUFRDC library to decode a BUFR message. The script:
- retrieves observations in BUFR format from MARS
- compiles and links a Fortran decoding program with gfortran
HPC2020: retrieve_decode_eccodes_grib.sh
This shell script uses a Fortran program calling ecCodes routines to decode GRIB data.
- fields are retrieved from MARS in GRIB format
- the GRIB decoding Fortran program is compiled and linked against the ecCodes library using gfortran
HPC2020: retrieve_decode_grib_api.sh
This shell script uses a Fortran program calling ecCodes routines to decode GRIB data.
- fields are retrieved from MARS in GRIB format
- the GRIB decoding Fortran program is compiled and linked against the ecCodes library using gfortran
Further information
To submit these examples, please check: