Skip to content

Commit 796cbbd

Browse files
committed
Add README.md for config
1 parent cc5aa2d commit 796cbbd

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# CONFIG
2+
3+
Config file for Ship Movement Model
4+
5+
## Parameters
6+
7+
* simulation_steps -> Number of steps (seconds) of the simulation
8+
* max_speed_range -> Max speed of the ship in this range (random)
9+
* speed_variation -> if enabled, the maximum delta between targeted speed and real speed
10+
* directional_variation -> if enabled, ship heading can be deviated
11+
* resolution -> increase for less compute time, but ships can be stuck
12+
* obstacle_threshold -> how close a ship can approach an obstacle
13+
14+
* ports [x,y] -> coordinates of the port, in grid coordinates
15+
* speed_limit_zone[x,y] -> coordinates and max speed of a speed limit zone, in grid coordinates
16+
* obstacle [[x1,y1],...,[xn,yn]] -> coordinates of an obstacle, in grid coordinates
17+
18+
* geospatial_bounds -> min and max lat/lon of the map, in decimal degrees
19+
20+
21+
## How to have accurate obstacle coordinates
22+
23+
1. Install and open qgis (https://qgis.org/)
24+
2. Create project. Specify EPSG 4326 (WGS 84)
25+
3. Install QuickOSM plugin
26+
4. Using QuickOSM quick request, request KEY=boundaries and VALUE=administrative. You can filter to have only relevant boundaries
27+
5. Now you will have polygons' coordinates with your obstacle. Convert them in grid coordinates and use them in configV2.json
28+
29+
## My map is distorded
30+
31+
You need x,y to have the same ratio aspect as the lon,lat of your map. For exemple :
32+
33+
1. Get min/max lon/lat of your area (in degrees)
34+
2. Decide height of the map in grid coordinates (eg, 500)
35+
3. Get the "mean latitude" of your map (eg, $\phi_0$).
36+
4. Ratio is :
37+
$$
38+
R \approx \cos(\phi_0)\cdot \frac{\Delta lon}{\Delta lat}
39+
$$
40+
5. Now you have : $x = y \times R$

0 commit comments

Comments
 (0)