Skip to content
ARPA-SIMCPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Satmaps

Satellite product generation using satpy.

Usage

In the following usage examples, it is assumed that input data has been downloaded in the inputs/ directory.

List available composites

You can use satmaps composites -i inputs to list all composites that can be generated from the input data.

List available areas

You can use satmaps areas to list all available areas.

Rendering products

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.

Running directly from the git checkout

Note that, when running from the git checkout, you need to use python3 -m satmaps instead of satmaps.

Configuration

Processing can be configured via the recipes/ directory. It contains:

  • satpy/: satpy configuration, such as area definitions and definitions of custom composites
  • flavours/: 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.

Coastlines

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_dir points to a directory that contains unpacked GSHHS coastline shapefiles. You can download them from various places, like SOEST or unpacked in a git repo
  • color is a list of three RGB values from 0 to 255
  • width (optional) is the width used for drawing the coastlines

Performance

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

System compatibility

The minimal target distribution is Rocky Linux 10.

Relevant dependencies are:

  • Python 3.12

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages