-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
419 lines (339 loc) · 17.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="test-website-files/css.css" rel="stylesheet">
<link href="test-website-files/css_002.css" rel="stylesheet">
<link href="test-website-files/style.css" rel="stylesheet" type="text/css">
<title>Matt Brown</title>
<meta charset="UTF-8">
<meta name="description" content="Enter the Kernel">
<meta name="author" content="Matt Brown">
<link rel="apple-touch-icon" sizes="180x180" href="test-website-files/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="test-website-files/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="test-website-files/favicon-16x16.png">
<link rel="manifest" href="test-website-files/site.webmanifest"></head>
<body>
<main class="container">
<!-- Create a div where the graph will take place -->
<div class="row">
<div class="columnw">
<img class="responsiveimg" src="test-website-files/IMG7001.jpeg">
<p style="margin: 0; background-color:rgb(26, 26, 26); padding:10px; color:rgb(146, 146, 146)">
This is one of my favourite photos from my time storm chasing in the USA. This picture was taken
in the Texas Panhandle close to sunset, bringing out the orange of the dust kicked up by the storm
winds against the dark menace of the storm clouds themselves. With some patience and luck I was able
to capture one of the many lightning bolts striking ground. See more photos <a href="test-website-files\fluid-gallery\index-color.html">here</a>
</p>
</div>
<div class="column">
<img class="responsiveimg" src="test-website-files/me.jpg">
<h1>Matt Brown</h1>
<p>(He/Him)</p>
<p>Research Software Engineer at UK Centre for Ecology and Hydrology</p>
<p>Coder, data-wrangler, storm chaser, photographer, reader, human</p>
</div>
</div>
<div class="row">
<div class="column" style="text-align: center;">
<a href="https://twitter.com/mjb1233" target="_blank"><img src="test-website-files/twitter-brands.svg" class="socialicon"></a>
<a href="https://github.com/mattjbr123" target="_blank"><img src="test-website-files/github-brands.svg" class="socialicon"></a>
<a href="https://orcid.org/0000-0003-1127-0279" target="_blank"><img src="test-website-files/orcid-brands.svg" class="socialicon"></a>
<a href="https://www.researchgate.net/profile/Matt-Brown-40" target="_blank"><img src="test-website-files/rg.svg" class="socialicon"></a>
</div>
</div>
<div class="row">
<div class="column">
<h3>Research</h3>
</div>
</div>
<div class="row" style="background-color: rgb(26, 26, 26);">
<div class="column">
<img class="responsiveimg" src="test-website-files/BESquant18.jpg">
<img class="responsiveimg" src="test-website-files/openclim_logo.webp">
<img class="responsiveimg" src="test-website-files/ukceh_logo_long_720x170_rgb.png">
</div>
<div class="columnw">
<p>I'm a Research Software Engineer/data-wrangler/numerical modeller at UKCEH. My interests encompass the physics of the
natural world, messing around with and creating new technologies/software for data wrangling and modelling, and
developing cool products/tools.
I have an undergraduate Masters degree in Meteorology from the University of Reading and an MPhil
from the University of Oxford.
</p>
<p>I mostly use python for my research/job/fun, particularly the xarray and pandas libraries,
alongside <a href="https://www.dask.org/">dask</a>, <a href="https://beam.apache.org/">beam</a>,
<a href="https://github.com/tomwhite/cubed">cubed</a> and
<a href="https://aws.amazon.com/s3/">object-storage systems</a> for working with
larger-than-memory datasets
and parallel processing. A lot of my research involves working out how to efficiently
process large amounts of data on high-performance computers.
I am also familiar with R and FORTRAN having edited various models written in these
languages and used wrapper libraries to integrate them with my anaconda setup.
</p>
</div>
</div>
<div class="row">
<div class="column">
<h3>Projects</h3>
</div>
</div>
<div class="row" style="background-color: rgb(26, 26, 26);">
<div class="column">
<img class="responsiveimg" src="test-website-files/framework_diagram.svg">
<img class="responsiveimg" src="test-website-files/rfm_with_nutrients_diagram.svg">
<img class="responsiveimg" src="test-website-files/wheat_tempscore_decadal_changes.png">
<img class="responsiveimg" src="test-website-files/T-A_API_out.png">
</div>
<div class="columnw">
<p>I'm currently developing a hydrological <a href="https://github.com/unifhy-org/"> modelling framework</a>,
which will allow different models to work together to simulate the hydrological cycle.
I am currently <a href="https://github.com/unifhy-org/unifhy/issues/14">adding</a> the ability to do nutrient/water-quality modelling to the framework,
and hopefully more things in the future! This work builds upon the nutrients/water-quality model I
designed to work with this framework as part of the <a href="https://hydro-jules.org/">Hydro-JULES</a> project.
</p>
<p>For the <a href="https://tyndall.ac.uk/projects/openclim/">OpenCLIM</a> project
I developed a <a href="https://www.github.com/openclim/ecocrop">crop suitability model 'EcoCrop'</a> to assess how the
changing climate will affect our ability to grow certain crops within the UK.
</p>
<p> I co-developed a <a href="https://github.com/NERC-CEH/jasmin_object_store">guide</a> for users new to object-storage, on how to optimally convert N-dimensional data
and how to access this data in existing scripts and notebooks. For more information on object storage and why it is important for future science, see <a href="https://www.youtube.com/watch?v=xJ8qEXQAri0">this talk we gave at the JASMIN User Conference 2023</a>.
</p>
<p>For the CropNET project I assimilated satelltie observatons of vegetation into crop models
to improve their predictions of yield.
</p>
<p>For the Future Flows project with Malaysia I developed and delivered a
<a href="https://www.ceh.ac.uk/training/climate-data-analysis-python">python training course</a>
for overseas students. After delivering I adapted it to be an on-demand course.
</p>
<p>Developed a <a href="https://www.tamsat.org.uk/index.php/tamsat-alert">decision support tool</a>
called TAMSAT-ALERT for countries in Africa using the land surface memory
as a basis for drought prediction. It is still actively used
and <a href="https://github.com/TAMSAT/">developed</a> by the team I worked with.
</p>
<!--<p>Drawing an IPM kernel with d3.js</p>
<p>Visualsing MPMs as Sankey Diagrams</p>-->
</div>
</div>
<div class="row">
<div class="column">
<h3>Other things I've done</h3>
</div>
</div>
<div class="row" style="background-color: rgb(26, 26, 26);">
<div class="column">
<img class="responsiveimg" src="test-website-files/IMGP6308.JPG">
<img class="responsiveimg" src="test-website-files/2014-10-12 22.28.23.jpeg">
<img class="responsiveimg" src="test-website-files/wavelet2.png">
<img class="responsiveimg" src="test-website-files/PXL_20210123_103743276-ANIMATION.gif">
</div>
<div class="columnw">
<p>I co-developed <a href="https://simonrolph.github.io/hotmoths/">'Hot Moths'</a>, a dating app for moths, with Simon Rolph to raise awareness of the diversity of moth species and how many are endangered in the UK, as part of a hackathon.</p>
<p>I developed a global ensemble climate-model suite for running the Met Office Unified-Model as part of my Master's project. This involved writing the complicated scripts necessary for managing the workflow of all the climate model tasks.</p>
<p>Webmaster for the <a href="http://ouwc.org/">OUWC</a>, Oxford University's Hiking Club. I developed an automated ballot for places on trips and managed the club website and email lists.</p>
<p>Treasurer of the Rollercoaster Appreciation Society at the University of Reading</p>
<p>Developed a wavelet analysis of the Central England Temperature index, the longest temperature index in the world.</p>
<p>Co-founder and writer for <a href="https://evidentlyscientifical.wordpress.com/2017/06/29/chaos-why-the-weatherman-can-never-be-exactly-right/">Evidently Scientifical</a>, an Oxford postgraduate student blog with honest articles on student life, and easily-understandable explanations of the wide-ranging areas of study of the cohort. I wrote non-technical explanations of atmospheric physics concepts I encountered during my degree and storm-chasing.</p>
<p>I was involved in the University of Oxford Physics Department Outreach team. I helped run various outreach activities for primary and secondary schools in Oxfordshire. This included developing presentations and running workshops/hands-on activities in a team.</p>
<p>I spend a lot of time hacking around with <a href="https://www.home-assistant.io/">Home Assistant</a>, an open-source and collaborative home-automation environment which works across devices independent of brand. For example, I have configured the lights in my room to slowly brighten and move through to a blue colour temperature before my phone alarm rings.</p>
<p>I like dancing, particularly contemporary dance. I'm currently attending an <a href="https://www.centralschoolofballet.co.uk/dance-classes-courses/adult-dance-classes/#/events">African Contemporary class</a> at the Cental School of Ballet.</p>
</div>
</div>
<br>
<!--<p style="text-align: center; color:rgb(146, 146, 146)">Website made by me :)</p>-->
</main>
<!-- Load d3.js -->
<script src="test-website-files/d3.v4.js"></script>
<!-- Load color palettes -->
<script src="test-website-files/d3-scale-chromatic.v1.min.js"></script>
<script>
// set the dimensions and margins of the graph
var margin = {
top: 0,
right: 0,
bottom: 0,
left: 0
},
width = 800 - margin.left - margin.right,
height = 800 - margin.top - margin.bottom;
// append the svg object to the body of the page
var svg = d3.select("#my_dataviz")
.append("div")
// Container class to make it responsive.
.classed("svg-container", true)
.append("svg")
// Responsive SVG needs these 2 attributes and no width and height attr.
.attr("preserveAspectRatio", "xMinYMin meet")
.attr("viewBox", "0 0 800 800")
// Class to make it responsive.
.classed("svg-content-responsive", true)
.append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform",
"translate(" + margin.left + "," + margin.top + ")");
// generate data
survint = Math.random() - 3;
survz = Math.random();
growint = Math.random() + 1;
growz = 1 - growint / 2;
growsd = Math.random() / 3 + 0.1;
reprint = Math.random() - 3;
reprz = Math.random();
noffint = Math.random();
noffz = Math.random();
rcszint = 0.75 + Math.random() / 2;
rcszsd = Math.random() / 3 + 0.1;
// dnrom
var pi = 3.1415926;
var e = 2.71828;
function dnorm(x, mean, sd) {
return 1 / Math.sqrt(2 * pi * Math.pow(sd, 2)) * Math.pow(e, -(Math.pow(x - mean, 2) / (2 * Math.pow(sd,
2))))
}
// survival function
function survFunction(z) {
linear = survint + survz * z
return 1 / (1 + Math.pow(e, -linear))
};
// growth function
function growthFunction(z, z1) {
mu = growint + growz * z; // mean size next year
sig = growsd; // sd about mean
pdengrow = dnorm(z1, mean = mu, sd = sig); // pdf that you are size z1 given you were size z
return pdengrow; // The function returns the product of p1 and p2
};
// probability of reproduction function
function reprFunction(z) {
linear = reprint + reprz * z
return 1 / (1 + Math.pow(e, -linear))
};
// number of offspring function
function noffFunction(z) {
linear = noffint + noffz * z
return Math.pow(e, linear) * 0.1
};
// size at birth function
function rcszFunction(z1) {
mu = rcszint; // mean size next year
sig = rcszsd; // sd about mean
pdengrow = dnorm(z1, mean = mu, sd = sig); // pdf that you are size z1 given you were size z
return pdengrow;
}
function Pkern(z, z1) {
return survFunction(z) * growthFunction(z, z1)
}
function Fkern(z, z1) {
return reprFunction(z) * noffFunction(z) * rcszFunction(z1)
}
let numbers = [];
let numbers2 = [];
let result = [];
var csvfile = "group,variable,value\n"
kerndim = 100;
maxsize = 3;
minsize = 0;
for (let i = 0; i < (kerndim * kerndim); i++) {
numbers.push(((i % kerndim) + 1) / kerndim * maxsize);
numbers2.push((Math.floor((i / kerndim) + 1)) / kerndim * maxsize);
result.push(Pkern(numbers[i], numbers2[i]) + Fkern(numbers[i], numbers2[i]));
csvfile = csvfile.concat("X", numbers[i], ",Y", numbers2[i], ",", result[i], "\n");
}
var data = d3.csvParse(csvfile);
console.log(data);
// Labels of row and columns -> unique identifier of the column called 'group' and 'variable'
var myGroups = d3.map(data, function (d) {
return d.group;
}).keys()
var myVars = d3.map(data, function (d) {
return d.variable;
}).keys()
// Build X scales and axis:
var x = d3.scaleBand()
.range([0, width])
.domain(myGroups)
.padding(0);
// Build Y scales and axis:
var y = d3.scaleBand()
.range([height, 0])
.domain(myVars)
.padding(0);
// Build color scale
var myColor = d3.scaleSequential()
.interpolator(d3.interpolateViridis)
.domain([0, Math.max(...result)])
// add the squares
svg.selectAll()
.data(data, function (d) {
return d.group + ':' + d.variable;
})
.enter()
.append("rect")
.attr("x", function (d) {
return x(d.group)
})
.attr("y", function (d) {
return y(d.variable)
})
.attr("rx", 0)
.attr("ry", 0)
.attr("width", x.bandwidth() + 1)
.attr("height", y.bandwidth() + 1)
.style("fill", function (d) {
return myColor(d.value)
})
.style("stroke-width", 4)
.style("stroke", "none")
.style("opacity", 1)
/*
svg.append("text")
.attr("x", 370)
.attr("y", 770)
.attr("text-anchor", "middle")
.style("font-size", "30px")
.style("fill", "grey")
.text("z");
svg.append("text")
.attr("x", -20)
.attr("y", 400)
.attr("text-anchor", "middle")
.style("font-size", "30px")
.style("fill", "grey")
.text("z'");
svg.append("text")
.attr("x", 0)
.attr("y", 770)
.attr("text-anchor", "middle")
.style("font-size", "17px")
.style("fill", "grey")
.text("0");
svg.append("text")
.attr("x", 740)
.attr("y", 770)
.attr("text-anchor", "middle")
.style("font-size", "17px")
.style("fill", "grey")
.text("1");
svg.append("text")
.attr("x", -20)
.attr("y", 5)
.attr("text-anchor", "middle")
.style("font-size", "17px")
.style("fill", "grey")
.text("1");
svg.append("text")
.attr("x", -20)
.attr("y", 745)
.attr("text-anchor", "middle")
.style("font-size", "17px")
.style("fill", "grey")
.text("0");
*/
/* make all links open new tab */
var links = document.links;
for (var i = 0, linksLength = links.length; i < linksLength; i++) {
if (links[i].hostname != window.location.hostname) {
links[i].target = '_blank';
}
}
</script>
</body></html>