Metadata-Version: 2.1
Name: xnemogcm
Version: 0.2.2
Summary: Interface to open NEMO global circulation model output dataset and create a xgcm grid.
Home-page: https://github.com/rcaneill/xnemogcm
Author: Romain Caneill
Author-email: romain.caneill@gu.se
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: xarray
Requires-Dist: netcdf4
Requires-Dist: dask[array]
Provides-Extra: namelist
Requires-Dist: f90nml ; extra == 'namelist'

# xnemogcm

Interface to open NEMO global circulation model output dataset and create a xgcm grid.

One can be interested by the [XORCA](https://github.com/willirath/xorca)
python package, that does a similar work for
all NEMO output grid. xnemogcm is designed to be more simple
and adapted to a simple idealized configuration.

# Usage

```python
from xnemogcm import open_nemo_and_domain_cfg
ds = open_nemo_and_domain_cfg(datadir='/path/to/data')

# Interface with xgcm
from xnemogcm import get_metrics
import xgcm
grid = xgcm.Grid(ds, metrics=get_metrics(ds), periodic=False)
```

# Installation

Installation via pip:
```bash
pip3 install xnemogcm
```

# Requirements for dev

We use *pipenv* to set up a virtual environment containing all
needed packages to run xnemogcm and the tests.
To install all the dependencies, type `pipenv install`
after cloning the directory. This will create a new virtual environment.
Typing `pipenv shell` in the package directory will activate the virtual environment.

