mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-10 21:32:23 +00:00
refactor(satellites): the UCS pack keeps only the operator, owner country and purpose the layer reads
This commit is contained in:
1 parent
6ca53febad
commit
b72f453fea
5 files changed
+7
-19
No files matched your search
@@ -29,9 +29,6 @@ COLUMNS = {
|
||||
'operator': 'Operator/Owner',
|
||||
'operatorCountry': 'Country of Operator/Owner',
|
||||
'purpose': 'Purpose',
|
||||
'detailedPurpose': 'Detailed Purpose',
|
||||
'users': 'Users',
|
||||
'orbitClass': 'Class of Orbit',
|
||||
}
|
||||
STARLINK = re.compile(r'\bstarlink\b', re.I)
|
||||
|
||||
@@ -68,8 +65,6 @@ def build(xlsx: Path) -> dict:
|
||||
record = [norad]
|
||||
for key, column in COLUMNS.items():
|
||||
text = clean(row[header[column]])
|
||||
if key == 'orbitClass':
|
||||
text = text.upper()
|
||||
if text not in index[key]:
|
||||
index[key][text] = len(tables[key])
|
||||
tables[key].append(text)
|
||||
|
||||
Reference in new issue
Block a user