LowellObservatory / NightWatch

A system to display a set of important information at an observatory.
2 stars 0 forks source link

Collection of minor changes/fixes #29

Open astrobokonon opened 5 years ago

astrobokonon commented 5 years ago

This will probably be easier to just add them as I get them, then strike them thru when they're done.

This might turn out to be a sort of Ship of Theseus issue.

astrobokonon commented 5 years ago
astrobokonon commented 5 years ago
astrobokonon commented 5 years ago

Adding back in the reference epoch was tricker than I imagined.

I initially was too sloppy when making the XML schema for the TCS topic, and there were some keys that had a bad datatype association that probably worked once and then never again. Specifically, I was storing some of the coordinate-seconds components as xsd:int when they should have been xsd:decimal and for some reason the reference epoch keys were flagged as xsd:dateTime when they really shouldn't have been. Details are in ligmos@4c44c8f.

Technically, I could have abandoned that measurement in place and switched any queries over to the tcs.loisTelemetry topic's set of information. But that would just screw myself in about 3-6 months from now when I run into another as-yet-undiscovered problem, so I had to just suck it up and deal with it now.

Unfortunately, there's no good/easy way to fix the fields in the database selectively. I could have copied the good fields into a new measurement, dropped the old one, then moved it back to the original metric name and let the database fill up again. But that's too much hassle so I just dropped the whole thing and will start fresh from here.

Lesson learned! (hopefully)

astrobokonon commented 5 years ago

Note that this one isn't actually in any TCS status packet, it seems to be only captured as a property/value in the originating target packet. I'll have to snoop the NewScienceTargetSV topic, I think, and see if there's a schema that will actually work for easy parsing. I'm a bit worried that since it's coming from each instrument, there will be some ... heterogeneity.

astrobokonon commented 5 years ago
astrobokonon commented 5 years ago