-
Notifications
You must be signed in to change notification settings - Fork 19
/
params_GLOBAL_2.py
65 lines (49 loc) · 1.66 KB
/
params_GLOBAL_2.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 29 23:10:59 2020
This code is part of SIMROUTE
@author: manel grifoll (UPC-BarcelonaTech)
"""
import numpy as np
from pathlib import Path
import matplotlib.pyplot as plt
#Simulation name
name_Simu='KAOHS_BUSAN'
#Mesh boundaries
LonMin=119.0
LonMax=132.0
LatMin=21.5
LatMax=35.0
#Grid-step in Miles
inc=1.5 #in nautical miles
# Initial node in mesh:
nodIni=12588
# Final node in mesh:
nodEnd=279662
#ARX=[ 'Waves_GLOBAL_20190804.nc' , 'Waves_GLOBAL_20190805.nc' , 'Waves_GLOBAL_20190806.nc' , 'Waves_GLOBAL_20190806.nc' , 'Waves_GLOBAL_20190807.nc' , 'Waves_GLOBAL_20190808.nc', 'Waves_GLOBAL_20190809.nc','Waves_GLOBAL_20190810.nc']
ARX=['Waves_GLOBAL_20190808.nc','Waves_GLOBAL_20190809.nc','Waves_GLOBAL_20190810.nc']
dir_arx='storeWaves/'
#Time resolution of CMEMS product:
time_res=3 # In hours: 1 for all regions except o 3 for the GLOBAL
#Wave interpolated file (output):
arx_waves= 'in/waves.npz'
#Initial start time of sailing from 00:00 (from 0 to 23 hours)
t_ini= 4
#coastline source file:
arx_ldc= 'in/lcd_eu_h.dat'
#coastline name output:
# lcd_out= 'in/ldcK1.npz'
#Sailing velocity (in knots)
v0=16.1 # Cruising speed in nautical milles per hour (in knots)
#Formulation WEN (Wave Effect on Navigation)
#Bowditch = 1; Aertessen = 2; Khokhlov = 3; no reduction = 4
WEN_form=2;
#Ship parameteres for WEN options 2 and 3.
Lbp = 225; # ship's length between perpendiculars (in meters)
DWT = 8000; # ship's deadweight (in tons)
#Additional plot flags:
plot_nodes=1 #Yes=1 ; No=0
plot_waves=1 #Yes=1 ; No=0
plot_routes=1 #Yes=1 ; No=0
# END OF USER INPUTS #######################