Skip to content

Commit 52f0418

Browse files
committed
Fix satellites example
1 parent 4d39d69 commit 52f0418

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example/satellites/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@
5656
const satData = tleData.map(([name, ...tle]) => ({
5757
satrec: satellite.twoline2satrec(...tle),
5858
name: name.trim().replace(/^0 /, '')
59-
}));
59+
}))
60+
// exclude those that can't be propagated
61+
.filter(d => !!satellite.propagate(d.satrec, new Date())?.position);
6062

6163
// time ticker
6264
let time = new Date();

0 commit comments

Comments
 (0)