A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

xgcm

A Python package for analyzing general circulation model output data.
https://github.com/xgcm/xgcm

Category: Climate Change
Sub Category: Climate Data Processing and Analysis

Keywords

climate-model finite-volume gridded-data python

Keywords from Contributors

oceanography climate-science ocean-modelling pangeo climate compressed exoplanets zarr geoscience earth-science

Last synced: about 23 hours ago
JSON representation

Repository metadata

python package for analyzing general circulation model output data

README.rst

          xgcm: General Circulation Model Postprocessing with xarray
==========================================================

|pypi| |conda forge| |conda-forge| |Build Status| |codecov| |docs| |DOI| |license| |Code style| |pre-commit|

Binder Examples
---------------

========= ============== ============================================================================
Link      Provider       Description
========= ============== ============================================================================
|Binder|  mybinder.org   Basic self-contained example
|PBinder| Pangeo Binder  More complex examples integrated with other Pangeo tools (dask, zarr, etc.)
========= ============== ============================================================================

Description
-----------

**xgcm** is a python package for working with the datasets produced by numerical
`General Circulation Models `_
(GCMs) and similar gridded datasets that are amenable to
`finite volume `_ analysis.
In these datasets, different variables are located at different positions with
respect to a volume or area element (e.g. cell center, cell face, etc.)
xgcm solves the problem of how to interpolate and difference these variables
from one position to another.

xgcm consumes and produces xarray_ data structures, which are coordinate and
metadata-rich representations of multidimensional array data. xarray is ideal
for analyzing GCM data in many ways, providing convenient indexing and grouping,
coordinate-aware data transformations, and (via dask_) parallel,
out-of-core array computation. On top of this, xgcm adds an understanding of
the finite volume `Arakawa Grids`_ commonly used in ocean and atmospheric
models and differential and integral operators suited to these grids.

xgcm was motivated by the rapid growth in the numerical resolution of
ocean, atmosphere, and climate models. While highly parallel supercomputers can
now easily generate tera- and petascale datasets, common post-processing
workflows struggle with these volumes. Furthermore, we believe that a flexible,
evolving, open-source, python-based framework for GCM analysis will enhance
the productivity of the field as a whole, accelerating the rate of discovery in
climate science. xgcm is part of the Pangeo_ initiative.

Getting Started
---------------

To learn how to install and use xgcm for your dataset, visit the `xgcm documentation`_.


.. _Pangeo: http://pangeo.io
.. _dask: http://dask.pydata.org
.. _xarray: http://xarray.pydata.org
.. _Arakawa Grids: https://en.wikipedia.org/wiki/Arakawa_grids
.. _xgcm documentation: https://xgcm.readthedocs.io/

.. |conda forge| image:: https://img.shields.io/conda/vn/conda-forge/xgcm
   :target: https://anaconda.org/conda-forge/xgcm
.. |DOI| image:: https://zenodo.org/badge/41581350.svg
   :target: https://zenodo.org/badge/latestdoi/41581350
.. |Build Status| image:: https://img.shields.io/github/workflow/status/xgcm/xgcm/CI?logo=github
   :target: https://github.com/xgcm/xgcm/actions
   :alt: GitHub Workflow CI Status
.. |codecov| image:: https://codecov.io/github/xgcm/xgcm/coverage.svg?branch=master
   :target: https://codecov.io/github/xgcm/xgcm?branch=master
   :alt: code coverage
.. |pypi| image:: https://badge.fury.io/py/xgcm.svg
   :target: https://badge.fury.io/py/xgcm
   :alt: pypi package
.. |docs| image:: http://readthedocs.org/projects/xgcm/badge/?version=latest
   :target: http://xgcm.readthedocs.org/en/stable/?badge=latest
   :alt: documentation status
.. |license| image:: https://img.shields.io/github/license/mashape/apistatus.svg
   :target: https://github.com/xgcm/xgcm
   :alt: license
.. |Code style| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/python/black
   :alt: Code style
.. |Binder| image:: https://mybinder.org/badge_logo.svg
   :target: https://mybinder.org/v2/gh/xgcm/xgcm/master?filepath=doc%2Fexample_mitgcm.ipynb
.. |PBinder| image:: https://binder.pangeo.io/badge_logo.svg
   :target: https://binder.pangeo.io/v2/gh/pangeo-data/pangeo-ocean-examples/master
.. |conda-forge| image:: https://img.shields.io/conda/dn/conda-forge/xgcm?label=conda-forge
   :target: https://anaconda.org/conda-forge/xgcm
