From 17fdfbab2927ce77a4e76cd49a6cdad193f90e01 Mon Sep 17 00:00:00 2001 From: Derrick Chambers Date: Wed, 5 Jun 2024 13:02:54 -0600 Subject: [PATCH] make patch tutorial more clear (#387) --- docs/tutorial/patch.qmd | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/patch.qmd b/docs/tutorial/patch.qmd index 962866af..d9f8c682 100644 --- a/docs/tutorial/patch.qmd +++ b/docs/tutorial/patch.qmd @@ -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] ```