Cartes du Ciel interface no longer working in version 1.10

Issue #412 resolved
Former user created an issue

Hi,

since version 1.10 getting coordinates from Cartes du Ciel is no longer working. CdC is sending a ° (degree) sign for declination and it seems NINA expects "d"'

if (!Match(columns[1], @"(([0-9]{1,2})d[m]?([0-9]{1,2}(?:.[0-9]+){0,1})?[s])", out var decString)) { return null; } var dec = Astrometry.DMSToDegrees(decString);

Log file shows: [2019-12-14T11:12:37] [TRACE] [FileName] E:\Projects\nina\NINA\Model\MyPlanetarium\CartesDuCiel.cs [2019-12-14T11:12:37] [TRACE] [Message] Cartes Du Ciel - Received Message OK! 21h47m30.39s +49??24'19.2" * Pi.02 Cyg mV: 4.230 b-v:-0.12 mB: 4.110 mI:4.352 sp:B3III pmRA: 2.770 [mas/y] pmDE:-2.000 [mas/y] px: 2.950 [mas] Dist:1105.6 [ly] HD:207330 BD:BD+48 3504 HIP:107533 HR:8335 Comp: AB Fl:81 Bayer:Pi.02 Const:Cyg RV:-12.3 [km/s] Equinox:J2020.0

You can see the ?? in dec. (Think this is due to Windows char set. If I do a telnet on Linux to cdc I can see the ° sign. Also cdc manual specifies that)

In the older version (1.9) it worked without problem, but the parsing routine was different.

Regards,

Paul

Comments (1)

  1. Log in to comment