Pytroll/SatPy
Summary
Installation of the v4.1 SPS toolset of Ernst Lobsiger.
For the old v3 versions see here.
Don't mix v3 and v4 scripts!
Some alternative scripts are described here.
Installation original SPS toolset
Install Conda Linux
Note: This is a quick overview. For full description on how/why see v3.0: EMCtools.documents/Satpy_for_EUMETCast_HOWTO_V30.txt.
For the relevant part see
here.
Goto: miniconda and download:
Latest Miniconda3 Linux 64-bit
Check download with SHA256-hash:
sha256sum Miniconda3-latest-Linux-x86_64.sh
Now run the instatller to do the actual installation:
sh Miniconda3-latest-Linux-x86_64.sh
- Accept the license (you have no choice)
- Install Miniconda3 in your home directory (default)
- Make the installer initialize Miniconda3 (type "yes")
Add to .bashrc:
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('~/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "~/miniconda3/etc/profile.d/conda.sh" ]; then
. "~/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/eumetcast/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
Now do:
conda update -n base -c defaults conda
conda config --add channels conda-forge
conda create --name pytroll
Install Conda Windows
Note: This is a quick overview. For full description on how/why see v3.0: EMCtools.documents/Satpy_for_EUMETCast_HOWTO_V30.txt.
For the relevant part see
here.
Goto: miniconda and download/run the installer:
Latest Miniconda3 Windows 64-bit
- Accept the license (you have no choice)
- Install Miniconda3 in your home directory (default)
- Make the installer initialize Miniconda3 (type "yes")
In the Windows menu, you should now have an Anaconda Powershell Prompt entry.
Start it, and you get a Powershell Prompt window. In this shell do:
- conda update -n base -c defaults conda
- conda config --add channels conda-forge
- conda create --name pytroll
Install satpy (both Linux and Windows)
conda activate pytroll
conda install satpy
conda install pycoast (MUST be version 1.6.1. or later)
conda install pyhdf
conda install hdf5plugin
Installation is now done. To deactivate (go to normal prompt):
conda deactivate
For all actions always go to the Pytroll prompt using command:
conda activate pytroll
Installation of the SPS-environment
Download SPS: SPSdata-bare.xxx and SPStools-bare.xxx
Move SPStools-bare.xxx and SPSdata-bare.xxx to the desired location:
- Location of SPSdata-bare.xxx on a disk with enough space to hold all your images and movies
- Location of SPStools-bare.xxx may be on another location
These locations have to be defined lateron in the Python scripts!
Untar/unzip:
- Linux:
- tar -zxf SPSdata-bare.tgz
- tar -zxf SPStools-bare.tgz
- Windows:
If you have command 'zip':
- unzip SPSdata-bare.zip
- unzip SPStools-bare.zip
Otherwise use Windows browser. Make sure that the subdirectories are SPStools and SPSdata, so without the '-bare' extension.
Last preparations: GEO
Go to SPStools/GEOscripts.
- Edit GEOstuff.py:
- Adapt locations toodir and datdir
- Edit/adapt the scripts MSG*.py, GOES*.py etc. to your needs for area, composite.
At least make sure to adapt in each script the locations where your Eumetcast-data sits:
- segdir: location
- isbulk: if True, data of all dates are in one location, see segdir
if False, data is expected in location <segdir>/YY/MM/DD
- decomp: normally False (all files as received by Eumetcast, not decompressed)
Do the same for LEOstuff.py in SPStools/LEOscripts
Usage
All satpy runs should be done in the pytroll environment:
- Linux: in cmd-shell, do 'conda activate pytroll'
- Windows: use Anaconda Powershell
See docs in:
SPStools/documents