Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
reorganise doc
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Mar 23, 2024
1 parent 1637da7 commit 0ef4332
Show file tree
Hide file tree
Showing 27 changed files with 125 additions and 97 deletions.
File renamed without changes
File renamed without changes.
25 changes: 25 additions & 0 deletions docs/building/filters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.. _dataset-filters:

#########
Filters
#########

Filters are used to modify the data or metadata in a dataset.

********
select
********

.. include:: filters/select.rst

********
rename
********

.. include:: filters/rename.rst

**************
rotate_winds
**************

.. include:: filters/rotate_winds.rst
1 change: 1 addition & 0 deletions docs/building/filters/rename.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
1 change: 1 addition & 0 deletions docs/building/filters/rotate_winds.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
1 change: 1 addition & 0 deletions docs/building/filters/select.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
6 changes: 3 additions & 3 deletions docs/datasets/building.rst → docs/building/introduction.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. _datasets-building:

###################
Building datasets
###################
##############
Introduction
##############

..
.. figure:: build.png
Expand Down
41 changes: 41 additions & 0 deletions docs/building/sources.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.. _dataset-sources:

#########
Sources
#########

******
mars
******

.. include:: sources/mars.rst

******
grib
******

.. include:: sources/grib.rst

********
netcdf
********

.. include:: sources/netcdf.rst

*********
opendap
*********

.. include:: sources/opendap.rst

***********
constants
***********

.. include:: sources/constants.rst

***************
accumulations
***************

.. include:: sources/accumulations.rst
1 change: 1 addition & 0 deletions docs/building/sources/accumulations.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
1 change: 1 addition & 0 deletions docs/building/sources/constants.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
1 change: 1 addition & 0 deletions docs/building/sources/grib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
1 change: 1 addition & 0 deletions docs/building/sources/mars.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
1 change: 1 addition & 0 deletions docs/building/sources/netcdf.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
1 change: 1 addition & 0 deletions docs/building/sources/opendap.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
27 changes: 0 additions & 27 deletions docs/datasets/about.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/datasets/filters.rst

This file was deleted.

41 changes: 0 additions & 41 deletions docs/datasets/sources.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/datasets/using.rst

This file was deleted.

File renamed without changes.
37 changes: 21 additions & 16 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,33 @@ models from existing recipes but with their own data.
firststeps
examples

**Datasets**
**Using training datasets**

- :doc:`datasets/about`
- :doc:`datasets/building`
- :doc:`datasets/sources`
- :doc:`datasets/filters`
- :doc:`datasets/using`
- :doc:`datasets/options`
- :doc:`using/introduction`
- :doc:`using/options`

.. toctree::
:maxdepth: 1
:hidden:
:caption: Training datasets
:caption: Using datasets

datasets/about
datasets/building
datasets/sources
datasets/filters
datasets/using
datasets/options
using/introduction
using/options

**Building training datasets**

- :doc:`building/introduction`
- :doc:`building/sources`
- :doc:`building/filters`

.. toctree::
:maxdepth: 1
:hidden:
:caption: Building datasets

building/introduction
building/sources
building/filters

*********
License
Expand All @@ -62,6 +69,4 @@ models from existing recipes but with their own data.

.. _ecml-tools: https://github.com/ecmwf-lab/ecml-tools

.. _pytorch: https://pytorch.org

.. _zarr: https://zarr.readthedocs.io/
File renamed without changes
25 changes: 23 additions & 2 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,26 @@
Overview
##########

This documentation is currently being written. For now, only the
creation and use of training datasets is documented.
Training datasets are large array-like objects encode in Zarr_ format.
They

The array has the following dimensions:

.. figure:: overview.png
:alt: Data layout

The first dimension is the time dimension, the second dimension are the
variables (e.g. temperature, pressure, etc), the third dimension is the
ensemble, and fourth dimension are the grid points values.

This structure provides an efficient way to build the training dataset,
as input and output of the model are simply consecutive slices of the
array.

.. code:: python
x, y = ds[n], ds[n+1]
y_hat = model.predict(x)
loss = model.loss(y, y_hat)
.. _zarr: https://zarr.readthedocs.io/
File renamed without changes
3 changes: 3 additions & 0 deletions docs/using/introduction.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
##############
Introduction
##############
File renamed without changes
File renamed without changes.
File renamed without changes

0 comments on commit 0ef4332

Please sign in to comment.