.. |pre-commit| image:: https://results.pre-commit.ci/badge/github/xgcm/xgcm/master.svg
   :target: https://results.pre-commit.ci/latest/github/xgcm/xgcm/master
   :alt: pre-commit.ci status

        

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Abernathey"
  given-names: "Ryan P."
  orcid: "https://orcid.org/0000-0001-5999-4917"
- family-names: "Busecke"
  given-names: "Julius J. M."
  orcid: "https://orcid.org/0000-0001-8571-865X"
- family-names: "Smith"
  given-names: "Timothy Andrew"
  orcid: "https://orcid.org/0000-0003-4463-6126"
- family-names: "Deauna"
  given-names: "Josephine Dianne"
  orcid: "https://orcid.org/0000-0002-0733-9440"
- family-names: "Banihirwe"
  given-names: "Anderson"
  orcid: "https://orcid.org/0000-0001-6583-571X"
- family-names: "Nicholas"
  given-names: "Thomas"
  orcid: "https://orcid.org/0000-0002-2176-0530"
- family-names: "Fernandes"
  given-names: "Filipe"
  orcid: "https://orcid.org/0000-0003-4165-2913"
- family-names: "James"
  given-names: "Bourbeau"
  orcid: "https://orcid.org/0000-0003-2164-7789"
- family-names: "Dussin"
  given-names: "Raphael"
  orcid: "https://orcid.org/0000-0003-4004-4553"
- family-names: "Cherian"
  given-names: "Deepak A."
  orcid: "https://orcid.org/0000-0002-6861-8734"
- family-names: "Caneill"
  given-names: "Romain"
  orcid: "https://orcid.org/0000-0001-6649-4275"
- family-names: "Sinha"
  given-names: "Anirban"
  orcid: "https://orcid.org/0000-0002-7122-3549"
- family-names: "Uieda"
  given-names: "Leonardo"
  orcid: "https://orcid.org/0000-0001-6123-9515"
- family-names: "Rath"
  given-names: "Willi"
  orcid: "https://orcid.org/0000-0003-1951-8494"
- family-names: "Balwada"
  given-names: "Dhruv"
  orcid: "https://orcid.org/0000-0001-6632-0187"
- family-names: "Constantinou"
  given-names: "Navid C."
  orcid: "https://orcid.org/0000-0002-8149-4094"
- family-names: "Ponte"
  given-names: "Aurélien"
  orcid: "https://orcid.org/0000-0002-0252-6028"
- family-names: "Zhou"
  given-names: "Yuxin"
  orcid: "https://orcid.org/0000-0002-3523-8524"
- family-names: "Uchida"
  given-names: "Takaya"
  orcid: "https://orcid.org/0000-0002-8654-6009"
- family-names: "Thielen"
  given-names: "Jon"
  orcid: "https://orcid.org/0000-0002-5479-0189"
title: "xgcm"
url: "https://github.com/xgcm/xgcm"
# version and doi are completed by Zenodo automatically, do not provide here.

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 520
Total Committers: 36
Avg Commits per committer: 14.444
Development Distribution Score (DDS): 0.694

Commits in past year: 35
Committers in past year: 7
Avg Commits per committer in past year: 5.0
Development Distribution Score (DDS) in past year: 0.6

Name Email Commits
Julius Busecke j****s@l****u 159
Ryan Abernathey r****y@g****m 140
Timothy Smith t****4@u****u 30
dependabot[bot] 4****] 27
pre-commit-ci[bot] 6****] 22
jdldeauna 6****a 20
Anderson Banihirwe a****e@u****u 18
Julius Busecke j****e@p****u 18
Tom Nicholas 3****s 15
Nora Loose n****e@g****m 14
Dominic Orchard d****d@g****m 9
Julius Busecke j****0@c****u 5
stickler-ci s****t@s****m 5
Filipe Fernandes o****f@g****m 4
Henri Drake h****e@u****u 3
James Bourbeau j****u@g****m 3
Romain Caneill r****l@y****r 3
Ben Orchard t****n@g****m 2
Deepak Cherian d****n 2
Navid C. Constantinou n****y 2
jthielen j****n@t****e 2
Raphael Dussin r****n@g****m 2
Ci Zhang z****i@y****m 2
jatkinson1000 1****0 1
Yuxin x****o@g****m 1
Christopher L.P. Wolfe c****e@s****u 1
hfdrake h****e@p****l 1
Willi Rath w****h 1
Takaya Uchida t****a@l****u 1
Riley Brady r****y@c****u 1
and 6 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 312
Total pull requests: 355
Average time to close issues: 6 months
Average time to close pull requests: about 1 month
Total issue authors: 73
Total pull request authors: 38
Average comments per issue: 5.37
Average comments per pull request: 3.21
Merged pull request: 290
Bot issues: 13
Bot pull requests: 58

