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

March 2024 NTD Monthly Ridership by RTPA publish #1114

Merged
merged 2 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions ntd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,4 @@ This report shows general ridership trends by transit agency, mode, and type of
## Datasets
1. NTD monthly data: https://www.transit.dot.gov/ntd/data-product/monthly-module-adjusted-data-release.
2. [RTPA list](https://gis.data.ca.gov/datasets/CAEnergy::regional-transportation-planning-agencies/explore?appid=cf412a17daaa47bca93c6d6b7e77aff0&edit=true)
3. Download our processed full data [here](https://console.cloud.google.com/storage/browser/calitp-publish-data-analysis).


# NTD ID Changes 2021_2022 Crosswalk

NTD IDs have changed for some agencies from 2021 to 2022 i.e. NTD Id is no longer unique at the year level.

For the NTDs ID that have changed we have mapped to the historical data.

## Datasets
1. NTD 2021_2022 raw data: (gs://calitp-analytics-data/data-analyses/ntd/ntd_2021_2022.csv)
2. Data that required manual crosswalk: (gs://calitp-analytics-data/data-analyses/ntd/manual.csv)
3. Download our final data that has crosswalk as well as additional rem
3. Download our processed full data [here](https://console.cloud.google.com/storage/browser/calitp-publish-data-analysis).
1 change: 1 addition & 0 deletions ntd/ntd_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ def get_public_filename(monthyear_string: str) -> str:
"dec2023": "2024-02",
"jan2024": "2024-03",
"feb2024": "2024-04",
"mar2024": "2024-05",
}
4 changes: 2 additions & 2 deletions ntd/update_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

GCS_FILE_PATH = "gs://calitp-analytics-data/data-analyses/ntd/"

current_month = "feb2024"
current_month = "mar2024"
YEAR, MONTH = ntd_dates.parse_monthyear_string(current_month)
PUBLIC_FILENAME = ntd_dates.get_public_filename(current_month)
MONTH_CREATED = ntd_dates.DATES[current_month]

# Check this url each month
# https://www.transit.dot.gov/ntd/data-product/monthly-module-adjusted-data-release
# Depending on if they fixed the Excel, there may be an additional suffix
suffix = "_240402_0"
suffix = "_240502"
FULL_URL = (
"https://www.transit.dot.gov/sites/fta.dot.gov/files/"
f"{MONTH_CREATED}/{MONTH}%20{YEAR}%20"
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Loading