mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-12 06:12:18 +00:00
fix(satellites): the UCS pack build drops rows whose NORAD number is not positive
This commit is contained in:
1 parent
3bf7e9edb7
commit
573479d7ab
2 files changed
+6
-3
No files matched your search
@@ -62,6 +62,9 @@ def build(xlsx: Path) -> dict:
|
|||||||
except (TypeError, ValueError):
|
except (TypeError, ValueError):
|
||||||
invalid_norad += 1
|
invalid_norad += 1
|
||||||
continue
|
continue
|
||||||
|
if norad <= 0:
|
||||||
|
invalid_norad += 1
|
||||||
|
continue
|
||||||
record = [norad]
|
record = [norad]
|
||||||
for key, column in COLUMNS.items():
|
for key, column in COLUMNS.items():
|
||||||
text = clean(row[header[column]])
|
text = clean(row[header[column]])
|
||||||
|
|||||||
@@ -42,9 +42,9 @@ DATA_SOURCES.md.
|
|||||||
`0` meaning empty.
|
`0` meaning empty.
|
||||||
- The 3,996 Starlink rows are dropped: every Starlink object is classed and
|
- The 3,996 Starlink rows are dropped: every Starlink object is classed and
|
||||||
credited to SpaceX by name, so they would only add size.
|
credited to SpaceX by name, so they would only add size.
|
||||||
- Rows without a readable NORAD number are dropped and counted apart from
|
- Rows without a readable, positive NORAD number are dropped and counted apart
|
||||||
duplicate NORAD numbers (the first row of a duplicate is kept); both counts
|
from duplicate NORAD numbers (the first row of a duplicate is kept); both
|
||||||
are 0 in this release.
|
counts are 0 in this release.
|
||||||
- Owner countries stay as UCS writes them ("USA", "USA/Japan", "ESA",
|
- Owner countries stay as UCS writes them ("USA", "USA/Japan", "ESA",
|
||||||
"Multinational"); `src/layers/satellites/classes.js` normalises them, together with
|
"Multinational"); `src/layers/satellites/classes.js` normalises them, together with
|
||||||
CelesTrak SATCAT owner codes, in one table.
|
CelesTrak SATCAT owner codes, in one table.
|
||||||
Reference in new issue
Block a user