Past year issues: 14
Past year pull requests: 27
Past year average time to close issues: 3 months
Past year average time to close pull requests: about 2 months
Past year issue authors: 7
Past year pull request authors: 6
Past year average comments per issue: 1.14
Past year average comments per pull request: 1.78
Past year merged pull request: 16
Past year bot issues: 0
Past year bot pull requests: 12

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/xgcm/xgcm

Top Issue Authors

  • jbusecke (92)
  • rabernat (45)
  • TomNicholas (20)
  • dcherian (13)
  • github-actions[bot] (13)
  • dhruvbalwada (10)
  • miniufo (9)
  • navidcy (5)
  • NoraLoose (5)
  • jdldeauna (5)
  • cspencerjones (4)
  • jklymak (4)
  • hdrake (4)
  • roxyboy (4)
  • koldunovn (4)

Top Pull Request Authors

  • jbusecke (120)
  • rabernat (65)
  • TomNicholas (47)
  • dependabot[bot] (35)
  • pre-commit-ci[bot] (23)
  • jdldeauna (9)
  • andersy005 (7)
  • hdrake (5)
  • rcaneill (3)
  • jatkinson1000 (3)
  • raehik (3)
  • pittwolfe (2)
  • dcherian (2)
  • liu-ran (2)
  • dorchard (2)

Top Issue Labels

  • enhancement (67)
  • bug (66)
  • Stale (37)
  • question (29)
  • docs (28)
  • keepOpen (21)
  • type: maintenance (14)
  • In Progress (12)
  • siparcs? (8)
  • dependencies (1)
  • wontfix (1)

Top Pull Request Labels

  • dependencies (35)
  • enhancement (10)
  • docs (5)
  • bug (4)
  • keepOpen (3)
  • In Progress (2)
  • Stale (2)
  • siparcs? (1)

Package metadata

pypi.org: xgcm

General Circulation Model Postprocessing with xarray

  • Homepage: https://github.com/xgcm/xgcm
  • Documentation: https://xgcm.readthedocs.io/
  • Licenses: MIT
  • Latest release: 0.8.1 (published over 2 years ago)
  • Last Synced: 2025-04-26T13:01:55.176Z (about 23 hours ago)
  • Versions: 19
  • Dependent Packages: 12
  • Dependent Repositories: 18
  • Downloads: 5,517 Last month
  • Docker Downloads: 272
  • Rankings:
    • Dependent packages count: 0.938%
    • Docker downloads count: 2.944%
    • Dependent repos count: 3.448%
    • Average: 3.883%
    • Stargazers count: 4.646%
    • Forks count: 5.022%
    • Downloads: 6.297%
  • Maintainers (2)
conda-forge.org: xgcm

  • Homepage: https://github.com/xgcm/xgcm
  • Licenses: MIT
  • Latest release: 0.8.0 (published almost 3 years ago)
  • Last Synced: 2025-04-25T12:33:01.823Z (2 days ago)
  • Versions: 11
  • Dependent Packages: 4
  • Dependent Repositories: 60
  • Rankings:
    • Dependent repos count: 4.542%
    • Dependent packages count: 12.488%
    • Average: 16.071%
    • Forks count: 21.063%
    • Stargazers count: 26.189%

Dependencies

.github/workflows/ci.yaml actions
  • actions/cache v3.0.11 composite
  • actions/checkout v3 composite
  • codecov/codecov-action v3.1.1 composite
  • conda-incubator/setup-miniconda v2 composite
.github/workflows/pythonpublish.yaml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/twitter_bot.yml actions
  • ethomson/send-tweet-action v1 composite
setup.py pypi
  • dask *
  • future *
  • numpy *
  • xarray >=0.20.0
doc/environment.yml conda
  • cartopy
  • dask
  • future
  • ipykernel
  • ipython >=8.5.0
  • matplotlib
  • netcdf4
  • numba
  • numpy
  • numpydoc
  • pytest
  • python 3.9.*
  • sphinx
  • sphinx_rtd_theme
  • xarray
binder/environment.yml pypi
ci/environment.yml pypi

Score: 18.133657334534455