The training will be conducted using X2Go-servers available in the TCE. Instructions on how to install X2Go on your laptop can be found in DM Tool document
Type the following commands to the terminal.
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
bash ~/miniconda.sh -b -p $HOME/miniconda3
echo 'export PATH="$PATH:$HOME/miniconda3/bin"' >> ~/.profile.local
condaenvironment for the training¶
The name of the environment can be chosen freely, for the sake of simplicity we will use name
troll for this training.
conda create -n troll python=3.6
troll environment with a command
source activate troll
You should have an indication in your terminal prompt that the conda environment is active, e.g.:
(troll) [email protected]:~ $. When the
conda environment is active, all the installations after this point will go only to this specific environment. The environment can be deactivated with
Install the required libraries and modules with this monster one-liner:
conda install -c conda-forge gdal satpy jupyter ffmpeg "imageio<2.5" imageio-ffmpeg shapely cartopy scipy rasterio mysql-connector-python matplotlib cartopy scipy pycoast pyorbital
PyTroll packages are constantly being developed. In order to carry out some the exercises, we need to get an updated version of one of the readers.
pip install git+https://github.com/pytroll/satpy.git
cp /tcenas/scratch/pytroll/seviri_l1b_native.py ~/miniconda3/envs/troll/lib/python3.6/site-packages/satpy/readers/
cp /tcenas/scratch/pytroll/exercises/* ~/pytroll_training
In order to get the best performance for the exercises, we'll start
jupyter notebook with a headless server, i.e., we run the notebook on the X2Go-server, but connect to it from your own laptops.
Find out the IP-address of your server, and start
jupyter notebook with
jupyter notebook --ip=<ip_address> --no-browser
Copy and paste the given URL to your laptops Google Chrome browser
import satpy print (satpy.__file__)