Skip to content

Commit b67647c

Browse files
committed
add lon,lat to x,y explanation
1 parent 99ba0e8 commit b67647c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ships_hybrid_algorithm/config/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ You need x,y to have the same ratio aspect as the lon,lat of your map. For exemp
3636
4. Ratio is :
3737
$R \approx \cos(\phi_0)\cdot \frac{\Delta lon}{\Delta lat}$
3838
5. Now you have : $x = y \times R$
39+
40+
## How to convert lon,lat to x,y
41+
42+
You have defined width and height of the map. You also have min and max lon,lat of the map in decimal degrees.
43+
$x=\frac{\text{lon}-\text{min\_lon}}{\text{max\_lon}-\text{min\_lon}}\cdot \text{width},\quad y=\frac{\text{lat}-\text{min\_lat}}{\text{max\_lat}-\text{min\_lat}}\cdot \text{height}$

0 commit comments

Comments
 (0)