Yangtze river estuary collision risk distribution
Geojson data for the channel of Yangtze River(Polygon)
The channel of Yangtze River(Polygon)
-
_Time
- ParseTime.py
"%Y-%m-%d %H:%M:%S" -> datetime(year, month, day, hour, minute, second)
- TimeStamp.py
date_range(start, step, end)
- ParseTime.py
-
Area
-
Grid.py
class Grid
- area_id: grid index(网格编号)
- gridlon_:
np.arange(120, 126, 0.5)
(网格经度范围) - gridlat_:
np.arange(30, 36, 0.5)
(网格纬度范围) - griddelta:
0.5
(网格间隔)
-
Vessel.py
class Vessel(Grid)
- args:
-
|————MMSI |————TIME AIS ————|————LON |————LAT |————COG |————SOG
-
- area_id: same as Grid.area_id
- gridlon_: same as Grid.gridlon_
- gridlat_: same as Grid.gridlat_
- griddelta_: same as Grid.delta_
- args:
-
-
CPA
-
DataProcess
- channel_geojson Geojson data for the channel of Yangtze River(Polygon)
- Meta_Data Meta_Data queried from the mongodb database(csv format)
- Final_Data_Result The final result!(csv format)
- SourceData.py
- Store the grid and list of ships in the grid(创建网格,将AIS数据按TIME存入grid中)
- FinalData.py
- Call the method in CPA.DCPA_TCPA, return the final result (调用CPA.DCPA_TCPA中有关方法,计算最终结果)
- data_process.py
- store result in the Final_Data_Result folder (计算结果存入Final_Data_Result文件夹)
-
ShipDataInsert
- Insert the AIS data into the mongodb database
-
ShipDataQuery
- Query the AIS data from the mongodb database and store it in "../../DataProcess/Meta_Data"
-
main.py
- use
cartopy module
to draw Yangtze river estuary collision risk distribution
- use
Author: LPH,TIME: 2019年06月28日 下午15:15
Address 上海海事大学(Shanghai maritime university)
Email 664104221@qq.com