Skip to content

Commit 3118e07

Browse files
committed
update doc
1 parent 17f7226 commit 3118e07

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ datasets <building-introduction>`.
3737

3838
- :doc:`using/introduction`
3939
- :doc:`using/opening`
40+
- :doc:`using/methods`
4041
- :doc:`using/subsetting`
4142
- :doc:`using/combining`
4243
- :doc:`using/selecting`
@@ -53,6 +54,7 @@ datasets <building-introduction>`.
5354

5455
using/introduction
5556
using/opening
57+
using/methods
5658
using/subsetting
5759
using/combining
5860
using/selecting

docs/using/code/select1_.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
ds = open_dataset(
2-
dataset,
3-
select=["2t", "tp"],
4-
)
1+
ds = open_dataset(dataset, select=["2t", "tp"])

docs/using/code/select2_.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
ds = open_dataset(
2-
dataset,
3-
select={"2t", "tp"},
4-
)
1+
ds = open_dataset(dataset, select={"2t", "tp"})

docs/using/methods.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
########################
2+
Methods and attributes
3+
########################
4+
5+
.. warning::
6+
7+
Page in progress.
8+
9+
The following methods and attributes are available for the objects
10+
returned by ``open_dataset``:
11+
12+
*********
13+
Methods
14+
*********
15+
16+
__len__
17+
The number of rows (dates) in the dataset.
18+
19+
__getitem__
20+
Access the dataset's data values.
21+
22+
************
23+
Attributes
24+
************
25+
26+
shape:
27+
A tuple of the dataset's dimensions.

0 commit comments

Comments
 (0)