SATCAT (Satellite Catalogue)
![build status](https://camo.githubusercontent.com/f9d11c7b52cc664a049ee9fbacc5822ede4e98d56499c476b8ed586a1a2ce1c1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a6865726d736d656965722f6e6f64652d7361746361742f6d61737465722e7376673f7374796c653d666c61742d737175617265)
$ npm install --save satcat
var Satcat = require( 'satcat' )
var parser = new Satcat.Parser()
http.get( 'http://www.celestrak.com/pub/satcat.txt', function( response ) {
response.pipe( parser )
})
parser.on( 'readable', function() {
var satellite = null
while( satellite = this.read() ) {
// ...
}
})
var record = `1957-001B 00002 *D SPUTNIK 1 CIS 1957-10-04 TYMSC 1958-01-03 96.1 65.0 945 227 N/A `
var satellite = Satcat.Satellite.parse( record )
Satellite {
id: '1957-001B',
catalogNumber: '00002',
multipleNames: false,
payload: true,
status: 'D',
name: 'SPUTNIK 1',
source: 'CIS',
launchDate: 1957-10-04T00:00:00.000Z,
launchSite: 'TYMSC',
decayDate: 1958-01-03T00:00:00.000Z,
orbitalPeriod: 96.1,
inclination: 65,
apogeeAltitude: 945,
perigeeAltitude: 227,
radarCrossSection: NaN,
orbitalStatus: ''
}
Parsed 42972 records in 0.140 ms
node example/http
- Streaming the Celestrak Satellite Catalogue
node example/file
- Parsing & outputting the test data