Skip to content

Commit

Permalink
Merge pull request #302 from psrc/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Ennazus authored Aug 30, 2017
2 parents d1bc2d5 + 0ccaa84 commit 96a69c3
Show file tree
Hide file tree
Showing 200 changed files with 60,917 additions and 21,672 deletions.
50 changes: 0 additions & 50 deletions INSTALL.md

This file was deleted.

61 changes: 31 additions & 30 deletions daysim_configuration_template.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ NodeDistanceReaderType = HDF5

# general path settings
BasePath = inputs
OutputSubpath = ..\outputs
OutputSubpath = ..\outputs\daysim
WorkingDirectory =..\working
WorkingSubpath = ..\working
EstimationSubpath = ..\estimation
Expand All @@ -22,7 +22,7 @@ NProcessors = 24
NBatches = 96

# PSRC and HDF5
ShouldRunInputTester = true
ShouldRunInputTester = false
HDF5Filename = hh_and_persons.h5
HDF5Path = daysim_outputs.h5
ReadHDF5 = true
Expand All @@ -46,10 +46,10 @@ RawParcelNodePath = parcel_nodes_2014.txt
RawParcelNodeDelimiter = 32

# value of time
VotVeryLowLow = 12
VotLowMedium = 24
VotMediumHigh = 30
VotHighVeryHigh = 40
VotVeryLowLow = 13.07
VotLowMedium = 26.14
VotMediumHigh = 32.67
VotHighVeryHigh = 43.56


# global settings
Expand Down Expand Up @@ -109,7 +109,7 @@ ShouldSynchronizeRandomSeed= true
# internal-external worker fractions for living and working
IxxiPath = psrc_worker_ixxifractions.dat
IxxiDelimiter = 9
IxxiFirstLineIsHeader = false
IxxiFirstLineIsHeader = False

# zone list, district lookup
ImportZones = true
Expand Down Expand Up @@ -163,81 +163,81 @@ OutputSamplingWeightsPath = sampling_weights.dat

# Model Coefficients and which models to run
WorkLocationModelSampleSize = 30
WorkLocationModelCoefficients= coefficients/WorkLocationModel_psrcper1_Calib3.F12
WorkLocationModelCoefficients= coefficients/WorkLocationModel.F12
ShouldRunWorkLocationModel= true
IncludeWorkLocationModel= true

SchoolLocationModelSampleSize = 30
SchoolLocationModelCoefficients = coefficients/SchoolLocationModel_psrcper1_Calib2.F12
SchoolLocationModelCoefficients = coefficients/SchoolLocationModel.F12
ShouldRunSchoolLocationModel = true
IncludeSchoolLocationModel = true

PayToParkAtWorkplaceModelCoefficients = coefficients/PayToParkAtWorkplaceModel_psrcper1.F12
ShouldRunPayToParkAtWorkplaceModel = $RUN_ALL
IncludePayToParkAtWorkplaceModel = true

TransitPassOwnershipModelCoefficients = coefficients/HTransitPassOwnershipModel_psrcper1.f12
TransitPassOwnershipModelCoefficients = coefficients/TransitPassOwnershipModel.f12
ShouldRunTransitPassOwnershipModel = $RUN_ALL
IncludeTransitPassOwnershipModel = true

AutoOwnershipModelCoefficients = coefficients/AutoOwnershipModel_psrcper1.f12
ShouldRunAutoOwnershipModel = $RUN_ALL

IndividualPersonDayPatternModelCoefficients = coefficients/IndividualPersonDayPatternModel_psrcper1.f12
IndividualPersonDayPatternModelCoefficients = coefficients/IndividualPersonDayPatternModel.f12
ShouldRunIndividualPersonDayPatternModel = $RUN_ALL

PersonExactNumberOfToursModelCoefficients = coefficients/PersonExactNumberOfToursModel_psrcper1.F12
PersonExactNumberOfToursModelCoefficients = coefficients/PersonExactNumberOfToursModel.F12
ShouldRunPersonExactNumberOfToursModel = $RUN_ALL

WorkTourDestinationModelSampleSize = 20
WorkTourDestinationModelCoefficients = coefficients/WorkTourDestinationModel_psrcper1.F12
ShouldRunWorkTourDestinationModel = $RUN_ALL

OtherTourDestinationModelSampleSize = 20
OtherTourDestinationModelCoefficients = coefficients/OtherTourDestinationModel_psrcper1.F12
OtherTourDestinationModelCoefficients = coefficients/OtherTourDestinationModel.F12
ShouldRunOtherTourDestinationModel = $RUN_ALL

