-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DATASET: Air pollution data #309
Conversation
Codecov Report
@@ Coverage Diff @@
## main #309 +/- ##
==========================================
- Coverage 84.68% 84.59% -0.09%
==========================================
Files 75 76 +1
Lines 2500 2512 +12
Branches 249 250 +1
==========================================
+ Hits 2117 2125 +8
- Misses 323 326 +3
- Partials 60 61 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexander-griffen Hope you don’t mind, I’ve added a commit that changes how this data is presented in the front end. Should probably squash my commit into your second commit, before merging.
So we can keep track of, and display, when the data was released.
The file which is used to match the 'gridcode' value to the constituency code was created using shapefiles of constituencies re-projected onto the same projection as the defra data (BNG 27700), and one example of the gridcodes to x and y values as found from an arbitrary input file for this import. QGIS was used to find where the points were within the boundaries of the constituencies, and indeed which constituencies. To prevent this process having to be repeated, the output file is stored in the Drive
eba5266
to
5a313ac
Compare
This change includes an addition of a filter, which allows for rendering of subscript written in shorthand (https://pages.uoregon.edu/ncp/Courses/MathInPlainTextEmail.html). Currently, this new filter only works if there is only one instance of subscript, and that it's at the end of the string.
5a313ac
to
8243066
Compare
Fixes #180
Implementation notes
Data import of various air pollution data models Defra have produced (that I assume are the basis for some of the data mentioned in the ticket). This data was recorded in 2021.
The geo-matching was performed in GIS, and uploaded to the Drive (explained in more detail in 934f547).
Subscript is currently handled as follows:
Next steps
The table (image above) could include more detail on the metric. Below is it as a separate column to show the relevant data (which is stored in the
description
attribute of theDataType
object), although that column isn't present in the code, because it looks bad. The subscript and superscript is present as unicode here, so shouldn't require fancy handling.