-
Notifications
You must be signed in to change notification settings - Fork 11
/
run.py
38 lines (34 loc) · 1007 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import sys
sys.path.insert(0, "../utils")
from geoutils import run_cmd
import argparse
parser = argparse.ArgumentParser(
description="Download preprocess and rollout model on specific area"
)
parser.add_argument(
"--area",
type=str,
default="itagui",
help="municipality in utils/gee_settings.py",
)
parser.add_argument(
"--start",
type=int,
default=2021,
help="year to start collecting satellite images for rollout, exact date will be made Jan 1, {year}",
)
parser.add_argument(
"--end",
type=int,
default=2021,
help="year to end collecting satellite images for rollout, exact date will be made Dec 31, {year}",
)
if __name__ == "__main__":
args = parser.parse_args()
run_cmd(
f"python src/download.py --area={args.area} --start={args.start} --end={args.end}"
)
run_cmd(
f"python src/preprocess.py --area={args.area} --start={args.start} --end={args.end}"
)
run_cmd(f"python src/predict.py --area={args.area}")