A trial Raspberry Pi based satpy installation. Based on v30 of the extended toolset of Ernst Lobsiger.
- Based on Ubuntu 64-bits, version 22.04.1.
- Installation of the basic satpy-stuff is done using pip3, not Conda. (Saves an extra installation.)
- Currently only MSGx.py script is added, which can handle MSG files in native format,
which you can download from internet (Eumetsat Data Store), also included in this description.
But the satpy installation is not limited, so other scripts, als for other satelliets, should work as well.
- Pi4, 8 Gbyte
- SD card (32 Gbyte or more)
Add OS-image to SD card
- Download Ubuntu 64-bits
- Load image into SD-card:
- Windows: I have to find out. At least don't do a copy, that doesn't work!
- Linux: e.g.:
- Extract: xz -d ubuntu-22.04.1-preinstalled-desktop-arm64+raspi.img.xz
- Load this image on your SD card using e.g. dd (dangerous if you don't know what you are doing!)
- Put SD card in your Pi, start and do the usual configurations.
Open a command shell (right-mouse button, select 'Open in Terminal') and type 'cd'. Now type following commands:
- sudo apt install python3-pip
- pip3 install satpy
- pip3 install pycoast
- pip3 install python-geotiepoints
- pip3 install pyhdf
- NOTE: I have problems with installing pyhdf:
pyhdf/hdfext_wrap.c:3681:10: fatal error: hdf.h: No such file or directory
3681 | #include "hdf.h"
which means that hdf-based satdata cannot be processed on a pi...??? E.g. MTG.
- pip3 install spacetrack
This is a 'hidden' file in your home directory. Add following line, at the end:
(Asuming that your home directory is /home/pi)
Use e.g. nano to edit:
Add extra satpy tools and data (the 'Ernst'-part)
Download following zip-files in your home directory:
Unzip and move some tools to their right place:
Now logout and login again (this is to add dir. 'bin', which was just created, into your search path.)
- unzip satpypi.zip
- unzip satpypi_gshhg.zip
- sudo mv usr/local/bin/magick /usr/local/bin/magick
- sudo mv usr/local/lib/libMagickCore-7.Q16HDRI.so.10 /usr/local/lib/libMagickCore-7.Q16HDRI.so.10
- sudo mv usr/local/lib/libMagickWand-7.Q16HDRI.so.10 /usr/local/lib/libMagickWand-7.Q16HDRI.so.10
This completes the satpy installation. If you copy the right data files to your Pi you can do the same processing as what is possible on a PC.
This Python-based tool can be used to download native files from Eumetsat which can be processed by Satpy.
See EDS: Eumetsat Data Store
Download following zip-file in your home directory and unzip:
Test using native files downloaded from Eumetsat Data Store
If you have no data yet: Download example:
MSG4_native_example.zip (172 Mbyte)
Unzip in home-directory:
This will put the example in data/native/zipped.
- unzip MSG4_native_example.zip
Now run satpy:
Result is in your home directory:
- do_msg -sat 4 -t 202209181557
-sat 4 means: MSG4
-t 202209181557: the time which is also in the filename: YYYYmmddHHMM
Unfortunately it seems that Pi, including the biggest one (Pi-4, 8 Gbyte)
is not powerfull enough to process Metop files downloaded from internet (> 400MByte!)