-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
32 lines (26 loc) · 830 Bytes
/
config.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
import os
# Grabs the folder where the script runs.
basedir = os.path.abspath(os.path.dirname(__file__))
# Enable debug mode.
DEBUG = True
# DPI properties
DPI = 96
# Secret key for session management. You can generate random strings here:
# https://randomkeygen.com/
SECRET_KEY = 'my precious'
# Defaults - self-explanatory
DEFAULT_MAP = [30, 0, 45, 40]
DEFAULT_ROUTE = [43.5, 7.2, 33.8, 35.5]
DEFAULT_BOAT = 'data/polar-ITA70.csv'
DEFAULT_GFS_DATETIME = '2020111607'
DEFAULT_GFS_HOUR = '06'
DEFAULT_GFS_FCST = '000'
DEFAULT_GFS_RESOLUTION = '1p00'
DEFAULT_GFS_FILE = 'data/2019122212/2019122212f000'
DEFAULT_GFS_MODEL = '2020111600'
# Isochrone routing parameters
ROUTER_HDGS_SEGMENTS = 180
ROUTER_HDGS_INCREMENTS_DEG = 1
ISOCHRONE_EXPECTED_SPEED_KTS = 8
ISOCHRONE_PRUNE_SECTOR_DEG_HALF = 90
ISOCHRONE_PRUNE_SEGMENTS = 180