Installation Satpy

Note This is just an overview of commands needed to install pytroll/satpy. For original installation manual, containing also other ways for installation, see (after downloading):
EMCtools/documents/SatPy_for_EUMETCast_HOWTO_V30.txt
For download see: links to MSG mailing list

Installation

Miniconda3

Download miniconda:
For Linux:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

sha256sum Miniconda3-latest-Linux-x86_64.sh
  ==> check with https://docs.conda.io/en/latest/miniconda.html

sh Miniconda3-latest-Linux-x86_64.sh

  Do you accept the license terms? [yes|no]
  [no] >>> yes

  Miniconda3 will now be installed into this location:
  /home/ralblas/miniconda3
  ...
  [/home/ralblas/miniconda3] >>> 
  
  ...
  Do you wish the installer to initialize Miniconda3
  by running conda init? [yes|no]
  [no] >>> yes
  ...
  Thank you for installing Miniconda3!

conda update -n base -c defaults conda
y
conda config --add channels conda-forge
conda create --name pytroll
y
For Windows: Follow instructions in SatPy_\ HOWTO_v30.txt

Continue installation of Pytroll/Satpy (same for Linux and Windows)

conda activate pytroll

conda install satpy
y
conda install pycoast
y
conda install pyhdf
y

Extract and add tools etc.

 
(cd to Pytroll_Satpy_EMC_4_GNU_Linux_Starter_Kit_V30)
tar -xf EMCtools.tar
tar -xf EMCdata.tar
Get:
http://www.soest.hawaii.edu/pwessel/gshhg/gshhg-shp-2.3.7.zip
Put into: EMCdata/gshhg-shp
unzip gshhg-shp-2.3.7.zip

Install ImageMagick: Install from Linux Source:
from https://imagemagick.org/script/install-source.php:

This gives a program called 'convert' (or 'magick')

Env. variables

Linux: Add to .bashrc:
# This is the *full* path to your xRIT decompression binary
export XRIT_DECOMPRESS_PATH="/home/<user>/tools/satpy/EMCtools/exefiles/xRITDecompress"
# In this directory you manage some configuration files locally
#First is not valid anymore
#export PPP_CONFIG_DIR="/home/<user>/tools/satpy/EMCtools/pppconfig"
#Use this one
export SATPY_CONFIG_PATH="/home//tools/satpy/EMCtools/pppconfig"
Windows: Add to user environment (left-bottom, search for 'ENV')

Prepare Running (using original scripts)

Copy EMCtools/GEOscripts/MSG4.py to EMCtools/USRscripts and adapt: !Between line:
  • # ********** ADAPT THESE PARAMETERS.... and
  • # ******** TOUCH THE CODE BELOW ONLY....

    Problems seen (solved in my scripts)

    If compiling ImageMagick from source the resulting program 'convert' doesn't support jpeg; some header files are missing. However, downloading imagemagick and using that instead of convert works file with jpeg. Some warnings (seems to be not important)
    /home/ralblas/.local/lib/python3.8/site-packages/pyproj/crs/crs.py:1256: UserWarning: You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
      return self._crs.to_proj4(version=version)
    /home/ralblas/.local/lib/python3.8/site-packages/pyproj/crs/crs.py:1256: UserWarning: You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
      return self._crs.to_proj4(version=version)
    /home/ralblas/.local/lib/python3.8/site-packages/pyproj/crs/crs.py:1256: UserWarning: You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
      return self._crs.to_proj4(version=version)
    /home/ralblas/.local/lib/python3.8/site-packages/dask/core.py:119: RuntimeWarning: invalid value encountered in cos
      return func(*(_execute_task(a, cache) for a in args))
    /home/ralblas/.local/lib/python3.8/site-packages/dask/core.py:119: RuntimeWarning: invalid value encountered in sin
      return func(*(_execute_task(a, cache) for a in args))