Skip to content

Preprocessor Setup

Scott Morken edited this page May 16, 2018 · 3 revisions

preprocessorsetup.py

Non Standard Python Dependencies

none

Description

Prepares workings directory by copying in external data and tools from network drive. Uses the path registry to determine locations of files

Args

  • pathRegistry - specifies various input and output paths for the process
  • subRegionConfig - sub region specific data
  • subRegionNames - optional comma delimited string specifying subregion names to process. Names are defined in subregion config
  • flags - optional flag whose presence indicates to prepare specified inputs:
    • spatial - copy all external spatial data to the working directory
    • aspatial - copy all aspatial data to the working directory
    • tools - copy all tools to working directory
    • future - copy future scenario data to the to each sub region's pre-tiled layers directory
    • postgis - prompt for set up of postgis url and pasword

example command

python ..\preprocessorsetup.py --pathRegistry .\pathRegistry.json --subRegionConfig .\subRegionConfig.json --subRegionNames "Boundary" --spatial --aspatial --tools --future --postgis

This command will set up the working directory specified in the path registry with spatial, aspatial, tools, and future scenarios in place

possible development tasks:

  • comparison: add code to detect whether data on network is identical to the data in the working directory
  • generalization: cloud, or non-mapped directory support

Clone this wiki locally