https://github.com/kmpm/node-sl2format
https://github.com/kmpm/node-sl2format
json lowrance nodejs sl2 sl3 slg stream
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kmpm/node-sl2format
- Owner: kmpm
- Created: 2015-10-13T06:25:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-02T07:21:11.000Z (over 6 years ago)
- Last Synced: 2025-06-03T20:00:02.933Z (about 1 year ago)
- Topics: json, lowrance, nodejs, sl2, sl3, slg, stream
- Language: JavaScript
- Size: 19.1 MB
- Stars: 10
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
node-sl2
========
Module to read .sl2 files, generated by Lowrance chart plotters as a stream.
[](https://travis-ci.org/kmpm/node-sl2format)
For any more information regarding HOW the information is encoded in the file I would from here on
like to redirect to the https://github.com/opensounder/sounder-log-formats repo.
#I/O
Input from for example file stream for an .sl2 file
Outputs block objects looking something like this.
```javascript
{
frameIndex: 0,
blockSize: 3216,
packetSize: 3072,
lastBlockSize: 0,
channel: Primary,
time1: 3536977920,
waterDepth: 6.622000217437744,
temperature: 19.350006103515625,
frequency: 0,
keelDepth: 0,
upperLimit: 0,
lowerLimit: 19.600000381469727,
altitude: 118.89765930175781,
heading: 0,
courseOverGround: 3.7873644828796387,
waterSpeed: 0,
gpsSpeed: 2.585312843322754,
longitude: 1383678,
latitude: 8147302,
flags: {
trackValid: true,
waterSpeedValid: false,
positionValid: true,
waterTempValid: true,
gpsSpeedValid: true,
altitudeValid: true,
headingValid: false
}
}
```
# File format
* https://github.com/opensounder/sounder-log-formats/blob/master/lowrance/sl-format.md
* http://wiki.openstreetmap.org/wiki/SL2
#Licence
MIT