-
Notifications
You must be signed in to change notification settings - Fork 2
/
definitions.py
31 lines (29 loc) · 1.04 KB
/
definitions.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
import os
# Local
B2P_DIR = os.path.abspath(os.path.dirname(__file__))
DATA_DIR = os.path.join(B2P_DIR, 'data')
REGION_FILE_PATH = os.path.join(DATA_DIR, 'region_info.yaml')
COMPOSITE_DIR = os.path.join(DATA_DIR, 'composites')
TILE_DIR = os.path.join(DATA_DIR, 'tiles')
MULTI_REGION_TILE_MATCH = os.path.join(DATA_DIR, 'multi_region_tile_match')
TRAIN_VALIDATE_SPLIT_DIR = os.path.join(TILE_DIR, 'train_validate_splits')
TRUTH_DIR = os.path.join(DATA_DIR, 'ground_truth')
SENTINEL_2_DIR = os.path.join(DATA_DIR, 'sentinel2')
ELEVATION_DIR = os.path.join(DATA_DIR, 'elevation')
SLOPE_DIR = os.path.join(DATA_DIR, 'slope')
MODEL_DIR = os.path.join(DATA_DIR, 'trained_models')
INFERENCE_RESULTS_DIR = os.path.join(DATA_DIR, 'inference_results')
OSM_DIR = os.path.join(DATA_DIR, 'osm')
SECRETS_FILE_PATH = os.path.join(B2P_DIR, 'secrets.yaml')
MGRS_INDEX_FILE = os.path.join(DATA_DIR, 'mgrs_index.json')
# Order of data cube layers
LAYER_TO_IX = [
'red',
'green',
'blue',
'nir',
'osm-water',
'osm-boundary',
'elevation',
'slope'
]