Skip to content

Commit 5a897d8

Browse files
committed
Use ../example_data in Exercise_02
1 parent f7c3fba commit 5a897d8

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

notebooks/.notebook_shadow_copies/Exercise_02.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ from pv_conversions import pv_from_um_cube
5858
**Step 2** Lets chose a different diagnostic, 'surface_temperature' and load both the UM data, as well LFRic data to use as reference grid.
5959

6060
```python
61-
data_path =
62-
lfric_path = data_path + '20210324T0000Z_lf_ugrid.nc'
63-
um_path = data_path + '20210324T0000Z_um_latlon.nc'
61+
data_path = '../example_data/'
62+
lfric_path = data_path + 'u-ct674_20210324T0000Z_lf_ugrid.nc'
63+
um_path = data_path + 'u-ct674_20210324T0000Z_um_latlon.nc'
6464

6565
with PARSE_UGRID_ON_LOAD.context():
6666
lfric_rho = iris.load_cube(lfric_path, 'surface_air_pressure')

notebooks/.notebook_shadow_copies/Exercise_02_answers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ from pv_conversions import pv_from_um_cube
5959

6060
```python
6161
# Define the location of the data and file names
62-
data_path = ''
63-
lfric_path = data_path + '20210324T0000Z_lf_ugrid.nc'
64-
um_path = data_path + '20210324T0000Z_um_latlon.nc'
62+
data_path = '../example_data/'
63+
lfric_path = data_path + 'u-ct674_20210324T0000Z_lf_ugrid.nc'
64+
um_path = data_path + 'u-ct674_20210324T0000Z_um_latlon.nc'
6565

6666
with PARSE_UGRID_ON_LOAD.context():
6767
lfric_rho = iris.load_cube(lfric_path, 'surface_air_pressure')

notebooks/Exercise_02.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@
9797
"metadata": {},
9898
"outputs": [],
9999
"source": [
100-
"data_path = \n",
101-
"lfric_path = data_path + '20210324T0000Z_lf_ugrid.nc'\n",
102-
"um_path = data_path + '20210324T0000Z_um_latlon.nc'\n",
100+
"data_path = '../example_data/'\n",
101+
"lfric_path = data_path + 'u-ct674_20210324T0000Z_lf_ugrid.nc'\n",
102+
"um_path = data_path + 'u-ct674_20210324T0000Z_um_latlon.nc'\n",
103103
"\n",
104104
"with PARSE_UGRID_ON_LOAD.context():\n",
105105
" lfric_rho = iris.load_cube(lfric_path, 'surface_air_pressure')\n",

notebooks/Exercise_02_answers.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@
9898
"outputs": [],
9999
"source": [
100100
"# Define the location of the data and file names\n",
101-
"data_path = ''\n",
102-
"lfric_path = data_path + '20210324T0000Z_lf_ugrid.nc'\n",
103-
"um_path = data_path + '20210324T0000Z_um_latlon.nc'\n",
101+
"data_path = '../example_data/'\n",
102+
"lfric_path = data_path + 'u-ct674_20210324T0000Z_lf_ugrid.nc'\n",
103+
"um_path = data_path + 'u-ct674_20210324T0000Z_um_latlon.nc'\n",
104104
"\n",
105105
"with PARSE_UGRID_ON_LOAD.context():\n",
106106
" lfric_rho = iris.load_cube(lfric_path, 'surface_air_pressure')\n",

0 commit comments

Comments
 (0)