xnemogcm
Interface to open NEMO global circulation model output dataset with xarray and create a xgcm grid.
Science Score: 77.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
1 of 6 committers (16.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.9%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Interface to open NEMO global circulation model output dataset with xarray and create a xgcm grid.
Basic Info
- Host: GitHub
- Owner: rcaneill
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://xnemogcm.readthedocs.io/
- Size: 1.94 MB
Statistics
- Stars: 22
- Watchers: 1
- Forks: 11
- Open Issues: 1
- Releases: 8
Topics
Metadata Files
README.md
xnemogcm
Interface to open NEMO ocean global circulation model output as an Xarray Dataset and create a xgcm grid. NEMO 3.6, 4.0, 4.2.0, and 5.0 are tested and supported. Any version between 3.6 and 5.0 should work, but in case of trouble, please open an issue.
If you wish to contribute but don't have a github account, send me an email with your questions or comments: romain [dot] caneill [at] ens-lyon [.] org
Installation
For conda
shell
conda install --channel conda-forge xnemogcm
for pip
shell
pip install xnemogcm
Usage
```python from pathlib import Path from xnemogcm import opennemoanddomaincfg
ds = opennemoanddomaincfg( nemofiles='/path/to/output/files', domcfgfiles='/path/to/domaincfg/meshmask/files' )
Interface with xgcm
from xnemogcm import getmetrics import xgcm grid = xgcm.Grid(ds, metrics=getmetrics(ds), periodic=False) ```
The full documentation is hosted online: https://xnemogcm.readthedocs.io/
Differences with existing tools
There exist tools in Fortran that ship with NEMO that are used to create domain files, input fields, etc. They are however more used to produce configurations with the necessary input files, than to analyse the outputs. So there is only one overlap with xnemogcm, which is recombining the mesh_mask / domaincfg files, when they have been outputted by different processors.
NEMO output files are outputted as netcdf so they can directly be opened by xarray. However, what is missing is all grid information in the shape needed by xgcm (COMODO convention). To solve this problem, another python package exists: xorca. However, xorca is not developed any more and is less flexible than xnemogcm. xnemogcm is meant to replace xorca, in addition to extending its functionality.
Owner
- Name: Romain Caneill
- Login: rcaneill
- Kind: user
- Location: Grenoble, France
- Company: Institut des Géosciences de l'Environnement
- Website: romaincaneill.fr
- Repositories: 48
- Profile: https://github.com/rcaneill
Doctor in Physical Oceanography. Studying sea ice, ocean stratif, buoyancy fluxes, nonlinear EOS, with numerical modelling (NextSIM, NEMO) and observations.
Citation (CITATION.cff)
cff-version: 1.2.0
title: xnemogcm
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Romain
family-names: Caneill
email: romain.caneill@ens-lyon.org
orcid: 'https://orcid.org/0000-0001-6649-4275'
- given-names: David
family-names: Kamm
orcid: 'https://orcid.org/0009-0006-2210-3715'
- given-names: Callum
family-names: Rollo
orcid: 'https://orcid.org/0000-0002-5134-7886'
- given-names: Paige
family-names: Martin
orcid: 'https://orcid.org/0000-0003-3538-633X'
identifiers:
- type: doi
value: 10.5281/zenodo.5724577
repository-code: 'https://github.com/rcaneill/xnemogcm'
abstract: >-
Interface to open NEMO ocean global circulation model
output as an Xarray Dataset and create a xgcm grid.
license: MIT
GitHub Events
Total
- Release event: 3
- Delete event: 11
- Issue comment event: 8
- Push event: 11
- Pull request event: 23
- Fork event: 1
- Create event: 14
Last Year
- Release event: 3
- Delete event: 11
- Issue comment event: 8
- Push event: 11
- Pull request event: 23
- Fork event: 1
- Create event: 14
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Romain | r****l@y****r | 213 |
| Romain | r****l@z****t | 15 |
| Callum Rollo | c****o@o****m | 11 |
| dependabot[bot] | 4****] | 6 |
| David Kamm | d****m@p****r | 3 |
| Paige Martin | p****r@u****u | 2 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 25
- Total pull requests: 121
- Average time to close issues: 4 months
- Average time to close pull requests: 12 days
- Total issue authors: 7
- Total pull request authors: 8
- Average comments per issue: 1.4
- Average comments per pull request: 0.53
- Merged pull requests: 77
- Bot issues: 0
- Bot pull requests: 53
Past Year
- Issues: 0
- Pull requests: 26
- Average time to close issues: N/A
- Average time to close pull requests: 5 days
- Issue authors: 0
- Pull request authors: 3
- Average comments per issue: 0
- Average comments per pull request: 0.65
- Merged pull requests: 11
- Bot issues: 0
- Bot pull requests: 13
Top Authors
Issue Authors
- rcaneill (15)
- paigem (3)
- callumrollo (2)
- ocefpaf (1)
- bguelk (1)
- atb299 (1)
- rabernat (1)
- vopikamm (1)
Pull Request Authors
- rcaneill (75)
- dependabot[bot] (58)
- callumrollo (10)
- github-actions[bot] (7)
- noemieplanat (2)
- paigem (2)
- ocefpaf (1)
- vopikamm (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- pypi 61 last-month
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 1
(may contain duplicates) - Total versions: 16
- Total maintainers: 1
pypi.org: xnemogcm
Interface to open NEMO global circulation model output dataset and create a xgcm grid.
- Homepage: https://github.com/rcaneill/xnemogcm
- Documentation: https://xnemogcm.readthedocs.io/
- License: MIT
-
Latest release: 0.5.0
published about 1 year ago
Rankings
Maintainers (1)
conda-forge.org: xnemogcm
- Homepage: https://github.com/rcaneill/xnemogcm
- License: MIT
-
Latest release: 0.3.4
published almost 4 years ago
Rankings
Dependencies
- black ^22.10.0
- dask *
- f90nml >=1.3.1
- jupyterlab >=3.5.1
- netcdf4 >=1.5.8
- pytest >=6.2.5
- python >=3.8
- xarray >=0.21.1
- xgcm >=0.6.0
- abatilo/actions-poetry v2.0.0 composite
- actions/checkout v2 composite
- actions/setup-python v1 composite
- JRubics/poetry-publish v1.13 composite
- actions/checkout v2 composite
- 119 dependencies
- abatilo/actions-poetry v2.0.0 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- actions/setup-python v1 composite
- abatilo/actions-poetry v2.0.0 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- peter-evans/create-pull-request v4 composite