Skip to content

Commit

Permalink
Merge branch 'feature/refactor' of github.com:ecmwf/anemoi-inference …
Browse files Browse the repository at this point in the history
…into feature/refactor
  • Loading branch information
b8raoult committed Nov 19, 2024
2 parents 7be0a4b + f8ec126 commit f26ee2c
Show file tree
Hide file tree
Showing 11 changed files with 2,920 additions and 54 deletions.
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@
#
html_theme = "sphinx_rtd_theme"

# Make the page width match the browser width
html_theme_options = {
"body_max_width": "none",
}


# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
Expand Down
26 changes: 26 additions & 0 deletions docs/configs/forcings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,29 @@ The example below shows an example where the forcings are fetched from
``mars`` while the initial conditions are fetched from ``test``.

.. literalinclude:: forcings_1.yaml
:language: yaml

This example above is a shortcut for:

.. literalinclude:: forcings_2.yaml

You can also specify different sources for each forcing.

This is to get the initial constant forcings from a file:

.. literalinclude:: forcings_3.yaml
:language: yaml

Get the dynamic forcings from mars:

.. literalinclude:: forcings_4.yaml
:language: yaml

And the LAM boundary conditions from a mars as well:

.. literalinclude:: forcings_5.yaml
:language: yaml

In the case of the last three type of forcings, it they are not
specified, the value of `forcings.input` will be used. It this value is
not specified, the value of `input` will then be used.
2 changes: 2 additions & 0 deletions docs/configs/forcings_2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
forcing:
input: mars
3 changes: 3 additions & 0 deletions docs/configs/forcings_3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
forcing:
constant:
grib: constant.grib
2 changes: 2 additions & 0 deletions docs/configs/forcings_4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
forcing:
dynamic: mars
2 changes: 2 additions & 0 deletions docs/configs/forcings_5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
forcing:
boundary: mars
32 changes: 2 additions & 30 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ models from existing recipes but with their own data.
This package provides a series of utility functions for used by the rest
of the *Anemoi* packages.

- :doc:`overview`
- :doc:`installing`

.. toctree::
:maxdepth: 1
:hidden:

overview
installing

*********************
Expand Down Expand Up @@ -74,36 +76,6 @@ of the *Anemoi* packages.
configs/outputs
configs/forcings

..
.. toctree::
..
:maxdepth: 1
..
:glob:
..
:caption: Modules
..
modules/*
..
.. toctree::
..
:maxdepth: 1
..
:glob:
..
:caption: Schemas
..
schemas/*
*****************
Anemoi packages
*****************
Expand Down
28 changes: 28 additions & 0 deletions docs/overview.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.. _overview:

##########
Overview
##########

.. _data-flow:

.. figure:: schemas/overview.png
:alt: Overview
:align: center
:target: javascript:void(window.open('_images/overview.png'))

Flow of data in inference.

The schema above is a high-level overview of the data flow in the
inference process (click on the image for a larger version).

Several key concepts are introduced:

- Input:
- Prognostic variables:
- Diagnostic variables:
- Output:
- Constant forcings:
- Dynamic forcings:
- Computed constants:
- Computed forcings:
Loading

0 comments on commit f26ee2c

Please sign in to comment.