Tracking utility functions¶
- marine_qc.track_check_utils.increment_position(alat1, alon1, avs, ads, timediff)[source]
Compute latitude and longitude increments over half a time interval.
This function takes latitudes and longitude, a speed, a direction and a time difference and returns increments of latitude and longitude which correspond to half the time difference.
- Parameters:
alat1 (
SequenceNumberType) – One-dimensional array of Latitude at starting point in degrees.alon1 (
SequenceNumberType) – One-dimensional array of Longitude at starting point in degrees.avs (
SequenceNumberType) – One-dimensional array of speed of ship in km/h.ads (
SequenceNumberType) – One-dimensional array of heading of ship in degrees.timediff (
SequenceNumberType) – One-dimensional array of time difference between the points in hours.
- Return type:
- Returns:
1D np.ndarrayoffloat– Returns latitude and longitude increment or None and None if timediff is None.