Skip to content

Standalone program to convert Lowrance SL2 files to ndjson

License

Notifications You must be signed in to change notification settings

hrbrmstr/sl2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sl2json

Convert Lowrence SL2 files to streaming/newline-delimited JSON (ndjson)

Install (macOS homebrew)

brew install hrbrmstr/tap/sl2json

Build

Just run make. There are no external dependencies outside the need for a C++ compiler. Compilation has been tested with both gcc and clang toolchains.

Run

$ ./sl2json some_sl2_file.sl2 > streaming_json_version_of_the_data.json

Sample record

{
  "channel": 2,
  "upperLimit": 0,
  "lowerLimit": 13.4,
  "waterDepth": 2.838,
  "keelDepth": 0.328084,
  "speedGps": 0,
  "temperature": 15.6947,
  "longitude": 4433309,
  "latitude": 7003054,
  "speedWater": 0,
  "track": 3.50811,
  "altitude": 333.202,
  "heading": 0,
  "headingValid": false,
  "altitudeValid": false,
  "gpsSpeedValid": false,
  "waterTempValid": false,
  "positionValid": false,
  "waterSpeedValid": false,
  "trackValid": false,
  "timeOffset": 1404539
}

About

Standalone program to convert Lowrance SL2 files to ndjson

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published