The first 3 practicals are done on ECS, so it is required to login to ics-login first:
%ssh ecs-login
Users with full HPC access can do the practicals from hpc-login node as well.
Exercise 4) is done from your local computer or laptop with (s)ftp.
1)
Create new directory in ectmp and archive file: /home/trx/grib_practicals.tar to the directory:
%emkdir ectmp:training_2025 # create a new directory in ectmp
%ecd ectmp:training_2025 # change ECFS directory to your new ECFS directory
%epwd ectmp: # see what is your current directory in ectmp
%ecp /home/trx/grib_practicals.tar ectmp: # copy the file to your current ectmp directory
%els -l ectmp: # list your current ectmp directory (the grib_practicals.tar file should appear in the list now)
%ecd ectmp: # go back to your ectmp home
%els -l ectmp: # you should see your training_2025 directory now
%els -l ectmp:training_2025/ # list the directory to see grib_practicals.tar file inside
2)
In GRIB practical session you have already unpacked grib_practicals.tar in your $SCRATCH or another folder on ECS. If you have not, you can do it now with:
Now retrieve the grib_practicals.tar file you previously archived from ECFS (ectmp) and overwrite file on your $SCRATCH if the target file is older than source (file archived in ECFS) (tip: see "man ecp" command).
Archive the entire folder to ECFS (ectmp) as one ECFS file.
%ecfsdir grib_practicals ectmp:
grib_practicals
grib_practicals directory saved
%els -l ectmp:
-rw-r----- 1 user group 37014528 Nov 2 16:15 grib_practicals
Note, in ECFS your Unix directory structure is saved as a file.
4)
Restore your grib_practicals directory from ECFS
%mkdir $SCRATCH/temp_dir_for_ECFS_practicals # create temporarily directory
%cd $SCRATCH/temp_dir_for_ECFS_practicals
%ecfsdir ectmp:grib_practicals ./grib_practicals_copy # download the directory previously saved in ECFS to your local directory with name grib_practicals_copy/
%ls -l
total 4
drwxr-x--- 5 user group 4096 Nov 2 16:26 grib_practicals_copy
5)
Download one ECFS file directly from your local computer / laptop via ECaccess (requires (s)ftp on your local computer).
%sftp <ECMWF username>@boaccess.ecmwf.int
Authorized access only.
***************************************************************
For further information, read the ECaccess documentation at:
https://software.ecmwf.int/wiki/display/ECAC/ECaccess+Home
You can also use ECaccess to load & download files from your
EChome, ECscratch or ECfs directories using the ECaccess FTP
server:
ftp://uid@boaccess.ecmwf.int/
Please note you must use your passcode to login!
***************************************************************
(usbk@boaccess.ecmwf.int) usbk@88.152.186.157's password:
{Enter your first configured TOTP}
Connected to boaccess.ecmwf.int.
sftp> ls -l
drwxr-x--- 1 16924 1212 2048 Oct 31 11:06 ECFS
drwxr-x--- 1 16924 1212 2048 Oct 31 11:06 ECHOME
drwxr-x--- 1 16924 1212 2048 Oct 31 11:06 ECHOST
drwxr-x--- 1 16924 1212 2048 Oct 31 11:06 ECSCRATCH
drwxr-x--- 1 16924 1212 2048 Oct 31 11:06 ECTMP
drwxr-x--- 1 16924 1212 2048 Oct 31 11:06 TMP
sftp> cd ECTMP
sftp> cd training_2025
sftp> ls -l
-rw-r----- 1 16924 1212 37027840 Nov 01 19:56 grib_practicals.tar
sftp> get grib_practicals.tar
Fetching /ECTMP/training_2025/grib_practicals.tar to grib_practicals.tar
grib_practicals.tar 100% 35MB 3.7MB/s 00:09
sftp> quit
The file should be in your local folder on your computer.
6)
List files in ec:/usbk/training_2025/ and retrieve them to your $SCRATCH folder using "order by tape" option.
%ecd ec:/usbk/training_2025
#This command shows tape number together with their position on tape
%els -l --order=tape ec:*
training_2025/tigge_20210604 volser:F00133 fileno:1156 offset:0
training_2025/tigge_20210601 volser:F00275 fileno:3086 offset:0
training_2025/tigge_20210602 volser:F00275 fileno:3087 offset:0
training_2025/tigge_20210603 volser:F00275 fileno:3088 offset:0
training_2025/tigge_20210607 volser:F00275 fileno:3094 offset:0
training_2025/tigge_20210608 volser:F00275 fileno:3095 offset:0
training_2025/tigge_20210606 volser:F00404 fileno:4224 offset:0
%cat>sourcelist<<eof
%ec:tigge_*
%eof
%ecp --order=tape -F ./sourcelist $SCRATCH