-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add vp dwell time / pilot Big Blue Bus speeds post alignment #1180
Conversation
nbviewer URLs for impacted notebooks: |
2 similar comments
nbviewer URLs for impacted notebooks: |
nbviewer URLs for impacted notebooks: |
nbviewer URLs for impacted notebooks: |
@edasmalchi: can you look at the files I created for Big Blue Bus that are imported in |
yeah! |
@tiffanychu90 looks like the trip-level speeds are substantially equivalent, but the aggregations vary a lot? It's not the exact same time period so it's a little hard to compare, but even comparing either peak from the legacy speedmaps to the new combined peak, there's quite a difference. Good news though I think, if the trip speeds are so close it shouldn't be so hard to align the aggregations? Might be worth having separate am/pm in the new pipeline anyway, would allow us to keep presenting more information... Will continue looking! |
vehicle positions in gtfs_funnel
moving_timestamp_local
column that captures when that vp starts moving againlocation_timestamp_local
andmoving_timestamp_local
is dwell timegtfs_funnel
, and this step should go beforevp_condenser
gtfs_analytics_data.yml
so the swap is seamlessvp_condenser
should be backfilled too, because this will actually have a lot fewer vp to condense into a linestringsegment speeds
37_bbb_speeds_with_dwell
notebook to quickly look at how Big Blue Bus results. tweak those scripts as necessary, and once it's good, put the content back into the main pipeline scripts.new_nearest_10
) and adds all the information about
geometry,
location_timestamp_local, and then projects it onto the shape and gets
stop_meters`vp_idx
out only. grab 10 because there was no guarantee that the 1 point that was grabbed was before the stop. in the absence of knowing, let's grab a large enough list so we can definitely get 1 vp before the stop.new_narrow_to_2
shapely.project
each of them against the shape. we know where the stop falls on the shape (stop_meters
), so now we can narrow down to the 2 vp that occur before and after the stop (keep the 2 vp that have the smallest positive and negative deltas fromstop_meters
).new_interpolate
location_timestamp_local
columns converted into seconds.moving_timestamp_local
(previous stop) and alocation_timestamp_local
(current stop). logic should be the time the bus starts moving from previous stop and before it idles at current stop. double check this step.quick_bbb_speeds
stop_arrivals_to_speeds
andaverage_segment_speeds
into one script for BBB to check results. Save out 2 files to use in exploratory notebooks to figure out how to better filter. Everything in37_bbb_speeds_with_dwell
is unfiltered so we can look at the full distribution of speedsstop_arrivals_to_speeds
andaverage_segment_speeds
scripts