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

Vmt corridors #1096

Merged
merged 5 commits into from
May 6, 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
9 changes: 6 additions & 3 deletions conveyal_update/conveyal_vars.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import datetime as dt

gcs_path = 'gs://calitp-analytics-data/data-analyses/conveyal_update/'
target_date = dt.date(2023, 10, 18)
target_date = dt.date(2024, 2, 14)
osm_file = 'us-west-latest.osm.pbf'
# http://download.geofabrik.de/north-america/us-west-latest.osm.pbf
# first download with wget...

conveyal_regions = {}
# boundaries correspond to Conveyal Analysis regions
boundaries correspond to Conveyal Analysis regions
conveyal_regions['norcal'] = {'north': 42.03909, 'south': 39.07038, 'east': -119.60541, 'west': -124.49158}
conveyal_regions['central'] = {'north': 39.64165, 'south': 35.87347, 'east': -117.53174, 'west': -123.83789}
conveyal_regions['socal'] = {'north': 35.8935, 'south': 32.5005, 'east': -114.13121, 'west': -121.46759}
conveyal_regions['mojave'] = {'north': 37.81629, 'south': 34.89945, 'east': -114.59015, 'west': -118.38043}
conveyal_regions['mojave'] = {'north': 37.81629, 'south': 34.89945, 'east': -114.59015, 'west': -118.38043}

# # special region for one-off Centennial Corridor
# conveyal_regions['bakersfield'] = {'north': 36.81, 'south': 34.13, 'east': -117.12, 'west': -120.65}
3 changes: 2 additions & 1 deletion conveyal_update/match_feeds_regions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import os
os.environ['USE_PYGEOS'] = '0'
os.environ["CALITP_BQ_MAX_BYTES"] = str(800_000_000_000)
from shared_utils import gtfs_utils_v2, geography_utils
from shared_utils import gtfs_utils_v2
from calitp_data_analysis import geography_utils

import pandas as pd
from siuba import *
Expand Down
2 changes: 1 addition & 1 deletion sb125_analyses/vmt_transit_sketch/_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pygris
import geopandas as gpd
from siuba import *
from shared_utils.geography_utils import CA_NAD83Albers
from calitp_data_analysis.geography_utils import CA_NAD83Albers

GCS_PATH = 'gs://calitp-analytics-data/data-analyses/sb125/vmt_transit_sketch/'

Expand Down
Loading
Loading