-
Notifications
You must be signed in to change notification settings - Fork 22
/
10.21105.joss.00051.jats
166 lines (166 loc) · 7.11 KB
/
10.21105.joss.00051.jats
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
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN"
"JATS-publishing1.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
<front>
<journal-meta>
<journal-id></journal-id>
<journal-title-group>
<journal-title>Journal of Open Source Software</journal-title>
<abbrev-journal-title>JOSS</abbrev-journal-title>
</journal-title-group>
<issn publication-format="electronic">2475-9066</issn>
<publisher>
<publisher-name>Open Journals</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">51</article-id>
<article-id pub-id-type="doi">10.21105/joss.00051</article-id>
<title-group>
<article-title>rdefra: Interact with the UK AIR Pollution Database from
DEFRA</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<contrib-id contrib-id-type="orcid">0000-0002-4252-1176</contrib-id>
<string-name>Claudia Vitolo</string-name>
<xref ref-type="aff" rid="aff-1"/>
</contrib>
<contrib contrib-type="author">
<contrib-id contrib-id-type="orcid">0000-0001-7120-8499</contrib-id>
<string-name>Andrew Russell</string-name>
<xref ref-type="aff" rid="aff-1"/>
</contrib>
<contrib contrib-type="author">
<contrib-id contrib-id-type="orcid">0000-0001-5105-3506</contrib-id>
<string-name>Allan Tucker</string-name>
<xref ref-type="aff" rid="aff-1"/>
</contrib>
<aff id="aff-1">
<institution-wrap>
<institution>Brunel University London</institution>
</institution-wrap>
</aff>
</contrib-group>
<pub-date date-type="pub" publication-format="electronic" iso-8601-date="2016-08-03">
<day>3</day>
<month>8</month>
<year>2016</year>
</pub-date>
<volume>1</volume>
<issue>4</issue>
<fpage>51</fpage>
<permissions>
<copyright-statement>Authors of papers retain copyright and release the
work under a Creative Commons Attribution 4.0 International License (CC
BY 4.0)</copyright-statement>
<copyright-year>2021</copyright-year>
<copyright-holder>The article authors</copyright-holder>
<license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>Authors of papers retain copyright and release the work under
a Creative Commons Attribution 4.0 International License (CC BY
4.0)</license-p>
</license>
</permissions>
<kwd-group kwd-group-type="author">
<kwd>open data</kwd>
<kwd>air pollution</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="summary">
<title>Summary</title>
<p>Rdefra
(<xref alt="Vitolo et al., 2016" rid="ref-rdefra-archive" ref-type="bibr">Vitolo
et al., 2016</xref>) is an R package
(<xref alt="R Core Team, 2016" rid="ref-R-base" ref-type="bibr">R Core
Team, 2016</xref>) 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(<xref alt="Ryberg & Vecchia, 2014" rid="ref-waterdata" ref-type="bibr">Ryberg
& Vecchia, 2014</xref>) and
rnrfa(<xref alt="Vitolo et al., 2015" rid="ref-rnrfa" ref-type="bibr">Vitolo
et al., 2015</xref>): 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
<monospace>ukair_catalogue()</monospace>, missing stations’
coordinates can be obtained using the function
<monospace>ukair_get_coordinates()</monospace>, and time series data
related to different pollutants can be obtained using the function
<monospace>ukair_get_hourly_data()</monospace>.</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
(<xref alt="R Core Team, 2016" rid="ref-R-base" ref-type="bibr">R Core
Team, 2016</xref>), 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>
<fig>
<caption><p>UK-AIR monitoring stations (August 2016)</p></caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="media/MonitoringStations.png" xlink:title="" />
</fig>
</sec>
</body>
<back>
<ref-list>
<ref-list>
<ref id="ref-rdefra-archive">
<element-citation>
<person-group person-group-type="author">
<name><surname>Vitolo</surname><given-names>Claudia</given-names></name>
<name><surname>Russell</surname><given-names>Andrew</given-names></name>
<name><surname>Tucker</surname><given-names>Allan</given-names></name>
</person-group>
<article-title>Rdefra: Interact with the UK AIR pollution database from DEFRA</article-title>
<year iso-8601-date="2016-06">2016</year><month>06</month>
<uri>http://dx.doi.org/10.5281/zenodo.55270</uri>
<pub-id pub-id-type="doi">10.5281/zenodo.55270</pub-id>
</element-citation>
</ref>
<ref id="ref-R-base">
<element-citation publication-type="book">
<person-group person-group-type="author">
<string-name>R Core Team</string-name>
</person-group>
<source>R: A language and environment for statistical computing</source>
<publisher-name>R Foundation for Statistical Computing</publisher-name>
<publisher-loc>Vienna, Austria</publisher-loc>
<year iso-8601-date="2016">2016</year>
<uri>https://www.R-project.org/</uri>
</element-citation>
</ref>
<ref id="ref-waterdata">
<element-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Ryberg</surname><given-names>Karen R.</given-names></name>
<name><surname>Vecchia</surname><given-names>Aldo V.</given-names></name>
</person-group>
<source>waterData: An r package for retrieval, analysis, and anomaly calculation of daily hydrologic time series data</source>
<year iso-8601-date="2014">2014</year>
<uri>https://CRAN.R-project.org/package=waterData</uri>
</element-citation>
</ref>
<ref id="ref-rnrfa">
<element-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Vitolo</surname><given-names>Claudia</given-names></name>
<name><surname>Fry</surname><given-names>Matthew</given-names></name>
<name><surname>Buytaert</surname><given-names>Wouter</given-names></name>
</person-group>
<source>Rnrfa: UK national river flow archive data from r</source>
<year iso-8601-date="2015">2015</year>
<uri>https://CRAN.R-project.org/package=rnrfa</uri>
</element-citation>
</ref>
</ref-list>
</ref-list>
</back>
</article>