1.1.4 • Published 5 years ago

gps-sem-parser v1.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

gps-sem-parser

Example

  import sem from 'gps-sem-parser';
  const almanac = sem( rawAlmanac );
{
  "gpsWeek": 1844,
  "toa": 405504,
  "epoch": 1115656704,
  "satellites": [
    {
      "prn": 1,
      "svn": 63,
      "ura": 0,
      "eccentricity": 0.00419855117797852,
      "inclination": 0.9617664060621093,
      "rightAscensionDot": -8.114623720935037e-9,
      "semimajorAxis": 26559649.327529907,
      "rightAscension": -1.6779199426606246,
      "argumentOfPeriapsis": 0.37559459670255485,
      "meanAnomaly": -2.781213528432701,
      "clockBias": -0.0000057220458984375,
      "clockDrift": 0,
      "health": 0,
      "config": 11
    }
  ]
}

API

sem(file, gpsEpoch)

Parses a string containing a GPS almanac in sem format. Pass gpsEpoch with the number of times the gps week has rolled over. Set gpsEpoch to null and year to the year in which the almanac was issued to try to automatically resolve the gps epoch. (Defaults to current year)

Return an Almanac object.

Parameters

nametypedescription
filestringAlmanac in SEM format
gpsEpochnumber(optional) Number of times the GPS Week index rolled over.
yearnumber(optional) Year in which the Almanac was issued (to resolve gps epoch). )

Almanac

Object representing a GPS almanac

nametypedescription
gpsWeeknumberGPS Week of the almanac
toanumberTime of Applicability of the alamanc
epochnumberEpoch of the almanac (seconds since start of GPS time)
satellites[Satellite]Array of satellite element sets

Satellite

Object representing a satellite element set. (For details see IS-GPS-200)

nametypedescription
prnnumberAssigned PRN
svnnumberSpace Vehicle Number
uranumberUser Range Accuracy
eccentricitynumberEccentricity at epoch
inclinationnumberInclination at epoch (rad)
rightAscensionDotnumberFirst derivative of the right ascension (rad/s)
semimajorAxisnumberSemimajor Axis at epoch (m)
rightAscensionnumberRight ascension at start of GPS Week (rad)
argumentOfPeriapsisnumberArgument of periapsis (rad)
meanAnomalynumberMean Anomaly at epoch (rad)
clockBiasnumberClock bias at epoch (s)
clockDriftnumberClock drift at epoch (s/s)
healthnumberHealth of satellite
confignumberConfiguration of satellite
1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.2

10 years ago