### Install and Start Actinia Inside Container Source: https://github.com/actinia-org/actinia-core/blob/main/docker/README.md Installs the local source code and starts the actinia service within the running container. ```bash python3 setup.py install sh /src/start.sh ``` -------------------------------- ### Start valkey and create superuser, then start actinia Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/installation.md Installs and starts valkey, creates a superuser with actinia-user, and starts the actinia server on port 5000. ```bash cd /tmp # install and start kvdb server apt-get install -y valkey valkey-server & # Create the superuser actinia-user create -u superadmin -w abcdefgh -r superadmin -g admin -c 100000000000 -n 1000 -t 6000 # Start the actinia service with actinia-server --host 0.0.0.0 --port 5000 ``` -------------------------------- ### Install actinia-api in Python3 environment Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/installation.md Clones and installs actinia-api using python setup.py install. ```bash mkdir -p $HOME/actinia/workspace/tmp cd /tmp git clone https://github.com/actinia-org/actinia-api.git actinia-api cd actinia-api python setup.py install ``` -------------------------------- ### Install and Start KVDB Queue Worker Source: https://github.com/actinia-org/actinia-core/blob/main/docker/README.md Reinstalls actinia-core and starts the worker process for the kvdb queue. ```bash pip3 uninstall actinia_core cd /src/actinia_core && pip3 install . actinia-worker job_queue_0 -c /etc/default/actinia ``` -------------------------------- ### Docker: Clone and start actinia-core Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/installation.md Clones the actinia-core repository and starts the service using docker-compose. Requires docker and docker-compose. ```bash git clone https://github.com/mundialis/actinia-core.git cd actinia-core docker-compose -f docker/docker-compose.yml up ``` -------------------------------- ### Simple Log Output Examples Source: https://github.com/actinia-org/actinia-core/blob/main/logging.md Examples of JSON and plain text log outputs for standard application events. ```json { "time": "2020-05-06T09:07:33.431255Z", "level": "INFO", "component": "actinia-core", "module": "endpoints", "message": "Loading plugin actinia_statistic_plugin", "pathname": "/usr/lib/python3.8/site-packages/actinia_core-0.99.5.post0.dev18+g4d82691.dirty-py3.8.egg/actinia_core/endpoints.py", "lineno": 172, "processName": "MainProcess", "threadName": "MainThread", "node": "dc05d9be5c7d" } ``` ```text [2020-05-08 09:19:33,909] INFO : actinia-core.endpoints -Loading plugin actinia_statistic_plugin [in /usr/lib/python3.8/site-packages/actinia_core-0.99.5.post0.dev20+gacc075c-py3.8.egg/actinia_core/endpoints.py:172] ``` ```json { "time": "2020-05-06T09:07:34.874243Z", "level": "INFO", "component": "actinia-core", "module": "process_queue", "message": "Run process: {endpoint: asyncephemeralexportresource, method: POST, path: /api/v3/projects/latlong_wgs84/processing_async_export, request_url: http://127.0.0.1:8088/api/v3/projects/latlong_wgs84/processing_async_export}", "pathname": "/usr/lib/python3.8/site-packages/actinia_core-0.99.5.post0.dev18+g4d82691.dirty-py3.8.egg/actinia_core/resources/common/process_queue.py", "lineno": 355, "processName": "Process-1", "threadName": "MainThread" } ``` ```text [2020-05-08 09:19:48,430] INFO : actinia-core.process_queue -Run process: {'endpoint': 'asyncephemeralexportresource', 'method': 'POST', 'path': '/api/v3/projects/latlong_wgs84/processing_async_export', 'request_url': 'http://127.0.0.1:8088/api/v3/projects/latlong_wgs84/processing_async_export'} [in /usr/lib/python3.8/site-packages/actinia_core-0.99.5.post0.dev20+gacc075c-py3.8.egg/actinia_core/resources/common/process_queue.py:355] ``` -------------------------------- ### Install actinia-core via pip Source: https://github.com/actinia-org/actinia-core/wiki/Deployment Install the package from PyPI. This method requires a running Valkey server and a configuration file. ```bash pip install actinia-core ``` -------------------------------- ### Install actinia-core in Python3 environment Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/installation.md Clones and installs actinia-core using pip within a Python3 virtual environment. ```bash mkdir -p $HOME/actinia/workspace/tmp cd /tmp git clone https://github.com/actinia-org/actinia-core.git actinia_core cd actinia_core pip install . ``` -------------------------------- ### Build and start actinia services with Docker Compose Source: https://github.com/actinia-org/actinia-core/wiki/Deployment Run these commands from the docker directory of the actinia-core repository to build and start the services. ```bash docker-compose -f docker-compose.yml build docker-compose -f docker-compose.yml up ``` -------------------------------- ### Install and activate pre-commit hooks Source: https://github.com/actinia-org/actinia-core/blob/main/README.md Install pre-commit and activate it in the actinia-core source directory. Pre-commit will run automatically on git commit. ```bash pip install pre-commit # activate pre-commit in the code repository cd pre-commit install ``` -------------------------------- ### Configure KVDB Queue Source: https://github.com/actinia-org/actinia-core/blob/main/valkey_queue.md Example configuration blocks for the [QUEUE] section in the actinia configuration file. ```ini [QUEUE] kvdb_queue_server_url = valkey-queue kvdb_queue_server_password = pass worker_prefix = job_queue queue_type = per_job ``` ```ini [QUEUE] number_of_workers = 1 queue_type = kvdb ``` -------------------------------- ### Start Worker Process Source: https://github.com/actinia-org/actinia-core/blob/main/valkey_queue.md Command to start the worker process inside the container, listening to a specific queue. ```bash QUEUE_NAME=job_queue_0 actinia-worker $QUEUE_NAME -c /etc/default/actinia --quit ``` -------------------------------- ### Compile and install GRASS GIS and additional modules Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/installation.md Downloads the latest GRASS GIS snapshot, compiles it with production flags, and installs additional modules t.rast.sample and d.rast.multi. Includes configuration options and make commands. ```bash # or some other project of your choice, /tmp will not keep data between reboots cd /tmp # fetch weekly generated latest snapshot of GRASS GIS stable wget https://grass.osgeo.org/grass80/source/snapshot/grass-8.0.git_src_snapshot_latest.tar.gz tar xzvf grass-8.0.git_src_snapshot_latest.tar.gz mv grass-8.0.git_src_snapshot_????_??_?? grass rm -f grass-8.0.git_src_snapshot_latest.tar.gz cd grass # production related compilation flags (no debugging enabled) export CFLAGS="-O2 -std=gnu99 -fexceptions -fstack-protector -m64" export CXXFLAGS="-O2" export LDFLAGS="-Wl,--no-undefined -Wl,-z,now" ./configure \ --with-cxx \ --enable-largefile \ --with-proj-share=/usr/share/proj \ --with-gdal \ --with-geos \ --with-sqlite \ --with-cairo --with-cairo-ldflags=-lfontconfig \ --with-fftw \ --with-netcdf \ --with-bzlib \ --with-zstd \ --without-postgres \ --without-freetype \ --without-openmp \ --without-opengl \ --without-nls \ --without-mysql \ --without-odbc \ --without-openmp \ --prefix=/usr/local make -j8 sudo make install cd temporal/ git clone https://github.com/mundialis/t.rast.sample cd t.rast.sample make cd ../.. sudo make install # t.rast.udf # see https://github.com/mundialis/openeo-addons cd display/ git clone https://github.com/mundialis/d_rast_multi d.rast.multi cd d.rast.multi make cd ../.. sudo make install ``` -------------------------------- ### Gunicorn Log Output Examples Source: https://github.com/actinia-org/actinia-core/blob/main/logging.md Examples of JSON and plain text log outputs generated by Gunicorn. ```json { "time": "2020-05-06T09:07:34.837921Z", "level": "INFO", "component": "gunicorn.access", "module": "glogging", "message": "172.20.0.1 - actinia-gdi [06/May/2020:09:07:34 +0000] \"POST /api/v3/projects/latlong_wgs84/processing_async_export HTTP/1.1\" 200 756 \"-\" \"curl/7.58.0\"", "pathname": "/usr/lib/python3.8/site-packages/gunicorn/glogging.py", "lineno": 344, "processName": "MainProcess", "threadName": "ThreadPoolExecutor-0_0" } ``` ```text [2020-05-08 09:19:48,426] INFO : gunicorn.access.glogging -172.20.0.1 - actinia-gdi [08/May/2020:09:19:48 +0000] "POST /api/v3/projects/latlong_wgs84/processing_async_export HTTP/1.1" 200 755 "-" "curl/7.58.0" [in /usr/lib/python3.8/site-packages/gunicorn/glogging.py:344] ``` -------------------------------- ### Install PROJ and GRASS GIS dependencies Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/installation.md Installs the PROJ library and data packages required for GRASS GIS compilation. ```bash sudo apt-get update sudo apt-get install proj-bin proj-data ``` -------------------------------- ### Build and Run Development Container Source: https://github.com/actinia-org/actinia-core/blob/main/docker/README.md Builds the development Docker image and starts the container with service ports exposed. ```bash docker compose -f docker-compose-dev.yml build docker compose -f docker-compose-dev.yml run --rm --service-ports --entrypoint sh actinia ``` -------------------------------- ### Example Process Chain JSON Source: https://github.com/actinia-org/actinia-core/blob/main/job_resumption.md A sample process chain configuration for Actinia containing various modules like importer, v.info, and r.mapcalc. ```json { "list": [ { "id": "importer_1", "module": "importer", "inputs": [ { "import_descr": { "source": "https://raw.githubusercontent.com/mmacata/pagestest/gh-pages/pointInBonn.geojson", "type": "vector" }, "param": "map", "value": "point" } ] }, { "id": "v_info1", "module": "v.info", "inputs": [ { "param": "map", "value": "point" } ], "flags": "g", "stdout": {"id": "v_info_1", "format": "kv", "delimiter": "="} }, { "id": "r_info1", "module": "r.info", "inputs": [ { "param": "map", "value": "elevation@PERMANENT" } ], "flags": "g", "stdout": {"id": "r_info_1", "format": "kv", "delimiter": "="} }, { "id": "sleep_1", "exe": "sleep", "params": ["1"] }, { "id": "r_mapcalc", "module": "r.mapcalc", "inputs": [ { "param": "expression", "value": "baum=5" } ] }, { "id": "r_colors_out_sld", "module": "r.colors.out_sld", "inputs": [ { "param": "map", "value": "elevation@PERMANENT" } ], "outputs": [ { "param": "output", "value": "$file::r_info2", "export": {"type": "file", "format": "TXT"} } ] }, { "id": "importer_2", "module": "importer", "inputs": [ { "import_descr": { "source": "https://raw.githubusercontent.com/mmacata/pagestest/gh-pages/bonn.geojson", "type": "vector" }, "param": "map", "value": "polygon2" } ] }, { "id": "v_info3", "module": "v.info", "inputs": [ { "param": "map", "value": "polygon2" } ], "flags": "g", "stdout": {"id": "v_info_3", "format": "kv", "delimiter": "="} }, { "id": "exporter_1", "module": "exporter", "comment": "Export indices as COG", "outputs": [ { "export": { "type": "raster", "format": "COG" }, "param": "map", "value": "baum" }, { "export": { "type": "raster", "format": "COG" }, "param": "map", "value": "elevation@PERMANENT" } ] } ], "version": "1" } ``` -------------------------------- ### Setup environment variables for Actinia Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/introduction.md Configure the base URL and authentication credentials for the Actinia service in a bash shell. ```bash export ACTINIA_URL=https://actinia.mundialis.de/api/v3 export AUTH='-u demouser:gu3st!pa55w0rd' # other user credentials can be provided in the same way ``` -------------------------------- ### Endpoints Configuration CSV Format Source: https://github.com/actinia-org/actinia-core/blob/main/docker/README.md Example format for the endpoints configuration file. ```text Class_of_the_endpoint;method1,method2 Class_of_the_endpoint2;method1 ``` -------------------------------- ### List projects in the persistent database Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/introduction.md Retrieve a list of all available projects using a GET request. ```bash curl ${AUTH} -X GET "${ACTINIA_URL}/projects" ``` -------------------------------- ### Configure Logging in actinia.cfg Source: https://github.com/actinia-org/actinia-core/blob/main/logging.md Example configuration for the [LOGGING] section in actinia.cfg. The log_interface can be set to fluentd or stdout, and various formatters can be applied to stdout, files, and stderr. ```ini [LOGGING] log_interface = stdout log_stdout_format = colored log_file_format = colored log_stderr_format = plain log_level = 4 ``` -------------------------------- ### Run actinia-core test Docker container Source: https://github.com/actinia-org/actinia-core/blob/main/tests/README.md Starts the test container, optionally mounting the local tests folder. The -i flag is used for interactive mode. ```bash docker run -it -v /path/to/tests:/src/actinia_core/tests actinia-test:latest -i # If you are not developing the tests you can run tests using the following # command: docker run -it actinia-test:latest -i ``` -------------------------------- ### Per-job queue response example Source: https://github.com/actinia-org/actinia-core/wiki/actinia-config-options Example JSON response from actinia when a job is accepted with per_job queue type. The queue name is included in the response. ```json { "accept_datetime": "2023-09-02 16:47:12.733873", "accept_timestamp": 1693673232.733873, ... "queue": "job_queue_resource_id-0a151f6c-91c5-478c-84b8-57fb4ce5f052", "resource_id": "resource_id-0a151f6c-91c5-478c-84b8-57fb4ce5f052", "status": "accepted", "user_id": "demouser" } ``` -------------------------------- ### Actinia Parallel Job Configuration Source: https://github.com/actinia-org/actinia-core/wiki/actinia_parallel_plugin---Internal-logic A JSON configuration example demonstrating job definitions, including tiling, parallel execution flags, and module inputs. ```json { "processing_host": "http://actinia-core-docker:8088/", "processing_platform_name": "example_name", "jobs": [ { "list": [ { "module": "stac_importer", "inputs":[ {"param": "param1", "value": "value1"} ] } ], "parallel": "false", "version": "1" }, { "list": [ { "module": "actinia_tiling", "comment": "All jobs executed in parallel loop for each tile", "inputs":[ // With this approach, also area size would be possible // {"param": "size", "value": "10000"}, {"param": "num_tiles", "value": "10000"} ], "outputs":[ {"param": "raster", "value": "ndvi,ndwi"} ], "jobs": [ { "list": [ { "module": "g.region", "inputs":[ {"param": "x", "value": "{{ tile_id }}"} ] }, { "module": "r.mask", "inputs":[ {"param": "x", "value": "y"} ] } ], "parallel": "false" }, { "list": [ { "module": "r.mapcalc", "inputs":[ {"param": "x", "value": "ndvi"} ] } ], "parallel": "true" }, { "list": [ { "module": "r.mapcalc", "inputs":[ {"param": "x", "value": "ndwi"} ] } ], "parallel": "true" } ] } ], "parallel": "false", "version": "1" }, { "list": [ { "module": "actinia_tiling", "comment": "All jobs executed in parallel loop for each tile", "inputs":[ // With this approach, also area size would be possible // {"param": "size", "value": "10000"}, {"param": "num_tiles", "value": "10000"}, // TODO: parameter or flag? {"param": "reuse_tiles", "value": "true"} ], "outputs":[ {"param": "raster", "value": "agg1,agg2"} ], "jobs": [ { "list": [ { "module": "g.region", "inputs":[ {"param": "x", "value": "{{ tile_id }}"} ] }, { "module": "r.mask", "inputs":[ {"param": "x", "value": "y"} ] } ], "parallel": "false" }, { "list": [ { "module": "t.aggregate", "inputs":[ {"param": "x", "value": "red_nir,green_red"} ] } ], "parallel": "true" }, { "list": [ { "module": "t.aggregate", "inputs":[ {"param": "x", "value": "blue,blue_nir"} ] } ], "parallel": "true" } ] } ], "parallel": "false", "version": "1" } ] } ``` -------------------------------- ### Start Worker Container Source: https://github.com/actinia-org/actinia-core/blob/main/valkey_queue.md Command to launch the actinia worker container with necessary volume mounts and network configuration. ```bash MY_ACTINIA_DATA=$HOME/actinia ACTINIA_CFG=$HOME/repos/actinia/actinia-docker/actinia-dev/actinia.cfg docker run --rm -it --entrypoint sh \ -v $ACTINIA_CFG:/etc/default/actinia \ -v $MY_ACTINIA_DATA/workspace:/actinia_core/workspace \ -v $MY_ACTINIA_DATA/resources:/actinia_core/resources \ -v $MY_ACTINIA_DATA/grassdb:/actinia_core/grassdb \ -v $MY_ACTINIA_DATA/grassdb_user:/actinia_core/userdata \ --network actinia-docker_actinia-dev mundialis/actinia:2.5.6 ``` -------------------------------- ### Project info JSON response Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/tutorial_data_access.md Example JSON response from the /api/v3/projects/nc_spm_08/info endpoint, showing process logs and results. ```json { "accept_datetime": "2019-08-01 20:30:05.717499", "accept_timestamp": 1564691405.7174985, "api_info": { "endpoint": "projectmanagementresourceuser", "method": "GET", "path": "/api/v3/projects/nc_spm_08/info", "request_url": "http://actinia.mundialis.de/api/v3/projects/nc_spm_08/info" }, "datetime": "2019-08-01 20:30:05.881138", "http_code": 200, "message": "Processing successfully finished", "process_chain_list": [ { "1": { "flags": "ug3", "module": "g.region" }, "2": { "flags": "fw", "module": "g.proj" } } ], "process_log": [ { "executable": "g.region", "parameter": [ "-ug3" ], "return_code": 0, "run_time": 0.05028104782104492, "stderr": [ "" ], "stdout": "projection=99\nzone=0\nn=221230\ns=219580\nw=637740\ne=639530\nt=1\nb=0\nnsres=1650\nnsres3=10\newres=1790\newres3=10\ntbres=1\nrows=1\nrows3=165\ncols=1\ncols3=179\ndepths=1\ncells=1\ncells3=29535\n" }, { "executable": "g.proj", "parameter": [ "-fw" ], "return_code": 0, "run_time": 0.05027127265930176, "stderr": [ "" ], "stdout": "PROJCS[\"NAD83(HARN) / North Carolina\",GEOGCS[\"NAD83(HARN)\",DATUM[\"NAD83_High_Accuracy_Reference_Network\",SPHEROID[\"GRS 1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\"EPSG\",\"6152\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4152\"]],PROJECTION[\"Lambert_Conformal_Conic_2SP\"],PARAMETER[\"standard_parallel_1\",36.16666666666666],PARAMETER[\"standard_parallel_2\",34.33333333333334],PARAMETER[\"latitude_of_origin\",33.75],PARAMETER[\"central_meridian\",-79],PARAMETER[\"false_easting\",609601.22],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\",\"3358\"]]\n" } ], "process_results": { "projection": "PROJCS[\"NAD83(HARN) / North Carolina\",GEOGCS[\"NAD83(HARN)\",DATUM[\"NAD83_High_Accuracy_Reference_Network\",SPHEROID[\"GRS 1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\"EPSG\",\"6152\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4152\"]],PROJECTION[\"Lambert_Conformal_Conic_2SP\"],PARAMETER[\"standard_parallel_1\",36.16666666666666],PARAMETER[\"standard_parallel_2\",34.33333333333334],PARAMETER[\"latitude_of_origin\",33.75],PARAMETER[\"central_meridian\",-79],PARAMETER[\"false_easting\",609601.22],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\",\"3358\"]]\n", "region": { "b": 0.0, "cells": 1, "cells3": 29535, "cols": 1, "cols3": 179, "depths": 1, "e": 639530.0, "ewres": 1790.0, "ewres3": 10.0, "n": 221230.0, "nsres": 1650.0, "nsres3": 10.0, "projection": 99, "rows": 1, "rows3": 165, "s": 219580.0, "t": 1.0, "tbres": 1.0, "w": 637740.0, "zone": 0 } }, "progress": { "num_of_steps": 2, "step": 2 }, "resource_id": "resource_id-181a0936-9deb-481c-a1a6-6c9f46f97594", "status": "finished", "time_delta": 0.16365694999694824, "timestamp": 1564691405.8811285, "urls": { "resources": [], "status": "http://actinia.mundialis.de/api/v3/resources/demouser/resource_id-181a0936-9deb-481c-a1a6-6c9f46f97594" }, "user_id": "demouser" } ``` -------------------------------- ### Process Chain with Missing Folder Source: https://github.com/actinia-org/actinia-core/blob/main/job_resumption.md A process chain example that fails due to a missing folder, requiring manual intervention before resumption. ```json { "list": [ { "id": "r_mapcalc", "module": "r.mapcalc", "inputs": [ { "param": "expression", "value": "baum=5" } ] }, { "id": "ls1", "exe": "ls", "params": ["/test"] }, { "id": "r_info1", "module": "r.info", "inputs": [ { "param": "map", "value": "baum" } ], "flags": "g", "stdout": {"id": "r_info_1", "format": "kv", "delimiter": "="} } ], "version": "1" } ``` -------------------------------- ### Kvdb authorization setup without kvdb_interface (working) Source: https://github.com/actinia-org/actinia-core/blob/main/tests/README.md This Python snippet shows the working way to set Kvdb authorization by importing global_config directly. It reads the config and accesses KVDB_SERVER_PW. ```python import os from actinia_core.core.common.config import global_config custom_actinia_cfg = str(os.environ["DEFAULT_CONFIG_PATH"]) global_config.read(custom_actinia_cfg) global_config.KVDB_SERVER_PW ``` -------------------------------- ### Install system packages on Alpine Linux Source: https://github.com/actinia-org/actinia-core/blob/main/README.md Required system packages for Alpine Linux to build and run actinia-core. Includes development headers and GDAL/Proj libraries. ```bash 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 ``` -------------------------------- ### GET raster layer response JSON Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/tutorial_data_access.md Example JSON response from the actinia API for a GET request to the raster layer resource endpoint. It includes metadata such as the request URL, process chain using r.info, and process results with raster layer properties. ```json { "accept_datetime": "2026-07-14 13:14:42.341554", "accept_timestamp": 1784034882.3415532, "api_info": { "endpoint": "rasterlayerresource", "method": "GET", "path": "/api/v3/projects/nc_spm_08/mapsets/modis_lst/raster_layers/MOD11B3.A2016336.h11v05.single_LST_Day_6km", "request_url": "http://actinia.mundialis.de/api/v3/projects/nc_spm_08/mapsets/modis_lst/raster_layers/MOD11B3.A2016336.h11v05.single_LST_Day_6km" }, "datetime": "2026-07-14 13:14:42.525335", "http_code": 200, "message": "Processing successfully finished", "process_chain_list": [ { "1": { "flags": "gre", "inputs": { "map": "MOD11B3.A2016336.h11v05.single_LST_Day_6km@modis_lst" }, "module": "r.info" } } ], "process_log": [ { "executable": "r.info", "id": "1", "mapset_size": 481, "parameter": [ "map=MOD11B3.A2016336.h11v05.single_LST_Day_6km@modis_lst", "-gre" ], "return_code": 0, "run_time": 0.10122942924499512, "stderr": [ "" ], "stdout": "..." } ], "process_results": { "cells": "74970", "cols": "357", "comments": "\"r.in.gdal --overwrite --quiet input=\"/home/veroandreo/MOD11B3.A20163\\36.h11v05.single_LST_Day_6km.tif\" output=\"MOD11B3.A2016336.h11v05.si\\ngle_LST_Day_6km\" memory=300 offset=0 num_digits=0Imported with r.modis.import\"", "creator": "\"veroandreo\"", "database": "/actinia_core/workspace/temp_db/gisdbase_a1be8b7dcb6646b79bbb6d12b9b96cff", "datatype": "CELL", "date": "\"Tue May 23 11:12:16 2017\"", "description": "\"generated by r.in.gdal\"", "east": "1550934.46411531", "ewres": "5600", "location": "nc_spm_08", "map": "MOD11B3.A2016336.h11v05.single_LST_Day_6km", "mapset": "modis_lst", "maptype": "raster", "max": "14564", "min": "13429", "ncats": "0", "north": "760180.12411493", "nsres": "5600", "project": "nc_spm_08", "rows": "210", "semantic_label": "\"none\"", "source1": "\"MODIS NASA\"", "source2": "\"\"", "south": "-415819.87588507", "timestamp": "\"1 Dec 2016 00:00:00 / 1 Jan 2017 00:00:00\"", "title": "\"MOD11B3.A2016336.h11v05.single_LST_Day_6km\"", "units": "\"none\"", "vdatum": "\"none\"", "west": "-448265.53588469" }, "process_time_delta": 0.10262918472290039, "progress": { "num_of_steps": 1, "step": 1 }, "queue": "local", "resource_id": "resource_id-3588f1c6-7d49-4233-9a18-0618a81ee129", "start_datetime": "2026-07-14 13:14:42.422749", "start_timestamp": 1784034882.4227493, "status": "finished", "time_delta": 0.18379592895507812, "timestamp": 1784034882.5253313, "urls": { "resources": [], "status": "https://actinia.mundialis.de/api/v3/resources/demouser/resource_id-3588f1c6-7d49-4233-9a18-0618a81ee129" }, "user_id": "demouser" } ``` -------------------------------- ### GET STRDS information response (JSON) Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/tutorial_data_access.md Example JSON response from a GET request to the STRDS management resource for 'LST_Day_monthly'. It includes metadata such as temporal type, granularity, number of maps, and process results. The response shows a successful information gathering with HTTP code 200. ```json { "accept_datetime": "2026-07-14 13:39:07.173213", "accept_timestamp": 1784036347.1732125, "api_info": { "endpoint": "strdsmanagementresource", "method": "GET", "path": "/api/v3/projects/nc_spm_08/mapsets/modis_lst/strds/LST_Day_monthly", "request_url": "http://actinia.mundialis.de/api/v3/projects/nc_spm_08/mapsets/modis_lst/strds/LST_Day_monthly" }, "datetime": "2026-07-14 13:39:07.922543", "http_code": 200, "message": "Information gathering for STRDS successful", "process_chain_list": [ { "1": { "flags": "g", "inputs": { "input": "LST_Day_monthly", "type": "strds" }, "module": "t.info" } } ], "process_log": [ { "executable": "t.info", "id": "1", "parameter": [ "type=strds", "input=LST_Day_monthly", "-g" ], "return_code": 0, "run_time": 0.6018106937408447, "stderr": [ "" ], "stdout": "id=LST_Day_monthly@modis_lst\nname=LST_Day_monthly\nmapset=modis_lst\ncreator=mneteler\ntemporal_type=absolute\ncreation_time='2019-09-02 13:03:42.173278'\nmodification_time='2019-09-02 13:04:01.703962'\nsemantic_type=mean\nstart_time='2015-01-01 00:00:00'\nend_time='2017-01-01 00:00:00'\ngranularity='1 month'\nmap_time=interval\nnorth=760180.124115\nsouth=-415819.875885\neast=1550934.464115\nwest=-448265.535885\ntop=0.0\nbottom=0.0\nraster_register=raster_map_register_78a1d5e30c904a5db2d15b939b5b0a3b\nnsres_min=5600.0\nnsres_max=5600.0\newres_min=5600.0\newres_max=5600.0\nmin_min=12950.0\nmin_max=14714.0\nmax_min=14360.0\nmax_max=15650.0\naggregation_type=None\nnumber_of_semantic_labels=None\nsemantic_labels=None\nnumber_of_maps=24\n" } ], "process_results": { "aggregation_type": "None", "bottom": "0.0", "creation_time": "'2019-09-02 13:03:42.173278'", "creator": "mneteler", "east": "1550934.464115", "end_time": "'2017-01-01 00:00:00'", "ewres_max": "5600.0", "ewres_min": "5600.0", "granularity": "'1 month'", "id": "LST_Day_monthly@modis_lst", "map_time": "interval", "mapset": "modis_lst", "max_max": "15650.0", "max_min": "14360.0", "min_max": "14714.0", "min_min": "12950.0", "modification_time": "'2019-09-02 13:04:01.703962'", "name": "LST_Day_monthly", "north": "760180.124115", "nsres_max": "5600.0", "nsres_min": "5600.0", "number_of_maps": "24", "number_of_semantic_labels": "None", "raster_register": "raster_map_register_78a1d5e30c904a5db2d15b939b5b0a3b", "semantic_labels": "None", "semantic_type": "mean", "south": "-415819.875885", "start_time": "'2015-01-01 00:00:00'", "temporal_type": "absolute", "top": "0.0", "west": "-448265.535885" }, "process_time_delta": 0.6027548313140869, "progress": { "num_of_steps": 1, "step": 1 }, "queue": "local", "resource_id": "resource_id-91c3d30e-74b1-47c6-b086-27f90ce3dec4", "start_datetime": "2026-07-14 13:39:07.319824", "start_timestamp": 1784036347.3198245, "status": "finished", "time_delta": 0.7493431568145752, "timestamp": 1784036347.9225404, "urls": { "resources": [], "status": "https://actinia.mundialis.de/api/v3/resources/demouser/resource_id-91c3d30e-74b1-47c6-b086-27f90ce3dec4" }, "user_id": "demouser" } ``` -------------------------------- ### List mapsets response JSON Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/tutorial_data_access.md Example response from the GET /api/v3/projects/nc_spm_08/mapsets endpoint. Shows the list of available mapsets (PERMANENT, landsat, new_user_mapset) in the process_results section, along with the g.mapsets -l process log and status details. ```json { "accept_datetime": "2019-08-01 20:31:11.325953", "accept_timestamp": 1564691471.325952, "api_info": { "endpoint": "listmapsetsresource", "method": "GET", "path": "/api/v3/projects/nc_spm_08/mapsets", "request_url": "http://actinia.mundialis.de/api/v3/projects/nc_spm_08/mapsets" }, "datetime": "2019-08-01 20:31:11.430294", "http_code": 200, "message": "Processing successfully finished", "process_chain_list": [ { "1": { "flags": "l", "inputs": { "separator": "newline" }, "module": "g.mapsets" } } ], "process_log": [ { "executable": "g.mapsets", "parameter": [ "separator=newline", "-l" ], "return_code": 0, "run_time": 0.05030035972595215, "stderr": [ "Available mapsets:", "" ], "stdout": "PERMANENT\nlandsat\nnew_user_mapset\n" } ], "process_results": [ "PERMANENT", "landsat", "new_user_mapset" ], "progress": { "num_of_steps": 1, "step": 1 }, "resource_id": "resource_id-8365e42b-8111-4026-abb0-df86677ff3b9", "status": "finished", "time_delta": 0.10437250137329102, "timestamp": 1564691471.4302812, "urls": { "resources": [], "status": "http://actinia.mundialis.de/api/v3/resources/demouser/resource_id-8365e42b-8111-4026-abb0-df86677ff3b9" }, "user_id": "demouser" } ``` -------------------------------- ### Build API documentation with create-docs.sh Source: https://github.com/actinia-org/actinia-core/blob/main/docker/README.md Execute this bash script to generate the API documentation for the project. ```bash bash create-docs.sh ``` -------------------------------- ### Start worker for per-job queue Source: https://github.com/actinia-org/actinia-core/wiki/actinia-config-options Manually start a worker for a specific per-job queue using actinia-worker with the --quit option. This is required because actinia does not yet start workers automatically. ```bash actinia-worker -c /etc/default/actinia --quit job_queue_resource_id-0a151f6c-91c5-478c-84b8-57fb4ce5f052 ``` -------------------------------- ### Create a standard demouser Source: https://github.com/actinia-org/actinia-core/blob/main/docker/README.md Create a new user with the specified username, group, password, and role. ```bash actinia-user create -u demouser -g user -w "gu3st!pa55w0rd" -r user ``` -------------------------------- ### Start worker for shared queue Source: https://github.com/actinia-org/actinia-core/wiki/actinia-config-options Start a worker for a shared queue (e.g., job_queue_0) that remains active and waits for incoming jobs. ```bash actinia-worker job_queue_0 -c /etc/default/actinia ``` -------------------------------- ### Generate API documentation with spectacle Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/actinia_concepts.md Use these commands to download the Actinia swagger definition, generate HTML documentation via Docker, and open the result in Firefox. ```bash # Download the latest swagger definition from the actinia service wget https://actinia.mundialis.de/api/v3/swagger.json -O /tmp/actinia.json # Run spectacle docker image to generate the HTML documentation docker run -v /tmp:/tmp -t sourcey/spectacle spectacle /tmp/actinia.json -t /tmp # Start Firefox to show the documentation firefox /tmp/index.html ``` -------------------------------- ### Start worker for per-user queue Source: https://github.com/actinia-org/actinia-core/wiki/actinia-config-options Start a worker for a per-user queue using actinia-worker with the --quit option. The queue name is based on the user. ```bash actinia-worker job_queue_lina -c /etc/default/actinia --quit ``` -------------------------------- ### Get raster layer info with curl Source: https://github.com/actinia-org/actinia-core/blob/main/docs/docs/tutorial_data_access.md Use this curl command to get information about a specific raster layer. The response is a JSON object with the layer details in the process_results section. ```bash curl ${AUTH} -X GET "${ACTINIA_URL}/projects/nc_spm_08/mapsets/modis_lst/raster_layers/MOD11B3.A2016336.h11v05.single_LST_Day_6km" ``` -------------------------------- ### Build actinia-core Docker image Source: https://github.com/actinia-org/actinia-core/blob/main/docker/actinia-core-alpine/README.md Command to build the actinia-core Docker image from the project root using the Alpine Dockerfile. ```bash $ docker build \ --pull \ --no-cache \ --file docker/actinia-core-alpine/Dockerfile \ --tag actinia-core:latest \ . ``` -------------------------------- ### Generate list of actinia_core imports for all plugins Source: https://github.com/actinia-org/actinia-core/blob/main/src/actinia_core/README.md Iterates over a list of plugins and libraries, printing each name and its actinia_core imports. Useful for a quick overview. ```bash for i in actinia-api actinia-processing-lib actinia-rest-lib actinia-cloudevent-plugin actinia-example-plugin actinia-grassdata-management-plugin actinia-metadata-plugin actinia-module-plugin actinia-parallel-plugin actinia-satellite-plugin actinia-stac-plugin actinia-statistic-plugin actinia-tiling-plugin do (cd $i; echo $i;IFS=","; findimports -C 2>/dev/null| grep actinia_core | while read module import;do echo $import;done | sort -u;echo); done ```