-
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
National grid of values for modelled change in cycle counts #75
Comments
To convert to LA level and check-in with @mem48 on Weds. |
@joeytalbot for GAM model results do not cover the whole of the UK The edge of Cornwall and Lowestoft have been cut off |
I'm sorry about that I may need to rerun the model and expand the grid bounds slightly. |
@Robinlovelace having internet problems, but I got this working. |
Looking good @mem48. Any ideas of similarities/differences compared with this? Reproducible example below. We now have 2 Code that may be useful for comparison: u = "https://github.com/saferactive/saferactive/releases/download/0.1.1/raster_rnet_bicycle.tif"
# download.file()
lnd = spData::lnd
lnd_20km = stplanr::geo_buffer(lnd, dist = 20000) %>%
sf::st_transform(27700)
r = raster::raster("~/saferactive/saferactive/rasters/raster_rnet_bicycle.tif")
r_lnd = raster::crop(r, lnd_20km)
raster::plot(r_lnd) |
I don't know about the raster, but what I'm doing is based on the GAM model. |
So what is this? #75 (comment) I thought based on your comments in #57 you were working on re-splitting-up the network as the basis of a raster map of cycling, although I would suggest that the results in the map above are sufficient for our purposes. Good to focus on the GAM model. This issue, as I understanding it, is about multiplying the values in the pre-existing raster visualised above by the results from the GAM model. Any updates/clarifications welcome. |
Nudge on this @mem48 - I suggest writing code that works with the raster produced by @joeytalbot - who I think plans to update it (please let us know when you're working on it and keep us posted). Writing the code will probably take longer than running so think it's still a strong basis for moving forward on this. Will be great to see the per-year raster outputs. |
Will be good to get closure on this issue. I think a summary of the latest data on grid values for cycle commuting in 2011, and equivalent data showing multipliers and KSI will be enough to close it. I think the data is already there but we just need to document it. Please take a look when you get a chance @joeytalbot. |
Predictions resulting from a GAM model of national DfT counts, for the years 2010 - 2019 on a 500m grid:
https://github.com/saferactive/saferactive/releases/download/0.1.2/gam-full-results-peak-grid-national.Rds
The text was updated successfully, but these errors were encountered: