Skip to content

Commit

Permalink
work on doc
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Apr 1, 2024
1 parent b5a1de7 commit 17f7226
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
3 changes: 3 additions & 0 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ ensemble, and fourth dimension are the grid points values.
Chunking
**********

"Chunks" are the basic unit of data storage in Zarr_. This means that it
is the granularity at which data is read from disk.

By default, the array is chunked along the time dimensions so the whole
state of the atmosphere at a given time is loaded in one go:

Expand Down
5 changes: 1 addition & 4 deletions docs/using/code/drop_.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
ds = open_dataset(
"aifs-ea-an-oper-0001-mars-o96-1979-2022-1h-v2",
drop=["10u", "10v"],
)
ds = open_dataset(dataset, drop=["10u", "10v"])
5 changes: 1 addition & 4 deletions docs/using/code/rename_.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
ds = open_dataset(
"aifs-ea-an-oper-0001-mars-o96-1979-2022-1h-v2",
rename={"2t": "t2m"},
)
ds = open_dataset(dataset, rename={"2t": "t2m"})
2 changes: 1 addition & 1 deletion docs/using/code/reorder1_.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ds = open_dataset(
"aifs-ea-an-oper-0001-mars-o96-1979-2022-1h-v2",
dataset,
reorder=["2t", "msl", "sp", "10u", "10v"],
)
10 changes: 8 additions & 2 deletions docs/using/code/reorder2_.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
ds = open_dataset(
"aifs-ea-an-oper-0001-mars-o96-1979-2022-1h-v2",
reorder={"2t": 0, "msl": 1, "sp": 2, "10u": 3, "10v": 4},
dataset,
reorder={
"2t": 0,
"msl": 1,
"sp": 2,
"10u": 3,
"10v": 4,
},
)
2 changes: 1 addition & 1 deletion docs/using/code/select1_.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ds = open_dataset(
"aifs-ea-an-oper-0001-mars-o96-1979-2022-1h-v2",
dataset,
select=["2t", "tp"],
)
2 changes: 1 addition & 1 deletion docs/using/code/select2_.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ds = open_dataset(
"aifs-ea-an-oper-0001-mars-o96-1979-2022-1h-v2",
dataset,
select={"2t", "tp"},
)

0 comments on commit 17f7226

Please sign in to comment.