WorkBasedSubtourGenerationModelCoefficients = coefficients/WorkbasedSubtourGenerationCoefficients_SACOG-v1.5.F12
WorkBasedSubtourGenerationModelCoefficients = coefficients/WorkBasedSubtourGenerationModel.F12
ShouldRunWorkBasedSubtourGenerationModel = $RUN_ALL

WorkTourModeModelCoefficients = coefficients/WorkTourModeModel_psrcper1.F12
WorkTourModeModelCoefficients = coefficients/WorkTourModeModel.F12
ShouldRunWorkTourModeModel = $RUN_ALL

SchoolTourModeModelCoefficients = coefficients/SchoolTourModeModel_psrcper1.F12
SchoolTourModeModelCoefficients = coefficients/SchoolTourModeModel.F12
ShouldRunSchoolTourModeModel = $RUN_ALL

WorkBasedSubtourModeModelCoefficients = coefficients/WorkBasedSubtourModeCoefficients_SACOG-v1.5.F12
WorkBasedSubtourModeModelCoefficients = coefficients/WorkBasedSubtourModeModel.F12
ShouldRunWorkBasedSubtourModeModel = $RUN_ALL

EscortTourModeModelCoefficients = coefficients/EscortTourModeModel_psrcper1.F12
EscortTourModeModelCoefficients = coefficients/EscortTourModeModel.F12
ShouldRunEscortTourModeModel = $RUN_ALL

OtherHomeBasedTourModeModelCoefficients = coefficients/OtherHomeBasedTourModeModel_psrcper1.F12
OtherHomeBasedTourModeModelCoefficients = coefficients/OtherHomeBasedTourModeModel.F12
ShouldRunOtherHomeBasedTourModeModel = $RUN_ALL

WorkTourTimeModelCoefficients = coefficients/WorkTourTimeModel_psrcper1.F12
WorkTourTimeModelCoefficients = coefficients/WorkTourTimeModel.F12
ShouldRunWorkTourTimeModel = $RUN_ALL

SchoolTourTimeModelCoefficients = coefficients/SchoolTourTimeModel_psrcper1.F12
SchoolTourTimeModelCoefficients = coefficients/SchoolTourTimeModel.F12
ShouldRunSchoolTourTimeModel = $RUN_ALL

OtherHomeBasedTourTimeModelCoefficients = coefficients/OtherHomeBasedTourTimeModel_psrcper1.F12
OtherHomeBasedTourTimeModelCoefficients = coefficients/OtherHomeBasedTourTimeModel.F12
ShouldRunOtherHomeBasedTourTimeModel = $RUN_ALL

WorkBasedSubtourTimeModelCoefficients = coefficients/WorkbasedSubtourTimeCoefficients_SACOG-v1.5.F12
WorkBasedSubtourTimeModelCoefficients = coefficients/WorkBasedSubtourTimeModel.F12
ShouldRunWorkBasedSubtourTimeModel = $RUN_ALL

IntermediateStopGenerationModelCoefficients = coefficients/IntermediateStopGenerationModel_psrcper1.F12
IntermediateStopGenerationModelCoefficients = coefficients/IntermediateStopGenerationModel.F12
ShouldRunIntermediateStopGenerationModel = $RUN_ALL

IntermediateStopLocationModelSampleSize = 20
IntermediateStopLocationModelCoefficients = coefficients/IntermediateStopLocationModel_psrcper1.F12
ShouldRunIntermediateStopLocationModel = $RUN_ALL

TripModeModelCoefficients = coefficients/TripModeModel_psrcper1.f12
TripModeModelCoefficients = coefficients/TripModeModel.f12
ShouldRunTripModeModel = $RUN_ALL

TripTimeModelCoefficients = coefficients/TripTimeModel_psrcper1.f12
TripTimeModelCoefficients = coefficients/TripTimeModel.f12
ShouldRunTripTimeModel = $RUN_ALL

# Path Impedance Parameters
Expand All @@ -247,9 +247,10 @@ PathImpedance_TransitInVehicleTimeWeight = 1.0
PathImpedance_TransitFirstWaitTimeWeight = 2.0
PathImpedance_TransitTransferWaitTimeWeight = 2.0
PathImpedance_TransitNumberBoardingsWeight = 8.0
PathImpedance_TransitNumberBoardingsWeight_Rail = 8.0
PathImpedance_TransitDriveAccessTimeWeight = 2.0
PathImpedance_TransitWalkAccessTimeWeight = 2.0
PathImpedance_WalkTimeWeight = 2.5
PathImpedance_WalkTimeWeight = 5.0
PathImpedance_BikeTimeWeight = 2.5
PathImpedance_WalkMinutesPerMile = 20.0
PathImpedance_TransitWalkAccessDistanceLimit = 1.0
Expand All @@ -258,14 +259,14 @@ PathImpedance_TransitSingleBoardingLimit = 1.1
PathImpedance_AutoTolledPathConstant = 0.0
PathImpedance_AvailablePathUpperTimeLimit = 200.0
PathImpedance_TransitLocalBusPathConstant = 0.00
PathImpedance_TransitPremiumBusPathConstant = 0.0
PathImpedance_TransitLightRailPathConstant = 0.05
PathImpedance_TransitPremiumBusPathConstant = 0.0
PathImpedance_TransitLightRailPathConstant = 0.035
PathImpedance_TransitCommuterRailPathConstant = 0.0
PathImpedance_TransitFerryPathConstant = 0.0
PathImpedance_TransitUsePathTypeSpecificTime = true

