Hacked-Crew / Magnetic-Declination

QGIS plugin
GNU General Public License v2.0
5 stars 9 forks source link

Update Magnetic_declination.py to swap TVMDCAW and CDMVTAE calculations #10

Open drf5n opened 9 months ago

drf5n commented 9 months ago

Fix the https://github.com/Hacked-Crew/Magnetic-Declination/issues/2#issuecomment-1876016654 issue by swapping the calculations so the TVMDCAW and CDMVTAE calculation calls here:

https://github.com/Hacked-Crew/Magnetic-Declination/blob/9ea3356558224a4fd86777c25b8d461eee4b11aa/MagneticDeclination/Magnetic_declination.py#L407-L410

so that if simple_XtoMagnetic == 1: calls geomag.mag_heading() function, etc....

This is a better solution than https://github.com/Hacked-Crew/Magnetic-Declination/pull/9

drf5n commented 9 months ago

With this switch, the panels match the rose:

image

and

image