title: " ukem: UK Emissions Model - spatio-temporal modelling of emissions of greenhouse gases and air pollutants" author: "Peter Levy" edits: "Sam Tomlinson" date: "2022-01-04" output: html_document: keep_md: yes
This document describes the ukem
code written in R for producing spatio-temporal predictions of UK emissions of GHGs and air pollutants for the period 1990 to near-present.
The package uses the data structures provided by the raster
package (https://CRAN.R-project.org/package=raster), but output can be written to generic netCDF files for use in other programs.
tar_target(lookup_CRF, "data/lookups/CRF_to_SNAP.csv", format = "file")
target(dt_raw_uk)
i have passed the target lookup_NRF
as an argument so that updates in the csv not only trigger the lookup_NRF
target but also trigger a re-running of the dt_raw_uk
, which previously it was not. PETE TO CHECKlookup_SIC
and lookup_CRF
?Should CH4 (and others) have a blank 12th sector map if they dont get marine emissions, to make the same structure?
PETE: I think your CH4 solvents map might exist because there are ~120 CH4 point sources (small total) that had nothing to be added to, and it might be those points that you were using for ethane. Furthermore it's the only GHG with a missing map, but it is a bit more common in APs (SOx, NH3...) and metals, so i've changed the way the maps stacks are generated.
consider everything below this line to be out of date or superceded
tar_target(lookup_CRF, "data/lookups/CRF_to_SNAP.csv", format = "file")
functions run - UK & Eire maps appear to be 'flatter' than before. I think the primary issue was in 'get_maps_static' whereby the Irish layer was somehow overwriting the UK emissions with zero. Have adjusted. Need to consider rescaling reprojected data.
New NFR/SNAP lookup uploaded (./data/lookups/NFR19_to_SNAP_vNov21.csv) - it currently doesnt have CRF or IPCC2006 coding - is this a requirement?
NAEI 2019 maps uploaded (./data-raw/diffuse_uk/UK19/ folder) but not linked in function yet. Also, as ".tif" files.
Marine emissions component remains untouched by SJT.
NAEI_ts_long.csv
matches my output totals for UKdt_ts
in run_ukem_targets.R (L149)? a combo of dt_ts_uk & dt_ts_ie? (perhaps ignore)terra
Not adjusted yet: GNFR P_IntShipping
should probably be mapped to SNAP8 as it is in the NFR19 to SNAP.
not really clear where scaling of maps takes place (scale_stack_to_nationalTotal ?) and point/diffuse integration takes place (add_points_to_diffuse ?)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.