Satellite product generation using satpy.
In the following usage examples, it is assumed that input data has been
downloaded in the inputs/ directory.
You can use satmaps composites -i inputs to list all composites that can be
generated from the input data.
You can use satmaps areas to list all available areas.
You can use satmaps render -i inputs -o outputdir to render all available
composites to products in the given output directory.
You can use --flavour to specify a flavour file to control the processing.
You can also append composite names to render only the given composites.
Composites already present in the output directory will not be generated again, so it's possible to build the output product set incrementally.
Note that, when running from the git checkout, you need to use python3 -m satmaps instead of satmaps.
Processing can be configured via the recipes/ directory. It contains:
satpy/: satpy configuration, such as area definitions and definitions of custom compositesflavours/: named YAML files containing configuration of the generation run, such as area selection, or a selection of what composites should be generated
Satpy data is stored across runs in the data/ directory.
New composites can be configured in config/composites/ and
config/enhancements/: see README.md files in those directories.
You can configure coastlines in the flavour using the overlay section, for
example:
# See the documentation for add_overlay at
# https://satpy.readthedocs.io/en/stable/api/satpy.enhancements.overlays.html#satpy.enhancements.overlays.add_overlay
overlay:
# Directory with GSHHS coastline shapefiles
coast_dir: coast/
# Color, as R, G, B, values from 0 to 255
color: [200, 200, 200]
# Line width for coastlines (floating point)
# width: 1.0
Where:
coast_dirpoints to a directory that contains unpacked GSHHS coastline shapefiles. You can download them from various places, like SOEST or unpacked in a git repocoloris a list of three RGB values from 0 to 255width(optional) is the width used for drawing the coastlines
You can use the DASK_NUM_WORKERS environment variable to define the number of
worker threads for processing.
For more information, see: https://satpy.readthedocs.io/en/stable/faq.html#why-is-satpy-slow-on-my-powerful-machine
The minimal target distribution is Rocky Linux 10.
Relevant dependencies are:
- Python 3.12