PathImpedance_TransitPremiumBusTimeAdditiveWeight = 0.00
PathImpedance_TransitLightRailTimeAdditiveWeight = -0.10
PathImpedance_TransitLightRailTimeAdditiveWeight = 0.00
PathImpedance_TransitCommuterRailTimeAdditiveWeight = -0.25
PathImpedance_TransitFerryTimeAdditiveWeight = -0.40
PathImpedance_BikeUseTypeSpecificDistanceFractions = false
Expand Down
64 changes: 64 additions & 0 deletions docs/input_checklist.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
exists,update from base year,folder,file,description
,y,4k,auto.h5,input for truck model
,y,4k,transit.h5,input for truck model
,y,4k,trips_auto_4k.h5,input for truck model
,y,4k,trips_transit_4k.h5,input for truck model
,y,bikes,bike_count_data.csv,observed bike count values intersected with network
,y,bikes,edges_0.txt,network attribute table
,y,bikes,emme_attr.in,link bike facilities and slope factors
,,etc,daysim_outputs_seed_trips.h5,
,,etc,survey.h5,base year survey
,y,Fares,am_fares_farebox.in,
,y,Fares,am_fares_monthly_pass.in,
,y,Fares,md_fares_farebox.in,
,y,Fares,md_fares_monthly_pass.in,
,y,Fares,transit_fare_zones.grt,
,,landuse,distribute_jblm_jobs.csv,
,,landuse,parcels_military.csv,
,y,landuse,hh_and_persons.h5,
,y,landuse,parcels_urbansim.txt,
,y,networks,x_roadway.in,"where x is time period (e.g., am)"
,y,networks,x_transit.in,"where x is time period (e.g., am)"
,y,networks,x_turns.in,"where x is time period (e.g., am)"
,y,networks,edges_y.*,"where y is 0 through 4, representing time period am through ni, several files associated with shapefile"
,y,networks,junctions.*,junction shapefile and related files
,?,networks,modes.txt,Emme mode string definitions
,?,networks,pnr_lot_capacities.in,
,y,networks,sc_headways.csv,
,?,networks,vehicles.txt,
,?,networks/rdly,x_rdly.txt,"where x is time period (e.g., am)"
,,seed_skims,x.h5,"where x is 12-hour time segment (e.g., 5to6.h5, 6to7.h5)"
,,shadow_pricing,shadow_prices.txt,
,,short_distance_files,node_index_2014.txt,
,,short_distance_files,node_to_node_distance_2014.h5,
,,short_distance_files,parcel_nodes_2014.txt,
,,.,transit_stops.csv,
,,tolls,x_roadway_tolls.in,"where x is time period (e.g., am)"
,,tolls,ferry_vehicle_fares.in,
,,trucks,medium_trucks_ie.in,
,,trucks,medium_trucks_ei.in,
,,trucks,medium_trucks_ee.in,
,,trucks,heavy_trucks_ie.in,
,,trucks,heavy_trucks_ei.in,
,,trucks,heavy_trucks_ee.in,
,,trucks,matrix_calc_spec.txt,
,y,trucks,tazdata.in,
,?,trucks,agshar.in,
,?,trucks,minshar.in,
,?,trucks,prodshar.in,
,?,trucks,equipshar.in,
,?,trucks,tcushar.in,
,?,trucks,whlsshar.in,
,,trucks,const.in,
,y,trucks,special_gen_medium_trucks.in,
,y,trucks,special_gen_heavy_trucks.in,
,n,supplemental/generation/rates,hh_triprates.in,
,n,supplemental/generation/rates,nonhh_triprates.in,
,n,supplemental/generation/ensembles,puma00.ens,
,y,supplemental/generation/landuse,tazdata.in,
,,supplemental/generation,externals.csv,
,,supplemental/generation/pums,pumshhxc_income-collegestudents.in,
,,supplemental/generation/pums,pumshhxc_income-k12students.in,
,,supplemental/generation/pums,pumshhxc_income-size-workers.in,
,,supplemental/generation/pums,pumshhxc_income-size-workers-vehicles.in,
,y,emme_configuration.py,spg_general demand dictionary,
46 changes: 30 additions & 16 deletions emme_configuration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
##################################### NETWORK IMPORTER ####################################
from input_configuration import *
##################################### NETWORK IMPORTER ####################################
import_shape = False # use network shape
project = 'Projects/LoadTripTables/LoadTripTables.emp'
network_summary_project = 'Projects/LoadTripTables/LoadTripTables.emp'
tod_networks = ['am', 'md', 'pm', 'ev', 'ni']
Expand All @@ -16,13 +18,14 @@
mode_file = 'modes.txt'
transit_vehicle_file = 'vehicles.txt'
base_net_name = '_roadway.in'
shape_name = '_link_shape.txt'
turns_name = '_turns.in'
transit_name = '_transit.in'
shape_name = '_link_shape_1002.txt'
no_toll_modes = ['s', 'h', 'i', 'j']
unit_of_length = 'mi' # units of miles in Emme
rdly_factor = .25
coord_unit_length = 0.0001894 # network links measured in feet, converted to miles (1/5280)
headway_file = 'sc_headways.csv'
headway_file = ''.join(['sc_headways_', scenario_name, '.csv'])

