-
Notifications
You must be signed in to change notification settings - Fork 1
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
Task 2b: Primary Locations (Work) #12
Comments
notes from meeting with @stuartlynn re handling people travelling together:
|
From discussion of options on matching people to workplaces (and other locations):
|
How to constrain the flows to the census commuting data. From A dynamic microsimulation model for epidemics (dyme paper) section 2.4.2:
|
@BZ-BowenZhang: as discussed Friday, just adding some further detail on ideas for two options for the workplace locations, feel free to let me know if helpful to discuss further at all. Aim: to assign a workplace location to a given person's schedule after matching NTS to SPC and measure the consistency/validity with observed data sources and modelling. A. Current SPC approach
from uatk_spc.reader import Reader
spc = Reader(path, region, backend="pandas", input_type="parquet")
# Has workplace assigned
spc.people
# Has location for a given workplace
spc.venues_per_activity B. Alternative approach with feasible zones
Validation and comparisons
|
…sk-2b-primary-locations-work Adds methods, notebooks and script for adding primary locations (#12)
How do you add work locations for the SPC after each individual has been mapped to an individual in the NTS? We start with the input data (let's call it spc_activity_chains). Each individual now has:
sic1d2007
: Standard Industry Classification of economic activities 2007, 1st level (derived from UK TUS 2015) - (from theSPC
)TripPurpose
|TripPurposeFrom
|TripEnd
|TripTotalTime
|Mode
- (from theNTS
)A potential workflow could include:
1. From spc_activity_chains, filter all individuals with TripPurpose = work
2. Identify spatial distribution of different jobs
3. Determine feasible locations (zones) of workplace
Calculate travel time matrix by mode at the zone level. This can be done with a routing engine like r5r
For each person in spc_activity_chains, identify zones that are reachable within a buffer time of TripTotalTime (e.g. TripTotalTime +- 15 minutes)
4. Choose a zone from feasible zones
5. Choose a specific workplace
Notes
Step 4 / 5
Other
The text was updated successfully, but these errors were encountered: