# AIS Interpretation Needed

**URL:** <https://forum.gcaptain.com/t/ais-interpretation-needed/59708>\
**Category:** Professional Mariner Forum\
**Created:** [June 11, 2021, 8:26pm UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708 "2021-06-11T20:26:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Earl\_Boebert1](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.gcaptain.com/earl_boebert1/32/116_2.png) [@Earl\_Boebert1](https://forum.gcaptain.com/u/Earl_Boebert1)\
**Post date:** [June 11, 2021, 8:26pm UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708/1 "2021-06-11T20:26:44Z")

</div>

I am looking at an AIS printout that shows a Course Over Ground of 2665 and a Heading of 511. How do I convert those to degrees? (There’s an obvious guess but I want to be sure).

Thanks in advance.

Cheers,

Earl

---

<div class="post-metadata">

**Author:** ![Kennebec\_Captain](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.gcaptain.com/kennebec_captain/32/13_2.png) [@Kennebec\_Captain](https://forum.gcaptain.com/u/Kennebec_Captain)\
**Post date:** [June 11, 2021, 8:51pm UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708/2 "2021-06-11T20:51:43Z")

</div>

Looks like 2665 is 266.5 degrees and 511 indicates “not available” .

| COG | 12 | Course over ground in 1/10 = (0-3599). 3600 (E10h) = not available = default. 3 601-4 095 should not be used |
| --- | --- | --- |
| True heading | 9 | Degrees (0-359) (511 indicates not available = default) |

From here:

[https://www.navcen.uscg.gov/?pageName=AISMessagesA](https://www.navcen.uscg.gov/?pageName=AISMessagesA)

---

<div class="post-metadata">

**Author:** ![Earl\_Boebert1](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.gcaptain.com/earl_boebert1/32/116_2.png) [@Earl\_Boebert1](https://forum.gcaptain.com/u/Earl_Boebert1)\
**Post date:** [June 11, 2021, 10:54pm UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708/3 "2021-06-11T22:54:36Z")

</div>

Great. Thanks.

Cheers,

Earl

---

<div class="post-metadata">

**Author:** ![powerabout](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@powerabout](https://forum.gcaptain.com/u/powerabout)\
**Post date:** [June 12, 2021, 1:17am UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708/4 "2021-06-12T01:17:46Z")

</div>

is it radians which is how all computers deal with degrees?

---

<div class="post-metadata">

**Author:** ![Kennebec\_Captain](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.gcaptain.com/kennebec_captain/32/13_2.png) [@Kennebec\_Captain](https://forum.gcaptain.com/u/Kennebec_Captain)\
**Post date:** [June 12, 2021, 11:32am UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708/5 "2021-06-12T11:32:25Z")

</div>

I understand that’s correct that computer languages do use radians but an AIS would not be using raw GPS data but instead NEMA sentences, examples of which can be easily found on the internet.

Anyway, looks too big to be radians, 2pi = 360 degrees.

I was actually looking into this a couple weeks ago when I put together a DIY GPS receiver. It uses software from “TinyGPS”. Here’s a sample:

> `// retrieves +/- lat/long in 100000ths of a degree`
> 
> `gps.get_position(&lat, &lon, &fix_age);`
> 
> `// time in hhmmsscc, date in ddmmyy`
> 
> `gps.get_datetime(&date, &` `time` `, &fix_age);`
> 
> `// returns speed in 100ths of a knot`
> 
> `speed = gps.speed();`
> 
> `// course in 100ths of a degree`
> 
> `course = gps.course();`

---

<div class="post-metadata">

**Author:** ![powerabout](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@powerabout](https://forum.gcaptain.com/u/powerabout)\
**Post date:** [June 12, 2021, 1:20pm UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708/6 "2021-06-12T13:20:54Z")

</div>

Nice one Captain…  
Agreed the output from a gps chip is nmea but how about the gyro input and or any calculation the ais is making assuming we are talking a class A, when it has to process the data to calculate a collision using vectors or ?  
A DP system has to take nmea input because of the rules but internal calculations are in radians as when you edit alarms etc its in radians

---

<div class="post-metadata">

**Author:** ![Urs](https://avatars.discourse-cdn.com/v4/letter/u/958977/32.png) [@Urs](https://forum.gcaptain.com/u/Urs)\
**Post date:** [June 12, 2021, 2:35pm UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708/7 "2021-06-12T14:35:13Z")

</div>

OK, but this is not a problem.

I wrote a large geographic and astronomic program, all in- or output is indeed in degrees, while all calculations are in radians.

Therefore, the input is immediately transformed into radians by multiplying with a constant.  
Only when the final result is present in radians, it is multiplied with another constant for output.

Public Const cDegToRad As Double = 1.74532925199433E-02  
Public Const cRadToDeg As Double = 57.2957795130824

Against the huge formulae used, these two simple multiplications are… just nothing.

---

<div class="post-metadata">

**Author:** ![Kennebec\_Captain](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.gcaptain.com/kennebec_captain/32/13_2.png) [@Kennebec\_Captain](https://forum.gcaptain.com/u/Kennebec_Captain)\
**Post date:** [June 13, 2021, 11:11am UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708/8 "2021-06-13T11:11:14Z")

</div>

I can’t think of any technical reason why a NMEA network couldn’t or wouldn’t use radians, of course I don’ t know much about it beyond loading/saving GPS waypoints with Waypoint for Windows (and my DIY GPS project). Degrees are a little more user-friendly for mariners.

I suppose 511 could mean 5.11 radians which would be 292.8 degrees but the manual says it means “not available”.

---

<div class="post-metadata">

**Author:** ![powerabout](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@powerabout](https://forum.gcaptain.com/u/powerabout)\
**Post date:** [June 13, 2021, 12:55pm UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708/9 "2021-06-13T12:55:41Z")

</div>

I would guess data on the nmea network will only be degrees as its a standard for all devices to use the data.  
Internally anything that does calculation most likely would be radians but can you get that data out?

---

<div class="post-metadata">

**Author:** ![Earl\_Boebert1](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.gcaptain.com/earl_boebert1/32/116_2.png) [@Earl\_Boebert1](https://forum.gcaptain.com/u/Earl_Boebert1)\
**Post date:** [June 13, 2021, 2:14pm UTC](https://forum.gcaptain.com/t/ais-interpretation-needed/59708/10 "2021-06-13T14:14:42Z")

</div>

Off topic, because the link to the manual answered my question, but decimal 511 is nine ones in binary, so a likely exception/flag code for somebody programming “down in the weeds.”

Cheers,

Earl
