in reply to CPAN distribution naming recommendations
Hi Stevieb
1) Your code is only relevant for users of a magnetic compass. There is already Geo::Compass::Bearing and Geo::Compass::Points.
2) While it's true that the terms "Magnetic Declination" and "Magnetic Variation" are interchangeable, *and* that both Wikipedia and NOAA use the former, I can tell you as a 15-yr licensed sea captain that the term "Magnetic Variation" is far more widely used in my experience.
Furthermore, as you may know, there is a second element that must be considered when plotting a course using a magnetic compass, which is "Magnetic Deviation." Since "Deviation" and "Declination" are such similar words, I'd say that speaks to "Variation" as a better choice. This is particularly true when you consider the ancient formula for calculating magnetic compass course by hand from the true course, which is (I swear) taught with the mnemonic "True Virgins Make Dull Companions":
As you can see using "Declination" rather than "Variation" would break the mnemonic that's been used ever since the glory days of the British Navy.T + V = M + D = C True + Variation = Magnetic + Deviation = Compass
I therefore suggest that the best name for the module would be: Geo::Compass::Variation.
(In a perfect world the namespace would be 'Geo::Compass::Magnetic::*' but now that there are already modules for Bearing and Points I think that the "magnetic" is implied.)
Note: I realize that hikers rarely have to deal with compass deviation, as do pilots and mariners, but this module should be useful for all navigators.
Bonus: A second mnemonic for working with compass vs. true course is "West is Best, East is Least" -- which should remind you that you add the variation in the west and subtract it in the east).
Hope this helps!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: CPAN distribution naming recommendations
by stevieb (Canon) on Jun 03, 2017 at 22:48 UTC | |
by no_slogan (Deacon) on Jun 04, 2017 at 14:33 UTC | |
by stevieb (Canon) on Jun 04, 2017 at 14:44 UTC | |
by Anonymous Monk on Jun 04, 2017 at 17:30 UTC | |
by stevieb (Canon) on Jun 05, 2017 at 16:00 UTC | |
| |
by no_slogan (Deacon) on Jun 04, 2017 at 17:58 UTC | |
|