Skip to content

Commit

Permalink
work on documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Mar 25, 2024
1 parent 32d2e3f commit 00c9fcd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
1 change: 0 additions & 1 deletion docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Examples
##########


.. toctree::
:maxdepth: 2
:glob:
Expand Down
19 changes: 18 additions & 1 deletion docs/using/combining.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,24 @@ Please note that you can join more than two ``zarr`` files.
from anemoi.datasets import open_dataset
ds = open_dataset(grids=[dataset1, dataset2, ...], method=...)
ds = open_dataset(grids=[dataset1, dataset2, ...], mode=...)
The values for ``mode`` are:

concatenate
===========

All the grid points are concatenated, in the order they are given. The
`latitudes` and `longitudes` are also concatenated.

cutout
======

The `cutout` mode only supports two datasets. The first dataset is the
considered to be a limited area model (LAM), while the second one is
considered to be a global model or boundary conditions. It is therefore
expected that the bounding box of the first dataset is contained within
the bounding box of the second dataset.

.. image:: cutout-1.png
:width: 75%
Expand Down
8 changes: 4 additions & 4 deletions docs/using/grids.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ So for 2D fields, the thinning will apply to both the latitude and
longitude dimensions. For 1D fields, such as reduced Gaussian grids, the
thinning will apply to the only dimension.

The following example shows the effect of thinning a dataset with a 1 degree
resolution:
The following example shows the effect of thinning a dataset with a 1
degree resolution:

.. image:: thinning-before.png
:width: 75%
:align: center

Thinning the dataset with ``thinning=4`` will result in the following dataset:
Thinning the dataset with ``thinning=4`` will result in the following
dataset:

.. image:: thinning-after.png
:width: 75%
:align: center


******
area
******
Expand Down

0 comments on commit 00c9fcd

Please sign in to comment.