Skip to content

Commit 0b9c6b4

Browse files
committed
notebooks to generate all figures in chapter 6 and the appendices
1 parent 323dc95 commit 0b9c6b4

File tree

8 files changed

+3004
-313
lines changed

8 files changed

+3004
-313
lines changed

visualiser_debugger/c6_nbs/enda_rmse.ipynb

Lines changed: 455 additions & 65 deletions
Large diffs are not rendered by default.

visualiser_debugger/c6_nbs/ic_obs_truth.ipynb

Lines changed: 51 additions & 35 deletions
Large diffs are not rendered by default.

visualiser_debugger/c6_nbs/localisation_errors.ipynb

Lines changed: 871 additions & 0 deletions
Large diffs are not rendered by default.

visualiser_debugger/c6_nbs/plots_merger.ipynb

Lines changed: 14 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 1,
14+
"execution_count": 18,
1515
"metadata": {},
1616
"outputs": [
1717
{
@@ -1135,123 +1135,62 @@
11351135
" print(proc2)"
11361136
]
11371137
},
1138-
{
1139-
"cell_type": "markdown",
1140-
"metadata": {
1141-
"tags": []
1142-
},
1143-
"source": [
1144-
"# Merge scale analysis plots (SWE, Euler, RB)"
1145-
]
1146-
},
1147-
{
1148-
"cell_type": "code",
1149-
"execution_count": 36,
1150-
"metadata": {
1151-
"collapsed": true,
1152-
"jupyter": {
1153-
"outputs_hidden": true,
1154-
"source_hidden": true
1155-
},
1156-
"tags": []
1157-
},
1158-
"outputs": [
1159-
{
1160-
"name": "stdout",
1161-
"output_type": "stream",
1162-
"text": [
1163-
"./output/scale_analysis_swe.pdf ./output/scale_analysis_euler.pdf ./output/scale_analysis_rb.pdf\n",
1164-
"['pdfjam', '--nup', '3x1', './output/scale_analysis_swe.pdf', './output/scale_analysis_euler.pdf', './output/scale_analysis_rb.pdf', '--outfile', './output/scale_analysis.pdf']\n",
1165-
"0\n",
1166-
"0\n"
1167-
]
1168-
}
1169-
],
1170-
"source": [
1171-
"dd = './output'\n",
1172-
"p1 = '%s/scale_analysis_swe.pdf' %dd\n",
1173-
"p2 = '%s/scale_analysis_euler.pdf' %dd\n",
1174-
"p3 = '%s/scale_analysis_rb.pdf' %dd\n",
1175-
"\n",
1176-
"ps = [p1,p2,p3]\n",
1177-
"p_long = p1\n",
1178-
"\n",
1179-
"for p in ps[1:]:\n",
1180-
" p_long += ' ' + p\n",
1181-
"# print([p for p in ps])\n",
1182-
"print(p_long)\n",
1183-
"\n",
1184-
"call = ['pdfjam', '--nup', '3x1']\n",
1185-
"for p in ps:\n",
1186-
" call += [p]\n",
1187-
"call += ['--outfile', '%s/scale_analysis.pdf' %dd]\n",
1188-
"print(call)\n",
1189-
"\n",
1190-
"proc1 = subprocess.call(call)\n",
1191-
"print(proc1)\n",
1192-
"if not proc1:\n",
1193-
" proc2 = subprocess.call(['pdfcrop', '%s/scale_analysis.pdf' %dd, '%s/scale_analysis.pdf' %dd])\n",
1194-
" print(proc2)"
1195-
]
1196-
},
11971138
{
11981139
"cell_type": "markdown",
11991140
"metadata": {},
12001141
"source": [
1201-
"# Merge scale analysis plots (TV, RB)"
1142+
"# Merge scale analysis plot (SWE)"
12021143
]
12031144
},
12041145
{
12051146
"cell_type": "code",
1206-
"execution_count": 3,
1147+
"execution_count": 22,
12071148
"metadata": {},
12081149
"outputs": [
12091150
{
12101151
"name": "stdout",
12111152
"output_type": "stream",
12121153
"text": [
12131154
"0\n",
1214-
"0\n",
1215-
"['pdfjam', '--nup', '1x2', './output/scale_analysis_euler.pdf', './output/scale_analysis_rb.pdf', '--outfile', './output/scaleAnalysis.pdf']\n",
1155+
"['pdfjam', '--nup', '1x1', './output/scale_analysis_swe.pdf', '--outfile', './output/SWEscaleAnalysis.pdf']\n",
12161156
"0\n",
12171157
"0\n"
12181158
]
12191159
}
12201160
],
12211161
"source": [
12221162
"dd = './output'\n",
1223-
"p1 = '%s/scale_analysis_euler.pdf' %dd\n",
1224-
"p2 = '%s/scale_analysis_rb.pdf' %dd\n",
1163+
"p1 = '%s/scale_analysis_swe.pdf' %dd\n",
12251164
"\n",
1226-
"ps = [p1,p2]\n",
1165+
"ps = [p1]\n",
12271166
"\n",
12281167
"for p in ps:\n",
12291168
" proc0 = subprocess.call(['pdfcrop', '%s' %(p), '%s' %(p)])\n",
12301169
" print(proc0)\n",
12311170
"\n",
1232-
"call = ['pdfjam', '--nup', '1x2']\n",
1171+
"call = ['pdfjam', '--nup', '1x1']\n",
12331172
"for p in ps:\n",
12341173
" call += [p]\n",
1235-
"call += ['--outfile', '%s/scaleAnalysis.pdf' %dd]\n",
1174+
"call += ['--outfile', '%s/SWEscaleAnalysis.pdf' %dd]\n",
12361175
"print(call)\n",
12371176
"\n",
12381177
"proc1 = subprocess.call(call)\n",
12391178
"print(proc1)\n",
12401179
"if not proc1:\n",
1241-
" proc2 = subprocess.call(['pdfcrop', '%s/scaleAnalysis.pdf' %dd, '%s/scaleAnalysis.pdf' %dd])\n",
1180+
" proc2 = subprocess.call(['pdfcrop', '%s/SWEscaleAnalysis.pdf' %dd, '%s/SWEscaleAnalysis.pdf' %dd])\n",
12421181
" print(proc2)"
12431182
]
12441183
},
12451184
{
12461185
"cell_type": "markdown",
12471186
"metadata": {},
12481187
"source": [
1249-
"# Merge scale analysis plots (arXiv)"
1188+
"# Merge scale analysis plots (TV, RB)"
12501189
]
12511190
},
12521191
{
12531192
"cell_type": "code",
1254-
"execution_count": 4,
1193+
"execution_count": 24,
12551194
"metadata": {},
12561195
"outputs": [
12571196
{
@@ -1260,7 +1199,7 @@
12601199
"text": [
12611200
"0\n",
12621201
"0\n",
1263-
"['pdfjam', '--nup', '1x2', './output/scale_analysis_euler.pdf', './output/scale_analysis_rb.pdf', '--outfile', './output/scaleAnalysis.pdf']\n",
1202+
"['pdfjam', '--nup', '2x1', './output/scale_analysis_euler.pdf', './output/scale_analysis_rb.pdf', '--outfile', './output/scaleAnalysis.pdf']\n",
12641203
"0\n",
12651204
"0\n"
12661205
]
@@ -1277,7 +1216,7 @@
12771216
" proc0 = subprocess.call(['pdfcrop', '%s' %(p), '%s' %(p)])\n",
12781217
" print(proc0)\n",
12791218
"\n",
1280-
"call = ['pdfjam', '--nup', '1x2']\n",
1219+
"call = ['pdfjam', '--nup', '2x1']\n",
12811220
"for p in ps:\n",
12821221
" call += [p]\n",
12831222
"call += ['--outfile', '%s/scaleAnalysis.pdf' %dd]\n",
@@ -1294,51 +1233,7 @@
12941233
"cell_type": "markdown",
12951234
"metadata": {},
12961235
"source": [
1297-
"# Merge poster/slides rb contour plots"
1298-
]
1299-
},
1300-
{
1301-
"cell_type": "code",
1302-
"execution_count": 5,
1303-
"metadata": {},
1304-
"outputs": [
1305-
{
1306-
"name": "stdout",
1307-
"output_type": "stream",
1308-
"text": [
1309-
"./output/rb_deltap_contour_comp_slides.pdf ./output/rb_deltap_contour_psinc_slides.pdf\n",
1310-
"['pdfjam', '--nup', '2x1', './output/rb_deltap_contour_comp_slides.pdf', './output/rb_deltap_contour_psinc_slides.pdf', '--outfile', './output/rb_deltap_contour_slides.pdf', '--delta', '0.2cm 0.2cm']\n",
1311-
"66\n"
1312-
]
1313-
}
1314-
],
1315-
"source": [
1316-
"dd = './output'\n",
1317-
"p1 = '%s/rb_deltap_contour_comp_slides.pdf' %dd\n",
1318-
"p2 = '%s/rb_deltap_contour_psinc_slides.pdf' %dd\n",
1319-
"\n",
1320-
"out_name = 'rb_deltap_contour_slides'\n",
1321-
"\n",
1322-
"ps = [p1,p2]\n",
1323-
"p_long = p1\n",
1324-
"\n",
1325-
"for p in ps[1:]:\n",
1326-
" p_long += ' ' + p\n",
1327-
"# print([p for p in ps])\n",
1328-
"print(p_long)\n",
1329-
"\n",
1330-
"call = ['pdfjam', '--nup', '2x1']\n",
1331-
"for p in ps:\n",
1332-
" call += [p]\n",
1333-
"call += ['--outfile', '%s/%s.pdf' %(dd,out_name)]\n",
1334-
"call += ['--delta', '0.2cm 0.2cm']\n",
1335-
"print(call)\n",
1336-
"\n",
1337-
"proc1 = subprocess.call(call)\n",
1338-
"print(proc1)\n",
1339-
"if not proc1:\n",
1340-
" proc2 = subprocess.call(['pdfcrop', '%s/%s.pdf' %(dd,out_name), '%s/%s.pdf' %(dd,out_name)])\n",
1341-
" print(proc2)"
1236+
"# Merge scale analysis plots (arXiv)"
13421237
]
13431238
},
13441239
{

visualiser_debugger/c6_nbs/scale_analysis.ipynb

Lines changed: 528 additions & 0 deletions
Large diffs are not rendered by default.

visualiser_debugger/c6_nbs/swe_enda_rmse.ipynb

Lines changed: 118 additions & 92 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)