next up previous index
Next: Design Questions, Decisions, and Up: How To Previous: Running a Python Script   Index

Creating a Baseyear Database that Contains just a Portion of a Baseyear Database

It sometimes is convenient to have a small subset of a baseyear that you can use for testing whether the system is behaving appropriately. We have a tool to create such as subset by giving either the city or county name. It's a bit hard coded to the PSRC use, but you can modify it for your application. TODO: Clean up this module so that it isn't hard coded to PSRC.

Use the create_database_subset_by_city_or_county.py module in urbansim.tools. Fill in input database name near the bottom (for example, PSRC_2000_baseyear). Edit the values of the DB_server_setting to be your values. Then execute this module with an argument that is a city name or a county name. To create a subset of Seattle, only, use the command:

> python create_database_subset_by_city_or_county.py city seattle


next up previous index
Next: Design Questions, Decisions, and Up: How To Previous: Running a Python Script   Index
info (at) urbansim.org