Skip to content

Commit 97fbcb4

Browse files
committed
update documentation
1 parent b026f9c commit 97fbcb4

File tree

5 files changed

+80
-10
lines changed

5 files changed

+80
-10
lines changed

docs/building/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ all: $(TARGETS)
1414

1515

1616
clean::
17-
rm -fr *.zarr *.txt
17+
rm -fr *.zarr
1818

1919
.SUFFIXES: .zarr .yaml .txt
2020
.PRECIOUS: %.zarr

docs/building/building2.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
2+
📦 Path : dataset.zarr
3+
🔢 Format version: 0.20.0
4+
5+
📅 Start : 2024-01-01 00:00
6+
📅 End : 2024-01-01 18:00
7+
⏰ Frequency : 6h
8+
🚫 Missing : 0
9+
🌎 Resolution : 1.0
10+
🌎 Field shape: [181, 360]
11+
12+
📐 Shape : 4 × 11 × 1 × 65,160 (10.9 MiB)
13+
💽 Size : 5.7 MiB (5,995,688)
14+
📁 Files : 34
15+
16+
Index │ Variable │ Min │ Max │ Mean │ Stdev
17+
──────┼──────────┼─────────────┼─────────────┼─────────────┼────────────
18+
0 │ 10u │ -24.3116 │ 25.79 │ 0.0595319 │ 5.5856
19+
1 │ 10v │ -21.2397 │ 21.851 │ -0.270924 │ 4.23947
20+
2 │ 2t │ 214.979 │ 319.111 │ 277.775 │ 19.9318
21+
3 │ lsm │ 0 │ 1 │ 0.335152 │ 0.464236
22+
4 │ msl │ 95708.5 │ 104284 │ 100867 │ 1452.67
23+
5 │ q_100 │ 8.95676e-07 │ 5.19827e-06 │ 2.78594e-06 │ 5.39734e-07
24+
6 │ q_50 │ 1.89449e-06 │ 3.41429e-06 │ 3.00331e-06 │ 1.11219e-07
25+
7 │ t_100 │ 186.33 │ 233.74 │ 209.958 │ 12.4899
26+
8 │ t_50 │ 191.921 │ 241.239 │ 213.774 │ 12.3492
27+
9 │ z_100 │ 146865 │ 163937 │ 157791 │ 4962.71
28+
10 │ z_50 │ 186876 │ 204383 │ 199752 │ 4158.18
29+
──────┴──────────┴─────────────┴─────────────┴─────────────┴────────────
30+
🔋 Dataset ready, last update 19 seconds ago.
31+
📊 Statistics ready.
32+

docs/building/building2.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
dates:
2+
start: 2024-01-01T00:00:00Z
3+
end: 2024-01-01T18:00:00Z
4+
frequency: 6h
5+
6+
input:
7+
join:
8+
- mars:
9+
param: [2t, msl, 10u, 10v, lsm]
10+
levtype: sfc
11+
grid: [1, 1]
12+
- mars:
13+
param: [q, t, z]
14+
levtype: pl
15+
level: [50, 100]
16+
grid: [1, 1]

docs/building/introduction.rst

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,23 +78,44 @@ operations can be combined to build complex datasets.
7878
Getting started
7979
*****************
8080

81-
The simplest recipe file must contain a ``dates`` section and an ``input`` section. The latter
82-
must contain a `source` In that case, the source is ``mars``
81+
First example
82+
=============
83+
84+
The simplest recipe file must contain a ``dates`` section and an
85+
``input`` section. The latter must contain a `source` In that case, the
86+
source is ``mars``
8387

8488
.. literalinclude:: building1.yaml
8589
:language: yaml
8690

87-
To create the dataser, run the following command:
91+
To create the dataset, run the following command:
8892

89-
.. code-block:: console
93+
.. code:: console
9094
9195
$ anemoi-datasets create recipe.yaml dataset.zarr
9296
93-
Once the build is complete, you can inspect the dataset using the following command:
97+
Once the build is complete, you can inspect the dataset using the
98+
following command:
9499

95-
.. code-block:: console
100+
.. code:: console
96101
97102
$ anemoi-datasets inspect dataset.zarr
98103
99104
.. literalinclude:: building1.txt
100105
:language: console
106+
107+
Adding a second source
108+
======================
109+
110+
To add a second source, you need to use the ``join`` operation. In that
111+
example, we add pressure level variables to the previous example:
112+
113+
.. literalinclude:: building2.yaml
114+
:language: yaml
115+
116+
This will build the following dataset:
117+
118+
.. literalinclude:: building2.txt
119+
:language: console
120+
121+
.. note:: Please note that the pressure levels parameters are named `param_level`. This is the default behaviour. See :ref:`remapping_option` for more information.

docs/building/naming_variables.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111
The rename filter is used to rename variables in a dataset.
1212

13+
.. _remapping_option:
14+
1315
*************************
14-
remapping output option
16+
remapping option
1517
*************************
1618

17-
The remapping output option is used to specify the output dataset for
18-
the remapping operation.
19+
TODO.

0 commit comments

Comments
 (0)