Code Monkey home page Code Monkey logo

ais_collision's Introduction

AIS_Collision

Yangtze river estuary collision risk distribution


Geojson data for the channel of Yangtze River(Polygon)

The channel of Yangtze River(Polygon)

Code Structure

  • _Time

    • ParseTime.py "%Y-%m-%d %H:%M:%S" -> datetime(year, month, day, hour, minute, second)
    • TimeStamp.py date_range(start, step, end)
  • 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_
  • CPA

    • DCPA_TCPA.py

      • distance method: distance between tar_ship and ref_ship(目标船与参考船之间的距离)
      • mid_point method: the half-way point along a great circle path between the two vessels(目标船与参考船之间中点地理位置)
      • bearing method: initial bearing(方位)
      • cpa method: return DCPA, TCPA(计算两船在同一AIS时刻下的DCPA和TCPA)
  • 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

未完待续...

Author: LPH,TIME: 2019年06月28日 下午15:15

Address 上海海事大学(Shanghai maritime university)

Email [email protected]

ais_collision's People

Contributors

ginlph avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.