NMEA0183 ASCII log files
NMEA0183 log files are files where NMEA0183 data is recorded from devices like GPS and echo sounders.
Instead of sending the data directly to Hydromagic in real time, the data is recorded on, for instance, an SD-Card.
This method is often used on USV's (unmanned survey vessels) when it is not possible to establish a direct link to the shore.
In these cases, the data is stored on an onboard SD-Card or another removable storage device.
$GPGGA,222525.20,6804.42753000,N,16251.36499361,W,2,08,1.1,305.895,M,2.577,M,1.2,0029*6D $GPVTG,240.20,T,,M,0.24,N,0.44,K,D*3A $SDDBT,0.91,f,0.28,M,0.15,F*30 $SDDBT,0.91,f,0.28,M,0.15,F*30 $GPGGA,222525.40,6804.42750707,N,16251.36503441,W,2,08,1.1,306.227,M,2.577,M,1.4,0029*69 $GPVTG,236.70,T,,M,0.23,N,0.43,K,D*3E $SDDBT,0.91,f,0.28,M,0.15,F*30 $HCHDG,312.5,,,,*47 $SDDBT,0.91,f,0.28,M,0.15,F*30 $GPGGA,222525.60,6804.42748134,N,16251.36507432,W,2,08,1.1,306.555,M,2.577,M,1.6,0029*64 $GPVTG,227.46,T,,M,0.24,N,0.44,K,D*3B $SDDBT,0.91,f,0.28,M,0.15,F*30 $SDDBT,0.91,f,0.28,M,0.15,F*30 $GPGGA,222525.80,6804.42746479,N,16251.36504080,W,2,08,1.1,306.793,M,2.577,M,1.8,0029*60 $GPVTG,222.82,T,,M,0.23,N,0.43,K,D*36 $SDDBT,0.91,f,0.28,M,0.15,F*30 $SDDBT,0.91,f,0.28,M,0.15,F*30 $HCHDG,312.5,,,,*47 $GPGGA,222526.00,6804.42745489,N,16251.36500786,W,2,09,1.1,306.908,M,2.577,M,2.0,0029*64Content of a NMEA0183 log file (5 Hz position interval / 10 Hz depth interval)
Timing errors with NMEA0183 logs
However, there is a significant drawback when using NMEA0183 log files: Because depth records aren't timestamped in NMEA0183, it's impossible to determine the actual time difference between the position and depth data, which may cause the depth positions to shift. When the position update interval is low errors can be up to several meters which makes the data inaccurate.
When the data is processed by Hydromagic, this problem doesn't occur because the incoming data is timestamped as soon as it is received.
You can easily calculate the maximum error of the depth positions in NMEA0183 imports by dividing the speed in meters per second by the position data interval. When your USV is going 5 kilometer per hour, this means the maximum error with a position update of 1 Hz can be:
5 Km/h = 3.1 Mph = 1.39 meter per second divided by 1 update per second (1Hz) = 1.39 meter max position error
To fix this issue, set the NMEA0183 sentences containing a timestamp to a higher output rate. Hydromagic can parse time synchronization data from either GGA or ZDA sentences. When one of these sentences is set to an output rate of for instance 10Hz, the error is becoming acceptable:
5 Km/h = 3.1 Mph = 1.39 meter per second divided by 10 updates per second (10Hz) = 0.139 meter max position error
Starting the raw data import wizard
All file formats which Hydromagic is able to convert to raw data files, can be imported using the raw data import wizard. To start the wizard, right-click the 'Raw Data' folder in the 'Project Explorer' and select the 'Import Data Wizard...' option from the popup menu that appears.
Right click the "Raw Data" folder and select "Import Data Wizard...".
Select file format
The first page of the wizard allows you to set the format of the file(s) we wish to import. Since this tutorial is about importing NMEA0183 data, select the 'NMEA0183 ASCII Log Files (.)' option from the drop-down list.
Select the "NMEA0183 ASCII Log Files" option from the drop-down list.
Select file(s) to import
On the second page of the wizard, you can select which files to import. Click the 'Browse...' button to select the folder on your computer where the files are stored.
After changing the folder, the file list is reloaded, and you can use the checkboxes to select one or more files to import.
Select which files from the folder you wish to import as raw data.
Import options
With some file formats, including NMEA0183, some additional options have to be set in order to import and interpret the data in the file correctly. This is shown in the optional third step of the import wizard. When no options need to be set, this third page is skipped.
Projection and units
As you will notice, the projection setting is disabled because position data in NMEA0183 is always in WGS84 geographic coordinates. Also there is no need to set the units used in the file, because the units are mentioned in the NMEA0183 sentences and conversions will be performed automatically.
NMEA0183 sentence
Use these settings to select the NMEA0183 sentence used to extract depth from the log file. Possible settings are: $SDDPT, $SDDBK, $SDDBS, $SDDBT and $SDXDR.
Sentence | Description |
---|---|
$SDDBK | Depth below keel |
$SDDBS | Depth below surface |
$SDDBT | Depth below transducer |
$SDDPT | Depth and keel offset |
$SDXDR | Extended Transducer Information (may contain dual frequency depth) |
Sounder offset
Use this box to set the transducer offset. This is the distance between the bottom of the transducer to the waterline. This setting is also called the static draft. If unknown, you can leave this value as zero and correct it later in the "Sounding Wizard".
Sounding date
To add correct date and time information to your sounding, you can use the "Date" settings. This setting is optional; however, if the sounding is going to be used with tide files, you will need the correct timestamps on your data! Since the timestamps in NMEA0183 data are in UTC/GMT, you do not need to select a time zone, as Hydromagic stores timestamps in UTC/GMT as well.
Set additional options like NMEA0183 sentence, static draft an sounding date.
Starting the import
When the format, files, and additional options are set, you can start the import process by clicking the 'Finish' button on the last page of the wizard.
The file currently being processed is displayed in the status bar at the bottom of the screen, and the wizard shows a message box stating 'File(s) successfully imported as raw data file(s)' as soon as the process is complete. Click 'OK' to close the dialog and the imported files will be centered in the map view (only when they contain position data).
Click the "Finish" button to start the import process.
Checking the imported raw data file(s)
When the import is complete, you can right-click the generated raw data files and select "Analyze Data..." to inspect the imported values and timestamps. If the import did not complete successfully, refer to the 'Processing' tab of the activity view for more details on the error shown.
Video Tutorial
The following YouTube video tutorial shows how to import NMEA0183 log files into your Hydromagic project. Click below to play the video. When you like the video, please click the like button and subscribe so you will receive an update when new video tutorials on Hydromagic are uploaded.
This video demonstrates how to import NMEA0183 files into your Hydromagic project.