This short tutorial explains how to transfer files from ECMWF to Reading University for the workshop.
Before you begin
Info |
---|
You must have been given a training account username, beginning with the letters 'troifs' and the security password in order to log into ECMWF computers. |
Possible problem
If you see this error message when attempting to connect to cca:
Code Block |
---|
% sftp troifs0@ecaccess.ecmwf.int Unable to negotiate with 193.61.196.110 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 Couldn't read packet: Connection reset by peer |
Make sure you have the following in your $HOME/.ssh/config file (create it if needed):
Code Block |
---|
Host ecaccess.ecmwf.int KexAlgorithms=diffie-hellman-group1-sha1 HostKeyAlgorithms=ssh-dss |
Transfer files from ECMWF CCA to classroom PC
OpenIFS runs on the ECMWF Cray computer, called 'cca'. This example shows how to transfer a file or several files from the training account "scratch" directory.
Before you start make sure you are in the correct local directory on the classroom PC at Reading University!
Create the ftp connection using sftp and then navigate to the correct directory:
Code Block | ||||
---|---|---|---|---|
| ||||
sftp troifs1@ecaccess.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@ecaccess.ecmwf.int/ Please note you must use your UID and ActivID code to login! *************************************************************** troifs1@140.105.20.128's password: Connected to ecaccess.ecmwf.int. sftp> ls CSOMARS ECFS ECHOME ECHOST ECJOBS ECMARS ECSCRATCH ECTMP TMP sftp> cd ECHOST sftp> ls cca ecgate sftp> cd cca sftp> cd scratch/ectrain/troifs1/myexpt/output sftp> get mslp.grib sftp> bye |
Code Block | ||||
---|---|---|---|---|
| ||||
sftp> mget mslp_*.grib |
Retrieve files from PERM directory
To retrieve files from the $PERM directory on the training account is very similar to the above sequence.
Instead of:
Code Block |
---|
sftp> cd ECHOST/cca/scratch/ectrain/troifs1 |
use the following pathname:
Code Block |
---|
sftp> cd ECHOST/cca/perm/ectrain/troifs1 |