Skip to content

Commit e0b05f2

Browse files
committed
chore: gitignore buoycam_state.json + test output artifacts; add ISS system documentation (photo + tracking page link)
1 parent c588935 commit e0b05f2

2 files changed

Lines changed: 47 additions & 9 deletions

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,10 @@ cython_debug/
164164
.python-version
165165

166166
poetry.lock
167+
168+
# Publisher runtime state files
169+
publishers/ndbc/buoycam_state.json
170+
publishers/**/state.json
171+
172+
# Test/merge output artifacts
173+
merge-test-output*.txt

publishers/iss/bootstrap_iss.py

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,29 @@ def _system_position() -> dict:
123123
"title": "SGP4 Propagation v1",
124124
"type": "application/sml+json",
125125
},
126+
"documentation": [
127+
{
128+
"role": "http://dbpedia.org/resource/Photograph",
129+
"name": "ISS Photograph",
130+
"description": (
131+
"NASA photograph of the International Space Station "
132+
"taken from the Space Shuttle Discovery during STS-119."
133+
),
134+
"link": {
135+
"href": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/International_Space_Station_after_undocking_of_STS-132.jpg/640px-International_Space_Station_after_undocking_of_STS-132.jpg",
136+
"type": "image/jpeg",
137+
},
138+
},
139+
{
140+
"role": "http://dbpedia.org/resource/Web_page",
141+
"name": "ISS Tracking Page",
142+
"description": "NASA real-time ISS tracking page.",
143+
"link": {
144+
"href": "https://spotthestation.nasa.gov/",
145+
"type": "text/html",
146+
},
147+
},
148+
],
126149
},
127150
}
128151

@@ -265,17 +288,24 @@ def _datastream_orbit_track() -> dict:
265288
# Resource definitions — Deployment tree
266289
# ═══════════════════════════════════════════════════════════════════════════
267290

268-
def _deployment_tree() -> dict:
291+
def _deployment_tree(pos_sys_id: str | None = None, base_url: str | None = None) -> dict:
292+
props: dict = {
293+
"uid": DEPLOY_ROOT_UID,
294+
"featureType": "sosa:Deployment",
295+
"name": "Orbital Tracking Demo",
296+
"description": "Top-level deployment context for orbital object tracking demonstrations.",
297+
"validTime": [VALID_TIME_START, ".."],
298+
}
299+
if pos_sys_id and base_url:
300+
props["platform@link"] = {
301+
"href": f"{base_url}/systems/{pos_sys_id}",
302+
"title": "ISS Position Publisher",
303+
"uid": SYS_POS_UID,
304+
}
269305
return {
270306
"type": "Feature",
271307
"geometry": None,
272-
"properties": {
273-
"uid": DEPLOY_ROOT_UID,
274-
"featureType": "sosa:Deployment",
275-
"name": "Orbital Tracking Demo",
276-
"description": "Top-level deployment context for orbital object tracking demonstrations.",
277-
"validTime": [VALID_TIME_START, ".."],
278-
},
308+
"properties": props,
279309
}
280310

281311

@@ -337,7 +367,8 @@ def main():
337367

338368
# ── Deployment ────────────────────────────────────────────────────
339369
print("\n── Deployment ──")
340-
ensure_deployment(base_url, auth, DEPLOY_ROOT_UID, _deployment_tree(),
370+
ensure_deployment(base_url, auth, DEPLOY_ROOT_UID,
371+
_deployment_tree(pos_sys_id=pos_sys_id, base_url=base_url),
341372
dry_run=dry_run, stats=stats)
342373

343374
# ── Summary ───────────────────────────────────────────────────────

0 commit comments

Comments
 (0)