Skip to content

Commit

Permalink
Merge pull request #1096 from cal-itp/vmt-corridors
Browse files Browse the repository at this point in the history
Vmt corridors
  • Loading branch information
edasmalchi authored May 6, 2024
2 parents 3f7fa77 + 1fef9b0 commit 85cfeaa
Show file tree
Hide file tree
Showing 5 changed files with 1,806 additions and 531 deletions.
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

0 comments on commit 85cfeaa

Please sign in to comment.