Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Liliane Manny
ABM_prototype_2020_case_study
Commits
d30d2b5d
Commit
d30d2b5d
authored
Jan 18, 2021
by
Samuel
Browse files
arguments added
parent
b79c865a
Changes
2
Show whitespace changes
Inline
Side-by-side
.gitignore
View file @
d30d2b5d
# .idea folder
.idea/
# Output folder
Output/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
...
...
case_study.py
View file @
d30d2b5d
import
os
import
argparse
import
data.survey.cantonal_authorities
import
data.survey.wwtp
import
data.spatial.cantons
...
...
@@ -17,7 +19,17 @@ if __name__ == '__main__':
"""Reads geospatial and survey data and adds it to an easily accessable DataSet object. Generates input for
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
.
input_folder
=
args
.
input_folder
config
.
output_folder
=
args
.
output_folder
config
.
output_crs
=
'epsg:{0}'
.
format
(
args
.
output_crs
)
dataset
=
data
.
dataset
.
Dataset
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment