Skip to content
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

Minor ridership fixes #3378

Merged
merged 4 commits into from
Jun 28, 2024
Merged

Minor ridership fixes #3378

merged 4 commits into from
Jun 28, 2024

Conversation

vevetron
Copy link
Contributor

@vevetron vevetron commented Jun 21, 2024

Description

Enhances NTD ridership tables to make it easier to use for analysts

Fixes #3371 and #3373

My notes on the different modes:
https://www.transit.dot.gov/ntd/ntd-data-products-frequently-asked-questions#Fixed%20Route

https://www.transit.dot.gov/ntd/national-transit-database-ntd-glossary

Motor Bus (MB), Commuter Bus (CB), Bus Rapid Transit (RB), Jitney (JT), and Publico (PB). All Rail modes and Ferry Boat (FB) are also considered fixed route services.

Rail Modes
Transit modes whose vehicles travel along fixed rails - bars of rolled steel - forming a track. The vehicles are usually electrically propelled typically through motors onboard the vehicles, but motors may also be at a central location not onboard the vehicles to pull the vehicles by cables (cable car (CC), inclined plane (IP)). For commuter rail (CR), vehicles may be self-propelled or may be drawn by a locomotive. NTD recognizes nine rail modes:
• Alaska Railroad (AR);
• Cable car (CC);
• Commuter rail (CR);
• Heavy rail (HR);
• Hybrid rail (YR);
• Inclined plane (IP);
• Light rail (LR);
• Monorail/Automated guideway transit (MG); and
• Streetcar (SR)
Can be found in: Introduction, F-20, A-10, A-20, S-10, S-20, R-30, S&S-40

Non-Rail Modes
Transit modes whose vehicles typically operate on roadways - streets, highways or expressways, but may also operate on waterways (ferryboat (FB)) or via aerial cable (aerial tramways (TR)). Vehicles are typically powered by motors onboard the vehicle, with one exception, aerial tramway (TR) vehicles which are electrically powered by a motor not onboard the vehicle in order to pull the vehicle via an overhead cable. NTD recognizes eight non-rail modes:

  1. Aerial Tramway (TR)
  2. Bus (MB)
  3. Bus rapid transit (RB)
  4. Commuter bus (CB)
  5. Demand Response (DR)
  6. Demand taxi (DT)
  7. Ferryboat (FB)
  8. Jitney (JT)
  9. Publico (PB)
  10. Trolleybus (TB), and
  11. Vanpool (VP).
    Can be found in: Introduction, F-20, A-10, A-20, S-10, R-10, R-30, S&S-40

Non-Scheduled Services
Services provided on demand, rather than with predetermined fixed time points, i.e., a schedule. Nonscheduled services are:
• Demand response (DR);
• Demand response taxi (DT);
• Vanpool (VP);
• Jitney (JT); and
• Publico (PB) services.
Can be found in: A-10, S-10

Jitney (JT)
A transit mode comprised of passenger cars or vans operating on fixed routes (sometimes with minor deviations) as demand warrants without fixed schedules or fixed stops.

Ferryboat (FB) (mode)
A transit mode comprised of vessels carrying passengers over a body of water. Intercity ferryboat (FB) service is excluded, except for that portion of such service that is operated by or under contract with a public transit agency for predominantly commuter services. Predominantly commuter service means that for any given trip segment (i.e., distance between any two piers), more than 50 percent of the average daily ridership travels on the ferryboat on the same day.

Ferryboats (FB) (vehicle type)
Vehicle type: Vessels for carrying passengers and / or vehicles over a body of water. The vessels are generally steam or diesel powered conventional ferry vessels. They may also be hovercraft, hydrofoil and other high-speed vessels. Can be found in: A-30, S&S-40

Inclined Plane (IP) (mode)
A transit mode that is a railway operating over exclusive right-of-way (ROW) on steep grades (slopes) with powerless vehicles propelled by moving cables attached to the vehicles and powered by engines or motors at a central location not onboard the vehicle. The special tramway types of vehicles have passenger seats that remain horizontal while the undercarriage (truck) is angled parallel to the slope.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

How has this been tested?

poetry run dbt run -s +dim_monthly_ntd_ridership_with_adjustments --full-refresh

poetry run dbt run -s dim_annual_ntd_agency_service --full-refresh

Post-merge follow-ups

  • No action required

Copy link

github-actions bot commented Jun 21, 2024

Warehouse report 📦

DAG

Legend (in order of precedence)

Resource type Indicator Resolution
Large table-materialized model Orange Make the model incremental
Large model without partitioning or clustering Orange Add partitioning and/or clustering
View with more than one child Yellow Materialize as a table or incremental
Incremental Light green
Table Green
View White

@evansiroky
Copy link
Member

Looks great so far! Just to clarify, I did mention in #3373 that I wanted "active" vs "inactive" in the annual report, but it looks like this is something only found in the monthly report and according to the docs in the monthly report, this is only indicating whether the particular ridership row is active as of the most recent reporting year. So I don't think we need to do any filtering on that "active" vs "inactive" status after all.

However, can we also have the monthly ridership table also have the new service_type column that is being added to the annual table?

@vevetron
Copy link
Contributor Author

In the monthly ridership table there are three modes I don't know what they stand for:
AG MO OR, so I haven't accounted for them.

@vevetron vevetron marked this pull request as ready for review June 26, 2024 18:25
@vevetron vevetron marked this pull request as draft June 26, 2024 18:26
@vevetron vevetron marked this pull request as ready for review June 26, 2024 21:03
@vevetron vevetron marked this pull request as draft June 26, 2024 21:03
@vevetron vevetron marked this pull request as ready for review June 26, 2024 21:05
@vevetron
Copy link
Contributor Author

AG is Automated Guideway, MO is for monorail, OR i still don't know but total ridership is nearly 0.

I was having a weird git crisis of confidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NTD Monthly Ridership Table Improvements: add column for combined year, month for easier sorting
2 participants