Skip to content

Commit 408e4ad

Browse files
author
Andy Barrett
committed
add heading for get files
1 parent e4fe768 commit 408e4ad

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

notebooks/SMAP/smap_as_datatree.ipynb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"source": [
8787
"### Import libraries\n",
8888
"\n",
89-
"As with all Python code, we need to import some libraries to read the data, add coordinates and plot "
89+
"As with all Python code, we need to import some libraries to read the data, add coordinates and plot the data."
9090
]
9191
},
9292
{
@@ -112,6 +112,14 @@
112112
"DATAPATH = Path(\"data/L3_SM_P\")"
113113
]
114114
},
115+
{
116+
"cell_type": "markdown",
117+
"id": "672a11e2-7fef-4ac6-9809-c0ed276bf3ee",
118+
"metadata": {},
119+
"source": [
120+
"### Get a list of HDF5 files in the data directory"
121+
]
122+
},
115123
{
116124
"cell_type": "code",
117125
"execution_count": null,
@@ -127,9 +135,9 @@
127135
"id": "403ba053-0e4e-412d-9513-3dccf4941ec3",
128136
"metadata": {},
129137
"source": [
130-
"## Load a data file into an `xarray.DataTree` object\n",
138+
"### Load a data file into an `xarray.DataTree` object\n",
131139
"\n",
132-
"`xarray.DataTree` objects allow us to work with hierachical data structures and file formats such as HDF5, Zarr and NetCDF4 with groups. The SMAP level 2 files are hierachical data structures.\n",
140+
"`xarray.DataTree` objects allow us to work with hierachical data structures and file formats such as HDF5, Zarr and NetCDF4 with groups. The SMAP level 3 files are hierachical data structures.\n",
133141
"\n",
134142
"We use `xr.open_datatree` to open a SMAP HDF5 file. We add the `phony_dims=\"sort\"` because data variables in the SMAP files do not have any assigned dimension scales. `xarray` names dimensions `phony_dim0`, `phony_dim1`, etc."
135143
]

0 commit comments

Comments
 (0)