Skip to content

Commit

Permalink
more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Mar 28, 2024
1 parent 163055a commit 22aa072
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/using/matching.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ the attributes of the input datasets must match, such as the list of
variables for `concat` or the `dates` and `frequency` for `join`.

You can let the package automatically adjust the attributes of the input
datasets using the `adjust` keyword:
datasets using the `adjust` keyword, to adjust one of the attributes:

.. literalinclude:: matching1_.py
:language: python

or more than one attribute:

.. literalinclude:: matching1_.py
:language: python
Expand Down
4 changes: 4 additions & 0 deletions docs/using/matching0_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ds = open_dataset(
join=[dataset1, dataset2],
adjust="frequency",
)
2 changes: 1 addition & 1 deletion docs/using/matching2_.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ds = open_dataset(join=[dataset1, dataset2], adjust=["dates"])
ds = open_dataset(join=[dataset1, dataset2], adjust="dates")

0 comments on commit 22aa072

Please sign in to comment.