-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path10.21105.joss.00051.html
68 lines (67 loc) · 5.61 KB
/
10.21105.joss.00051.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
body = <<-EOF
<meta name="citation_title" content="rdefra: Interact with the UK AIR Pollution Database from DEFRA">
<meta name="citation_author" content="Vitolo, Claudia"><meta name="citation_author" content="Russell, Andrew"><meta name="citation_author" content="Tucker, Allan">
<meta name="citation_publication_date" content="2016/08/28">
<meta name="citation_journal_title" content="The Journal of Open Source Software">
<meta name="citation_pdf_url" content="http://www.theoj.org/joss-papers/joss.00051/10.21105.joss.00051.pdf">
<meta name="citation_doi" content="10.21105/joss.00051">
<meta name="citation_issn" content="2475-9066">
<div class="accepted-paper">
<h1>rdefra: Interact with the UK AIR Pollution Database from DEFRA</h1>
<div class="columns links">
<div class="column four-fifths" style="padding-bottom: 10px;">
<strong>Authors</strong>
<ul class="author-list">
<li><a href="http://orcid.org/0000-0002-4252-1176" target="_blank">Claudia Vitolo</a></li>
<li><a href="http://orcid.org/0000-0001-7120-8499" target="_blank">Andrew Russell</a></li>
<li><a href="http://orcid.org/0000-0001-5105-3506" target="_blank">Allan Tucker</a></li>
</ul>
</div>
<div class="one-third column">
<span class="repo">Repository:<br /><a href="https://github.com/kehraProject/r_rdefra">Repository link »</a></span>
</div>
<div class="one-third column">
<span class="paper">Paper:<br /><a href="http://www.theoj.org/joss-papers/joss.00051/10.21105.joss.00051.pdf">PDF link »</a></span>
</div>
<div class="one-third column">
<span class="paper">Review:<br /><a href="https://github.com/openjournals/joss-reviews/issues/51">View review issue »</a></span>
</div>
<div class="one-third column" style="padding-top: 20px;">
<span class="repo">DOI:<br /><a href="https://doi.org/10.21105/joss.00051">https://doi.org/10.21105/joss.00051</a></span>
</div>
<div class="one-third column" style="padding-top: 20px;">
<span class="paper">Status badge:<br /><img src="http://joss.theoj.org/papers/10.21105/joss.00051/status.svg"></span>
</div>
<div class="one-third column" style="padding-top: 20px;">
<span class="paper">Citation:<br />
<small>Vitolo et al., (2016). rdefra: Interact with the UK AIR Pollution Database from DEFRA. <em>Journal of Open Source Software</em>, 1(4), 51, doi:10.21105/joss.00051</small>
</div>
</div>
<div class="paper-body">
<h1 id="summary">Summary</h1>
<p>Rdefra <span class="citation">(Vitolo, Russell, and Tucker 2016)</span> is an R package <span class="citation">(R Core Team 2016)</span> to retrieve air pollution data from the Air Information Resource (UK-AIR) of the Department for Environment, Food and Rural Affairs in the United Kingdom. UK-AIR does not provide a public API for programmatic access to data, therefore this package scrapes the HTML pages to get relevant information.</p>
<p>This package follows a logic similar to other packages such as waterData<span class="citation">(Ryberg and Vecchia 2014)</span> and rnrfa<span class="citation">(Vitolo, Fry, and Buytaert 2015)</span>: sites are first identified through a catalogue, data are imported via the station identification number, then data are visualised and/or used in analyses. The metadata related to the monitoring stations are accessible through the function <code>ukair_catalogue()</code>, missing stations' coordinates can be obtained using the function <code>ukair_get_coordinates()</code>, and time series data related to different pollutants can be obtained using the function <code>ukair_get_hourly_data()</code>.</p>
<p>The package is designed to collect data efficiently. It allows to download multiple years of data for a single station with one line of code and, if used with the parallel package <span class="citation">(R Core Team 2016)</span>, allows the acquisition of data from hundreds of sites in only few minutes.</p>
<p>The figure below shows the 6566 stations with valid coordinates within the UK-AIR (blue circles) database, for 225 of them hourly data is available and their location is shown as red circles.</p>
<div class="figure">
<img src="https://cloud.githubusercontent.com/assets/4483/18034803/4a90b736-6cfb-11e6-9c2a-cf90d7cd9f96.png" width="800px" alt="UK-AIR monitoring stations (August 2016)" />
<p class="caption">UK-AIR monitoring stations (August 2016)</p>
</div>
<h1 id="references" class="unnumbered">References</h1>
<div id="refs" class="references">
<div id="ref-R-base">
<p>R Core Team. 2016. <em>R: A Language and Environment for Statistical Computing</em>. Vienna, Austria: R Foundation for Statistical Computing. <a href="https://www.R-project.org/" class="uri">https://www.R-project.org/</a>.</p>
</div>
<div id="ref-waterdata">
<p>Ryberg, Karen R., and Aldo V. Vecchia. 2014. <em>WaterData: An R Package for Retrieval, Analysis, and Anomaly Calculation of Daily Hydrologic Time Series Data</em>. <a href="https://CRAN.R-project.org/package=waterData" class="uri">https://CRAN.R-project.org/package=waterData</a>.</p>
</div>
<div id="ref-rnrfa">
<p>Vitolo, Claudia, Matthew Fry, and Wouter Buytaert. 2015. <em>Rnrfa: UK National River Flow Archive Data from R</em>. <a href="https://CRAN.R-project.org/package=rnrfa" class="uri">https://CRAN.R-project.org/package=rnrfa</a>.</p>
</div>
<div id="ref-rdefra-archive">
<p>Vitolo, Claudia, Andrew Russell, and Allan Tucker. 2016. “Rdefra: Interact with the Uk Air Pollution Database from Defra.” doi:<a href="https://doi.org/10.5281/zenodo.55270">10.5281/zenodo.55270</a>.</p>
</div>
</div>
</div>
</div>
EOF