Commit d30d2b5d authored by Samuel's avatar Samuel
Browse files

arguments added

parent b79c865a
# .idea folder # .idea folder
.idea/ .idea/
# Output folder
Output/
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]
......
import os import os
import argparse
import data.survey.cantonal_authorities import data.survey.cantonal_authorities
import data.survey.wwtp import data.survey.wwtp
import data.spatial.cantons import data.spatial.cantons
...@@ -17,7 +19,17 @@ if __name__ == '__main__': ...@@ -17,7 +19,17 @@ if __name__ == '__main__':
"""Reads geospatial and survey data and adds it to an easily accessable DataSet object. Generates input for """Reads geospatial and survey data and adds it to an easily accessable DataSet object. Generates input for
abm_prototype.model.""" abm_prototype.model."""
parser = argparse.ArgumentParser()
parser.add_argument('input_folder', help = 'Input folder with required data')
parser.add_argument('output_folder', help = 'Output folder for data analysis and model output')
parser.add_argument('output_crs', type = str, help = 'Output coordinate reference system, EPSG number')
args = parser.parse_args()
config = config.Config() config = config.Config()
config.input_folder = args.input_folder
config.output_folder = args.output_folder
config.output_crs = 'epsg:{0}'.format(args.output_crs)
dataset = data.dataset.Dataset() dataset = data.dataset.Dataset()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment