70 lines
3.5 KiB
Python
70 lines
3.5 KiB
Python
"""Prints the Labels table of report.md from labels.jsonl, with a short targets / words column per label."""
|
|
import json, os, sys
|
|
O = os.path.join(os.path.dirname(__file__), '..')
|
|
T = [
|
|
("odd nearby targets, 1019-1024", "reduced visibility continues (rain or water)"),
|
|
("reference 8014", "reference out for one measurement"),
|
|
("even group, 8010, 3 references", "passage (two measurements)"),
|
|
("camera; 1007, 1005", "weak daily thermal cycle"),
|
|
("1006, 1016, 1014", "brief partial occultation"),
|
|
("even group, 4 references", "passage (one measurement)"),
|
|
("nearby targets", "reduced visibility at night (rain or water)"),
|
|
("camera", "daily thermal cycle"),
|
|
("1022", "jump of one target, cause unknown"),
|
|
("1006, 1002, 1008, 1018, 1023", "part of the scene dims at end of night"),
|
|
("whole scene, 8004", "reduced visibility in the rain"),
|
|
("all; no reference at dawn", "night mist: references lost (start moved earlier)"),
|
|
("camera; 1020, 1002, 1007", "daily thermal cycle"),
|
|
("reference 92H", "reference hidden for one measurement"),
|
|
("1012, 1016, 1022, 1020", "brief partial occultation"),
|
|
("1017, 1019, 1015", "brief partial occultation"),
|
|
("all", "no data (common to several stations)"),
|
|
("distant references and targets", "night mist"),
|
|
("camera; 1020, 1007, 1005", "daily thermal cycle, sun"),
|
|
("all", "no data (common to several stations)"),
|
|
("all", "image trembles in the sun"),
|
|
("8003, 8010, 1008, 8004", "passage"),
|
|
("1016, 1022, 1024", "partial occultation at nightfall"),
|
|
("1007, 1021, 1015", "partial occultation"),
|
|
("distant references, 101B", "night dimming of the distant part"),
|
|
("camera; 1020", "daily thermal cycle"),
|
|
("8003, 8010", "passage"),
|
|
("even group, 3 references", "passage"),
|
|
("all", "image trembles in the sun"),
|
|
("reference 8012", "far reference shifts: basis changes"),
|
|
("reference 8012", "far reference shifts: basis changes"),
|
|
("1011, 1009, 1005, 1001", "a few targets dim at daybreak"),
|
|
("camera; 1020", "weak daily thermal cycle"),
|
|
("even group, 3 references", "passage"),
|
|
("reference 8012", "far reference shifts: basis changes"),
|
|
("1022, 1009, 1020", "brief partial occultation"),
|
|
("all", "no data (common to several stations)"),
|
|
("1007, 1021, 1015", "partial occultation"),
|
|
("8010", "passage"),
|
|
("camera; 1007, 1020", "weak daily thermal cycle"),
|
|
("even group, 4 references", "passage"),
|
|
("reference 92H", "machine arm in front of the reference"),
|
|
("1019, 1021", "brief partial occultation"),
|
|
("1006, 1022, 1023, 1018", "brief partial occultation"),
|
|
("1018, 1020, 1002", "brief partial occultation"),
|
|
("1006, 1004", "brief partial occultation"),
|
|
("camera; 1020, 1007", "thermal cycle and cool night (end moved)"),
|
|
("even group, 3 references", "something passing beside the targets"),
|
|
("8003, 8010, 8004", "passage"),
|
|
("8003, 8010", "passage"),
|
|
("1006, 1018", "brief partial occultation"),
|
|
("202H", "sun behind the target at sunrise"),
|
|
("camera; many targets in y", "thermal cycle in the sun (start moved)"),
|
|
("references, all targets", "sun in the field, then image trembles"),
|
|
("almost all", "train passing"),
|
|
("reference 8012, targets", "far reference lights up"),
|
|
("almost all", "image trembles"),
|
|
]
|
|
L = [json.loads(l) for l in open(os.path.join(O, 'labels.jsonl'))]
|
|
assert len(L) == len(T), (len(L), len(T))
|
|
print('| Start (UTC) | End (UTC) | Family | Targets | In a few words |')
|
|
print('|---|---|---|---|---|')
|
|
for d, (tg, w) in zip(L, T):
|
|
f = lambda s: s[5:10].replace('-', '/')[3:] + '/' + s[5:7] + ' ' + s[11:16]
|
|
print(f"| {f(d['start'])} | {f(d['end'])} | {d['family']} | {tg} | {w} |")
|