# Opus/UrbanSim urban simulation software.
# Copyright (C) 2005-2009 University of Washington
# See opus_core/LICENSE

# script to produce a number of PSRC indicators --
# this illustrates using traits-based configurations programatically

from urbansim.indicators.indicator_configuration import IndicatorConfiguration
from urbansim.indicators.indicator_configuration_handler_batch_mode import generate_indicators
from opus_core.configurations.dataset_description import DatasetDescription

config = IndicatorConfiguration()

# *** Set up database ***
# use the defaults for mysql hostname, username, and password
# (the defaults are to get these from environment variables)
config.database_configuration.database_name = 'PSRC_2000_baseyear'

# single_year_requests are indicators that are computed for a particular year.
# We give a list of years in single_year_years (is there a better name??)
# The idea is that we'll get a map of psrc.large_area.population, for example,
# for 2000 and another map for 2010.
#
# Note the syntax for specifying the indicators when the indicator name includes the year
# (the substring DDDD will be replaced by the year)
config.single_year_years = [2025]
config.single_year_requests = [
    # absolute value
    #
    #               {'dataset':'gridcell',
    #                'image_type':'openev_map',
Exemple #2
0
# Opus/UrbanSim urban simulation software.
# Copyright (C) 2010-2011 University of California, Berkeley, 2005-2009 University of Washington
# See opus_core/LICENSE

# script to produce a number of PSRC indicators -- 
# this illustrates using traits-based configurations programatically


from urbansim.indicators.indicator_configuration import IndicatorConfiguration
from urbansim.indicators.indicator_configuration_handler_batch_mode import generate_indicators
from opus_core.configurations.dataset_description import DatasetDescription

config = IndicatorConfiguration()

# *** Set up database ***
# use the defaults for mysql hostname, username, and password 
# (the defaults are to get these from environment variables)
config.database_configuration.database_name = 'PSRC_2000_baseyear'

#config.cache_directory = r'X:\urbansim_cache\run_1847.2007_01_15_15_23'
#config.run_description = '(run 1847 - no UGB 1/17/2007)'
#config.cache_directory = r'X:\urbansim_cache\run_1848.2007_01_15_15_40'
#config.run_description = '(run 1848 - no UGB+1.5xhighway 1/17/2007)'
#config.cache_directory = r'X:\urbansim_cache\run_1849.2007_01_15_16_09'
#config.run_description = '(run 1849 - baseline 1/17/2007)'
#config.cache_directory = r'V:\psrc\run_1850.2007_01_15_17_03'
#config.run_description = '(run 1850 - baseline 1/17/2007)'
#config.cache_directory = r'V:\psrc\run_1851.2007_01_15_17_07'
#config.run_description = '(run 1851 - no build 1/17/2007)'

# Opus/UrbanSim urban simulation software.
# Copyright (C) 2005-2009 University of Washington
# See opus_core/LICENSE

# script to produce a number of PSRC indicators --
# this illustrates using traits-based configurations programatically


from urbansim.indicators.indicator_configuration import IndicatorConfiguration
from urbansim.indicators.indicator_configuration_handler_batch_mode import generate_indicators
from opus_core.configurations.dataset_description import DatasetDescription

config = IndicatorConfiguration()

# *** Set up database ***
# use the defaults for mysql hostname, username, and password
# (the defaults are to get these from environment variables)
config.database_configuration.database_name = "PSRC_2000_baseyear"

# config.cache_directory = r'X:\urbansim_cache\run_1847.2007_01_15_15_23'
# config.run_description = '(run 1847 - no UGB 1/17/2007)'
# config.cache_directory = r'X:\urbansim_cache\run_1848.2007_01_15_15_40'
# config.run_description = '(run 1848 - no UGB+1.5xhighway 1/17/2007)'
# config.cache_directory = r'X:\urbansim_cache\run_1849.2007_01_15_16_09'
# config.run_description = '(run 1849 - baseline 1/17/2007)'
# config.cache_directory = r'V:\psrc\run_1850.2007_01_15_17_03'
# config.run_description = '(run 1850 - baseline 1/17/2007)'
# config.cache_directory = r'V:\psrc\run_1851.2007_01_15_17_07'
# config.run_description = '(run 1851 - no build 1/17/2007)'

Exemple #4
0
# Opus/UrbanSim urban simulation software.
# Copyright (C) 2010-2011 University of California, Berkeley, 2005-2009 University of Washington
# See opus_core/LICENSE

# script to produce a number of PSRC indicators -- 
# this illustrates using traits-based configurations programatically


from urbansim.indicators.indicator_configuration import IndicatorConfiguration
from urbansim.indicators.indicator_configuration_handler_batch_mode import generate_indicators
from opus_core.configurations.dataset_description import DatasetDescription

config = IndicatorConfiguration()

# *** Set up database ***
# use the defaults for mysql hostname, username, and password 
# (the defaults are to get these from environment variables)
config.database_configuration.database_name = 'PSRC_2000_baseyear'


# single_year_requests are indicators that are computed for a particular year.
# We give a list of years in single_year_years (is there a better name??)
# The idea is that we'll get a map of psrc.large_area.population, for example,
# for 2000 and another map for 2010.
#
# Note the syntax for specifying the indicators when the indicator name includes the year
# (the substring DDDD will be replaced by the year)
config.single_year_years = [2025]
config.single_year_requests = [
                # absolute value
#
# Opus/UrbanSim urban simulation software.
# Copyright (C) 2005-2009 University of Washington
# See opus_core/LICENSE

# script to produce a number of PSRC indicators --
# this illustrates using traits-based configurations programatically

from urbansim.indicators.indicator_configuration import IndicatorConfiguration
from urbansim.indicators.indicator_configuration_handler_batch_mode import generate_indicators
from opus_core.configurations.dataset_description import DatasetDescription

config = IndicatorConfiguration()

# *** Set up database ***
# use the defaults for mysql hostname, username, and password
# (the defaults are to get these from environment variables)
config.database_configuration.database_name = 'PSRC_2000_baseyear'

#config.cache_directory = r'X:\urbansim_cache\run_1847.2007_01_15_15_23'
#config.run_description = '(run 1847 - no UGB 1/17/2007)'
#config.cache_directory = r'X:\urbansim_cache\run_1848.2007_01_15_15_40'
#config.run_description = '(run 1848 - no UGB+1.5xhighway 1/17/2007)'
#config.cache_directory = r'X:\urbansim_cache\run_1849.2007_01_15_16_09'
#config.run_description = '(run 1849 - baseline 1/17/2007)'
#config.cache_directory = r'V:\psrc\run_1850.2007_01_15_17_03'
#config.run_description = '(run 1850 - baseline 1/17/2007)'
#config.cache_directory = r'V:\psrc\run_1851.2007_01_15_17_07'
#config.run_description = '(run 1851 - no build 1/17/2007)'

#config.use_cache_directory_for_output = True
#