################################### SKIMS AND PATHS ####################################
log_file_name = 'skims_log.txt'
Expand Down Expand Up @@ -72,18 +75,26 @@
transit_node_attributes = {'headway_fraction' : {'name' : '@hdwfr', 'init_value': .5},
'wait_time_perception' : {'name' : '@wait', 'init_value': 2},
'in_vehicle_time' : {'name' : '@invt', 'init_value': 1}}
transit_node_constants = {'am':{'4943':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
transit_node_constants = {'2014':{'4943':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'4944':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'4945':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'4952':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'4960':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'4961':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'}},
'pm':{'4943':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'4944':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'4945':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'4952':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'4960':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'4961':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'}}}
'2025':{'5165':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'5166':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'5167':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'5168':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'5670':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'5671':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'}},
'2040':{'0041':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'0042':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'0043':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'0044':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'0055':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'0056':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'0057':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'},
'0058':{'@hdwfr': '.1', '@wait' : '1', '@invt' : '.70'}}}

transit_network_tod_dict = {'5to6' : 'am', '6to7' : 'am', '7to8' : 'am', '8to9' : 'am',
'9to10' : 'md', '10to14' : 'md', '14to15' : 'md',
Expand Down Expand Up @@ -134,26 +145,29 @@
taz_data_loc = '/supplemental/generation/landuse/tazdata.in'
pums_data_loc = '/supplemental/generation/pums/'
externals_loc = '/supplemental/generation/externals.csv'
special_gen_trips = 'inputs/supplemental/generation/special_generators.csv'
airport_zone_list = [983] # zone numbers for airport special generator
# Special generator zones and demand (dictionary key is TAZ, value is demand)
spg_general = {3110: 1682,
631: 7567,
438: 14013}
spg_airport = {983: 101838}
# spg_general = {3110: 1682,
# 631: 7567,
# 438: 14013}
# spg_airport = {983: 101838}

# Using one AM and one PM time period to represent AM and PM skims
am_skim_file_loc = 'inputs/7to8.h5'
pm_skim_file_loc = 'inputs/17to18.h5'
trip_table_loc = 'outputs/prod_att.csv'
trip_table_loc = 'outputs/supplemental/prod_att.csv'
output_dir = 'outputs/supplemental/'
ext_spg_dir = 'outputs/supplemental/ext_spg'
gq_directory = 'outputs/supplemental/group_quarters'
gq_trips_loc = 'outputs/gq_prod_att.csv'
gq_trips_loc = 'outputs/supplemental/gq_prod_att.csv'
supplemental_project = 'projects/supplementals/supplementals.emp'
# Iterations for fratar process in trip distribution
bal_iters = 5
# Define gravity model coefficients
autoop = 16.75 # Auto operation costs (in hundreds of cents per mile?)
avotda = 0.0303 # VOT
airport_control_total = {'2014' : 101838, '2020' : 130475, '2025' : 149027, '2030' : 170216, '2035' : 189617, '2040' : 211228}

# Change modes for toll links
toll_modes_dict = {'asehdimjvutbpfl' : 'aedmvutbpfl', 'asehdimjvutbpwl' : 'aedmvutbpwl', 'ahdimjbp' : 'admbp'}
Loading

0 comments on commit 96a69c3

Please sign in to comment.