Skip to main content

Actinia Core is an open source REST API for scalable, distributed, high performance processing of geographical data that uses mainly GRASS GIS for computational tasks

Project description

Actinia — The GRASS GIS REST API

Software DOI Article DOI License: GPL v3 Docker pulls

Project Overview

Actinia is an open-source REST API for scalable, distributed, high-performance processing of geographical data that mainly uses GRASS GIS for computational tasks.

Key Features:

  • REST API for processing satellite images, raster and vector data, including time-series.
  • Access and manipulate GRASS GIS database via HTTP GET, PUT, POST, and DELETE requests.
  • Process cloud-based data, including Landsat 4-9 and Sentinel-2 scenes.
  • Output raster data results as GeoTIFF files as resources or in object storage.
  • Output vector data results as GeoPackage files as resources or in object storage.

Links:

Prerequisites

To use actinia, ensure you have the following installed:

  • Alpine Linux: apk add python3 py3-pip
  • Ubuntu: apt install -y python3 python3-pip

Additional system packages required for Alpine:

apk add python3-dev gcc musl-dev linux-headers build-base gdal gdal-tools gdal-dev proj proj-util proj-dev geos-dev py3-numpy-dev

Installation Steps

Option 1: Manual Installation

Install actinia from PyPI:

pip install actinia-core

Option 2: Using Docker

Pull the Docker image:

docker pull mundialis/actinia-core

For custom deployments or local setups, refer to the docker/ subfolder.

Verification

To verify a successful installation, check API accessibility via the provided endpoints or the swagger.json.

API Documentation

The full API documentation is available under actinia API documentation.

Examples

Data management

  • List all projects that are available in the actinia persistent database:
curl -u 'demouser:gu3st!pa55w0rd' -X GET "https://actinia.mundialis.de/api/v3/projects"
  • List all mapsets in the project latlong_wgs84:
curl -u 'demouser:gu3st!pa55w0rd' -X GET "https://actinia.mundialis.de/api/v3/projects/latlong_wgs84/mapsets"
  • List all space-time raster datasets (STRDS) in project latlong_wgs84 and mapset Sentinel_timeseries:
curl -u 'demouser:gu3st!pa55w0rd' -X GET "https://actinia.mundialis.de/api/v3/projects/latlong_wgs84/mapsets/modis_ndvi_global/strds"
  • List all raster map layers of the STRDS:
curl -u 'demouser:gu3st!pa55w0rd' -X GET "https://actinia.mundialis.de/api/v3/projects/latlong_wgs84/mapsets/modis_ndvi_global/strds/ndvi_16_5600m/raster_layers"

Landsat and Sentinel-2 NDVI computation

  • Compute NDVI for a specific Landsat scene:
curl -u 'demouser:gu3st!pa55w0rd' -X POST "https://actinia.mundialis.de/api/v3/landsat_process/<scene_id>/TOAR/NDVI"
  • Compute NDVI for a specific Sentinel-2A scene:
curl -u 'demouser:gu3st!pa55w0rd' -X POST "https://actinia.mundialis.de/api/v3/sentinel2_process/ndvi/<scene_id>"

The results of the asynchronous computations are available as GeoTIFF file in a cloud storage for download.

List of available endpoints

To see a simple list of endpoints (and more), consult the "paths" section in the API JSON.

To list the available endpoints on command line, run

# sudo npm install -g json
curl -u 'demouser:gu3st!pa55w0rd' -X GET https://actinia.mundialis.de/api/v3/swagger.json | json paths | json -ka

Development

Pre-Commit Hooks

Install pre-commit for automated code checks and formatting before submitting any new or modified code. Pre-commit installs all necessary tools in a virtual environment upon first use:

pip install pre-commit

# activate pre-commit in the code repository
cd <actinia-core_source_dir>
pre-commit install

Pre-commit will then be automatically triggered by the git commit command. If it finds any problem it will abort the commit and try to solve it automatically. In that case review the changes and run again git add and git commit.

It is also possible to run pre-commit manually, e.g:

pre-commit run flake8 --all-files
pre-commit run black --all-files
# pre-commit run yamllint --all-files
# pre-commit run markdownlint --all-files

The pre-commit hook set is defined in .pre-commit-config.yaml.

External Documents

Contributors

Thanks to all contributors ❤ actinia-core contributors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

actinia_core-7.1.1.tar.gz (207.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

actinia_core-7.1.1-py3-none-any.whl (236.9 kB view details)

Uploaded Python 3

File details

Details for the file actinia_core-7.1.1.tar.gz.

File metadata

  • Download URL: actinia_core-7.1.1.tar.gz
  • Upload date:
  • Size: 207.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for actinia_core-7.1.1.tar.gz
Algorithm Hash digest
SHA256 97af1e281df5cf8faa8a070dc8605b302a72c4efa1e42d3f9aaf100290b19f00
MD5 1665a6aaf3738543a94639b1a5634e0f
BLAKE2b-256 b61928cc9d8453ecf841adee60fe098cf56731b9936e5210b112c62fc9547704

See more details on using hashes here.

File details

Details for the file actinia_core-7.1.1-py3-none-any.whl.

File metadata

  • Download URL: actinia_core-7.1.1-py3-none-any.whl
  • Upload date:
  • Size: 236.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for actinia_core-7.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c4c4d7f2d3a439d23de017ed551ac810295d0501b39bc20a7a5277dd5449c70
MD5 e6ed5b9ad4b42dd5569749a573f43f50
BLAKE2b-256 ed10a0937ffe51eebca47df49896927ed1761623ecd244ef7f60af3b38703818

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page