IAU-ADES / ADES-Master

ADES implementation based on a master XML file
26 stars 7 forks source link

pos1 overflow when converting to obs80 #40

Closed stevechesley closed 7 months ago

stevechesley commented 7 months ago

The problem was that applyPaddingAndJustification does not shorten overlong strings (even says so in the documentation) and it is left to the caller to make the string fit. Elsewhere the output is truncated to fit, and I did the same here. It could be rounded, but that appears much tricker after the string has been built and it doesn't seem fatal to the obs80 information (sub-km differences for au).

This fixes Issue #39.