{"id":29188025,"url":"https://github.com/cs-si/dggs_tbx","last_synced_at":"2025-07-01T22:08:44.886Z","repository":{"id":296824641,"uuid":"557182123","full_name":"CS-SI/dggs_tbx","owner":"CS-SI","description":"Tools to create and manage Discrete Global Grid Systems (DGGS).","archived":false,"fork":false,"pushed_at":"2025-06-12T08:51:58.000Z","size":57,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-12T09:46:21.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CS-SI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-25T08:15:03.000Z","updated_at":"2025-06-12T08:52:01.000Z","dependencies_parsed_at":"2025-06-02T19:04:06.662Z","dependency_job_id":"fb056216-c777-42eb-958c-a61e1798a270","html_url":"https://github.com/CS-SI/dggs_tbx","commit_stats":null,"previous_names":["cs-si/dggs_tbx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CS-SI/dggs_tbx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CS-SI%2Fdggs_tbx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CS-SI%2Fdggs_tbx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CS-SI%2Fdggs_tbx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CS-SI%2Fdggs_tbx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CS-SI","download_url":"https://codeload.github.com/CS-SI/dggs_tbx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CS-SI%2Fdggs_tbx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263042353,"owners_count":23404459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-01T22:08:42.290Z","updated_at":"2025-07-01T22:08:44.868Z","avatar_url":"https://github.com/CS-SI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DGGS TBX\n\n## Description\n\nThe DGGS Toolbox, has been developed by ESA in the framework of the EU Copernicus programme (https://www.copernicus.eu/).\nThe main goal of DGGS Toolbox is to create and manage [Discrete Global Grid Systems (DGGS)](https://docs.ogc.org/as/20-040r3/20-040r3.html). These scripts have been written during phases 1 and 2 of the DGGS study and the outcomes are summarized in the document here enclosed in this project: [https://github.com/CS-SI/dggs_tbx/tree/main/docs](https://github.com/CS-SI/dggs_tbx/tree/main/docs)\n\nA DGGS demonstrator is currently being developped, on the basis of the findings of the Phase 1 and 2 study.\nThe preliminar version is available on the Creodias platform: [DGGS Demonstrator](https://s2mpc-dggs.csgroup.space/demo/)\n\n## Quick use using docker\n\n```bash\ndocker build . -t dggs_tbx\ndocker run dggs_tbx --help\n```\n\n```text\n Usage: dggs_tbx [OPTIONS] COMMAND [ARGS]...\n\n╭─ Options ────────────────────────────────────────────────────────────────────╮\n│ --install-completion          Install completion for the current shell.      │\n│ --show-completion             Show completion for the current shell, to copy │\n│                               it or customize the installation.              │\n│ --help                        Show this message and exit.                    │\n╰──────────────────────────────────────────────────────────────────────────────╯\n╭─ Commands ───────────────────────────────────────────────────────────────────╮\n│ cog2h3db      Build H3 grid from COG and store in PostgresSQL db             │\n│ cog2rpixdb    Build rHEALPIx grid from COG and store in PostgresSQL db       │\n│ raster2h3     Convert a raster file to H3 in GeoJSON                         │\n│ raster2rpix   Convert a raster file to rHEALPix in GeoJSON                   │\n│ sclindex      Create an H3 SCL index from a COG                              │\n╰──────────────────────────────────────────────────────────────────────────────╯\n```\n\n## Installation\n\n```bash\npython -m venv .venv\nsource .venv/bin/activate\npip install .\n```\n\n## Usage\n\n### Create H3 grid from a raster\n\nUsage:\n\n```bash\ndggs_tbx raster2h3 [OPTIONS] RASTER_PATH RESOLUTION OUT_DIR`\n```\n\nSample:\n\n```bash\ndggs_tbx raster2h3 ./S2_DATA/S2B_14QMF_20220725_0_L2A/B08.tif 5 .\n```\n\nSample form Docker image:\n\nHere, the source image is in the current folder, which is mounted on /data\ninside the container. Output geojson files are generated in the \"output\"\nsubfolder.\n\n```bash\nmkdir -p output\ndocker run --mount src=\"$(pwd)\",target=/data,type=bind \\\ndggs_tbx raster2h3 /data/S2_DATA/S2B_14QMF_20220725_0_L2A/B08.tif 5 /data/output/\n```\n\n### Create rHEALpix grid from raster\n\nUsage:\n\n```bash\ndggs_tbx raster2rpix [OPTIONS] RASTER_PATH RESOLUTION OUT_DIR\n```\n\nSample:\n\n```bash\ndggs_tbx raster2rpix ./S2_DATA/S2B_14QMF_20220725_0_L2A/B08.tif 5 .\n```\n\nSample form Docker image:\n\nHere, the source image is in the current folder, which is mounted on /data\ninside the container. Output geojson files are generated in the \"output\"\nsubfolder.\n\n```bash\nmkdir -p output\ndocker run --mount src=\"$(pwd)\",target=/data,type=bind \\\ndggs_tbx raster2rpix ./S2_DATA/S2B_14QMF_20220725_0_L2A/B08.tif 5 . /data/output/\n```\n\n## Copyright and license\n\nCopyright (C) 2024-2025 CS GROUP, [https://cs-soprasteria.com](https://cs-soprasteria.com)\n\nDGGS Toolbox is free software. You can redistribute it and/or modify it under\nthe terms of the **GNU Lesser General Public License (GNU LGPL)** as published\nby the Free Software Foundation, either version 3.0 of the license, or (at\nyour option) any later version.\n\nSPDX-License-Identifier: LGPL-3.0-or-later\n\nA copy of the GNU Lesser General Public License version 3.0 (GNU LGPL v3.0) is\nprovided in the file [COPYING.LESSER](COPYING.LESSER). Since the GNU LGPL v3.0\nis a set of additional permissions on top of the GNU General Public License\nversion 3.0 (GNU GPL v3.0), a copy of the latter is required to fully\nunderstand the terms and conditions. You can find it in the file\n[COPYING](COPYING).\n\n## Authors and acknowledgment\n\nYou will find the list of contributors in the [AUTHORS.md](AUTHORS.md) file.\n\nTheir work is based on the scientific work of Alexander Kmoch and Kevin Sahr\non DGGS.\n\n## Project status\n\n_Very_ early beginnings\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcs-si%2Fdggs_tbx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcs-si%2Fdggs_tbx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcs-si%2Fdggs_tbx/lists"}