Skip to content

Commit

Permalink
make patch tutorial more clear (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers authored Jun 5, 2024
1 parent 654ee0f commit 17fdfba
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/tutorial/patch.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,23 @@ See [`get_example_patch`](`dascore.examples.get_example_patch`) for supported pa

A single file can be loaded like this:


```{python}
#| code-fold: true
# This codeblock is just to get a usable path for the next cell.
import dascore as dc
from dascore.utils.downloader import fetch
# here we download an example data file. You can replace
# the next line with the path to your file.
path = fetch("terra15_das_1_trimmed.hdf5")
```


```{python}
import dascore as dc
# path should be a path to your file. EG,
# path = mydata.hdf5
# then we get the first patch in the spool
pa = dc.spool(path)[0]
```

Expand Down

0 comments on commit 17fdfba

Please sign in to comment.