Reference documentation
Atos HPCF and ECS computing platforms offer a wide range of software, libraries and tools. Let's go through some exercises to learn how to manage your software stack.
Basic software environment management
You want to use CDO, a popular tool to manipulate climate and NWP model data. What do you need to do to get the following result?
$ cdo --version Climate Data Operators version X.Y.Z (https://mpimet.mpg.de/cdo) System: x86_64-pc-linux-gnu ...
How many versions of CDO can be used at ECMWF? Can you pick the newest?
Load the
netcdf4
module. Can you see what modules do you have loaded in your environment now?Remove the
netcdf4
module from your environment and check it is gone.Can you check what is the installation directory of the default netCDF4 library?
Can you restore the default environment you had when you logged in? Check that the environment is back to the desired state.
You want the git module to be loaded by default on every session and job on the Atos HPCF or ECS. How would you do that? Check that it works by opening a new session
ECMWF tools
Reference documentation
Can you run codes_info tool, which is part of ecCodes?
Can you see what versions of ECMWF software are part of that module?
Can you run the
ecflow_client
command and get the version?
Python and Conda
Reference documentation
To ensure a default environment for the following exercises, reset your modules with:
module reset
Try to run the command below. Why does it fail? Can you make it work without installing pandas yourself?
$ python3 -c "import pandas as pd; print(pd.__version__)" Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'pandas'
Run the command below. It will try to check if you have a working setup for using Metview within Python:
python3 -m metview selfcheck
Did it work? What do you need to do to get the following output?
$ python3 -m metview selfcheck Trying to connect to a Metview installation... Hello world - printed from Metview! Metview version X.Y.Z found Your system is ready.
What do you need to do to make Python use the latest version of Metview available on the system?
You need to use the latest version of pandas to run a given application. What can you do (without using conda)?
You may also use conda to create your own software stack with python packages and beyond. In order to use conda, you can load the corresponding module:
module load conda
What happened?
Create your new conda environment with latest pandas in it. Check the version Hint: you can also use mamba to speed up the environment creation process
Using Containerised applications
Reference documentation
To ensure a default environment for the following exercise, reset your modules with:
module reset
The default psql command, part of the PostgreSQL package is not up to date. You need to run the latest version, but you do not want to build it from source. A possible solution is to use a containerised version of this application. Can you run this on Atos HPCF or ECS?