{"id":26163838,"url":"https://github.com/xarray-contrib/xdggs","last_synced_at":"2026-02-06T12:42:24.049Z","repository":{"id":205821794,"uuid":"715175142","full_name":"xarray-contrib/xdggs","owner":"xarray-contrib","description":"Xarray extension for DGGS","archived":false,"fork":false,"pushed_at":"2024-04-01T20:34:22.000Z","size":163,"stargazers_count":19,"open_issues_count":21,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-01T21:38:30.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xarray-contrib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-11-06T16:11:15.000Z","updated_at":"2024-04-14T21:30:46.614Z","dependencies_parsed_at":"2023-11-13T09:40:22.776Z","dependency_job_id":"7a7ac59e-bf22-4921-8ea5-915143f93f53","html_url":"https://github.com/xarray-contrib/xdggs","commit_stats":null,"previous_names":["benbovy/xdggs","xarray-contrib/xdggs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarray-contrib%2Fxdggs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarray-contrib%2Fxdggs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarray-contrib%2Fxdggs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xarray-contrib%2Fxdggs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xarray-contrib","download_url":"https://codeload.github.com/xarray-contrib/xdggs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248898492,"owners_count":21179784,"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-03-11T14:53:16.840Z","updated_at":"2026-02-06T12:42:24.039Z","avatar_url":"https://github.com/xarray-contrib.png","language":"Python","readme":"[![CI](https://github.com/xarray-contrib/xdggs/actions/workflows/ci.yml/badge.svg?branch=main\u0026event=push)](https://github.com/xarray-contrib/xdggs/actions/ci.yml?query=branch%3Amain+event%3Apush)\n[![docs](https://readthedocs.org/projects/xdggs/badge/?version=latest)](https://xdggs.readthedocs.io)\n[![PyPI version](https://img.shields.io/pypi/v/xdggs.svg)](https://pypi.org/project/xdggs)\n[![codestyle](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)\n[![conda-forge](https://img.shields.io/conda/vn/conda-forge/xdggs)](https://github.com/conda-forge/xdggs-feedstock)\n\n---\n\n\u003cimg src=\"https://raw.githubusercontent.com/xarray-contrib/xdggs/main/docs/_static/logos/xdggs_logo.png\" width=\"259\" height=\"300\" margin=\"0\" /\u003e\u003cbr/\u003e\n\n# xdggs: discrete global grid systems with xarray\n\n`xdggs` is an open-source Python package that provides tools for handling geospatial data using Discrete Global Grid Systems (DGGS).\n\nIt enables efficient manipulation and analysis of multi-dimensional gridded data within a DGGS framework, supporting spatial data processing, resampling, and aggregation on both global and regional scales.\n\nInspired by the growing need for scalable geospatial data analysis with DGGS, `xdggs` is built upon the robust [Xarray](https://xarray.pydata.org/) ecosystem, which simplifies working with labeled multi-dimensional arrays.\n\nAs an extension of Xarray, `xdggs` leverages Xarray's capabilities, including seamless access to formats like [NetCDF](https://www.unidata.ucar.edu/software/netcdf/), [Zarr](https://zarr.readthedocs.io/), and parallelization through [Dask](https://www.dask.org/), to provide a powerful and flexible toolkit for geospatial analysis.\n\n## Key Features\n\n- **Seamless Integration with Xarray**: Use `xdggs` alongside Xarray's powerful tools for managing labeled, multi-dimensional data.\n- **Support for DGGS**: Convert geospatial data into DGGS representations, allowing for uniform spatial partitioning of the Earth's surface.\n- **Spatial Resampling**: Resample data on DGGS grids, enabling downscaling or upscaling across multiple resolutions.\n- **DGGS Aggregation**: Perform spatial aggregation of data on DGGS cells.\n- **Efficient Data Management**: Manage large datasets with Xarray's lazy loading, Dask integration, and chunking to optimize performance.\n\n## Documentation\n\nYou can find the documentation in [https://xdggs.readthedocs.io/en/latest/](https://xdggs.readthedocs.io/en/latest/).\n\n## Demo\n\n![xdggs demo](https://raw.githubusercontent.com/xarray-contrib/xdggs/refs/heads/main/xdggs-cropped.gif)\n\n## Getting Started\n\nAs an example, this is how you would use `xdggs` to reconstruct geographical coordinates from the cell ids then create an interactive plot indicating cell ids, data values and the associated geographical coordinates:\n\n```python\nimport xarray as xr\nimport xdggs\n\nds = xdggs.tutorial.open_dataset(\"air_temperature\", \"h3\")\n\n# Decode DGGS coordinates\nds_idx = ds.pipe(xdggs.decode)\n\n# Assign geographical coordinates\nds_idx = ds_idx.dggs.assign_latlon_coords()\n\n# Interactive visualization\nds_idx[\"air\"].isel(time=0).compute().dggs.explore(center=0, cmap=\"viridis\", alpha=0.5)\n```\n\n## Roadmap\n\nWe have exciting plans to expand xdggs with new features and improvements. You can check out our roadmap in the [design_doc.md](https://github.com/xarray-contrib/xdggs/blob/main/design_doc.md) file for details on the design of xdggs, upcoming features, and future enhancements.\n\n## Contributing\n\nWe welcome contributions to `xdggs`! Please follow these steps to get involved:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Make your changes and write tests.\n4. Ensure all tests pass (`pytest`).\n5. Submit a pull request!\n\n## License\n\n`xdggs` is licensed under the Apache License. See [LICENSE](https://github.com/xarray-contrib/xdggs/blob/main/LICENSE) for more details.\n\n## Acknowledgments\n\nThis project was initiated using funding from CNES (PANGEO IAOCEA, contract R\u0026T R-S23/DU-0002-025-01) and the European Union (ERC, WaterSmartLand, 101125476, Interreg-BSR, HyTruck, #C031).\n","funding_links":[],"categories":["Data Formats \u0026 Tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxarray-contrib%2Fxdggs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxarray-contrib%2Fxdggs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxarray-contrib%2Fxdggs/lists"}