-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moon Semi-Diameter and Horizontal Parallax used by Celestial plugin is off by up to +/- 8%. Change Moon SD/HP to approach Nautical Almanac precision. #25
Comments
Wow. This is a gift. Thank you. Hopefully we will find a good programmer. You advise:
Do you have the name for this product? Perhaps we can get the tables from that? |
Rick,
The product is owned by United States Power Squadron / America's Boating
Club. I have a contact in their Offshore Navigation Education department.
I'll see what options are available. Did the author of the celestial
navigation plugin get GHA, DEC, SHA tables from USNO Astronomical
Applications website (under Celestial Navigation Data) or the ADMIRALTY
(UK)?
Bob Bossert
…On Sun, Jan 19, 2025 at 3:23 PM Rick Gleason ***@***.***> wrote:
Wow. This is a gift. Thank you. Hopefully we will find a good programmer.
You advise:
There is a free software product that doesn’t need internet to reduce
sights and has precise Moon SD/HP. OpenCPN can match that product.
Do you have the name for this product? Perhaps we can get the tables from
that?
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BOSWTTUDC6XYLCDHLBLQTWD2LQCS7AVCNFSM6AAAAABVPAK5PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBRGAYDQNBSHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Dear Bob, The manual format has changed and I did not have complete control over that, but I think the guys did a pretty good job transferring it. It is housed in github now and not opencpn.wiki. I can still edit it and so could you if you find the need or desire. Out of curiosity, are you an OpenCPN user? https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn Here is the manual https://opencpn-manuals.github.io/main/celestial_navigation/index.html and further down.... |
Thanks. I'll review it.
Yes, I am an OpenCPN user. And I am a Navigation teacher.....Right now,
I'm teaching Offshore navigation including Celestial Navigation. I like
to include Open CPN in all of my classes. Strategy being "do it
traditionally" followed by doing it with OpenCPN.
…On Sun, Jan 19, 2025 at 8:53 PM Rick Gleason ***@***.***> wrote:
Dear Bob,
I do not recall, but the last time a very capable fellow updated and
improved our accuracy with new tables and I think I added all of this
information in the manual. Which I worked on quite a lot. It is probably
not up to standards but it is our attempt at honoring this still very
useful information and craft.
The manual format has changed and I did not have complete control over
that, but I think the guys did a pretty good job transferring it. It is
housed in github now and not opencpn.wiki. I can still edit it and so could
you if you find the need or desire.
Out of curiosity, are you an OpenCPN user?
https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn
Here is the plugin list
https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:manual_basic:set_options:plugin_manager
Celestial Nav is under Navigation
Here is the manual
https://opencpn-manuals.github.io/main/celestial_navigation/index.html
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BOSWTTQX2QGAK56ZD6MPSNT2LRJJJAVCNFSM6AAAAABVPAK5PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBRGE3DINJVGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This comment has been minimized.
This comment has been minimized.
The product, "Celestial Tools" is copyright and belongs to America's
Boating Club. They are willing to share the code for the algorithms that
are common functions like SD, HP, etc. They sent me a 6 page text file
that included their Greenwich function, Julian date function, and Moon
function. Written in Microsoft C#. The code is documented, readable.
The Moon function, which includes SD and HP is based on Jean Meeus in
Astronomical Algorithms Chapter 45 Position of the Moon. The process they
use is to start with Time (like PC or watch time) convert to Greenwich (UT)
then convert to Julian Date and calculate using Julian.
…On Sun, Jan 19, 2025 at 3:23 PM Rick Gleason ***@***.***> wrote:
Wow. This is a gift. Thank you. Hopefully we will find a good programmer.
You advise:
There is a free software product that doesn’t need internet to reduce
sights and has precise Moon SD/HP. OpenCPN can match that product.
Do you have the name for this product? Perhaps we can get the tables from
that?
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BOSWTTUDC6XYLCDHLBLQTWD2LQCS7AVCNFSM6AAAAABVPAK5PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBRGAYDQNBSHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@rbossert149419 Bob that is great, and it is C++ |
C# (aka C sharp). Different, but many similarities to C++, both originate
from C. I can send you the code's text now. Or, wait until you are
ready. Meanwhile, I think I'll continue reviewing the code (compare code
to Jean Meeus's book where a lot of it comes from). It could help the
developer in unit testing.
I have a question on the Plug-in's Line of Position plot. I read the user
documentation from the link, and I'd like to test my understanding about
how the Celestial Plug in LOP was determined. It doesn't need the DR/Fix
(or boat location). If DR changes, Plot remains constant. It is based on
Ho and the GP of the body at the time the sight was taken. And somehow
solving a Nautical Triangle with Ho (or 90 - Ho, Co-Ho) and GP as knowns.
What algorithm does it use? I don't see an issue, just seeking to
understand.
Thanks
…On Fri, Jan 24, 2025 at 10:18 AM Rick Gleason ***@***.***> wrote:
@rbossert149419 <https://github.com/rbossert149419> Bob that is great,
and it is C++
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BOSWTTRGIXQDABA7IPLTJOT2MJKVFAVCNFSM6AAAAABVPAK5PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJSG43TONRWGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Jean Meeus's name is familiar. "Jean Meeus in Astronomical Algorithms Chapter 45 Position of the Moon." How big is the code when zipped? You can add a zip file to these comments. That might be a good way to do it. Astronomical Table of the Sun, Moon and Planets, 3rd edition its about $130 used |
From Bob's 2/6/25 email. From Bob's 2/8/25 email
Bob's email 2/9/25
|
Bob, Povl Abrahamsen, 2/26/2017 did the Calculation & Accuracy: Plugin Improvements He writes
I hope this helps. |
Bob, As I recall, I would have to look into it further, but some part of this was not done.
I believe Sean wrote the fix part. He is a math genius I think.
|
What is this?
|
Celestial Tools. The author did it for America's Boating Club (U.S Power
Squadrons).
The code I supplied matches the precision that the program does for SD and
HP (when he sent me a copy of part of his C# program, I knew immediately
where he got the algorithm from). And, the code I gave you matched
very nicely the Nautical Alamanac data for the sample data I used from 200x
to 2025. So, my C++ program will fix the biggest problem with Celestial
Nav's Plug in for the Moon Position.
…On Mon, Feb 10, 2025 at 9:13 PM Rick Gleason ***@***.***> wrote:
What is this?
There is a free software product that doesn’t need internet to reduce
sights and has precise Moon SD/HP. OpenCPN can match that product.
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BOSWTTTSDFSZSI4XJ56UXS32PFMDJAVCNFSM6AAAAABVPAK5PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBZGY2TSNRZGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Problem: The Moon Semi-Diameter and Horizontal Parallax is used to determine Observed Altitude (Ho). In the plugin, it is a constant based on average SD and the relationship that SD=.27346*HP. The SD and HP used by Nautical Almanac varies up to +/- 8% from the average.
Impact: In 2 moon sight reduction examples, the Plugin’s Observed Altitude (Ho) was 1 to 4.7 arc-minutes too small and the Estimated Position (single body sight) was off by 1 to 4.7 nautical miles. The proposal substantially reduces the Observed Altitude (Ho) variances between Nautical Almanac and Celestial Plug-in.
Request: The plugin to use a more precise Moon SD and HP to approach the Nautical Almanac precision. SD and HP for Sun, Mars, Venus remain unchanged, for now. The Nautical Almanac for table based sight reductions has Moon’s SD is fixed for 3 Days, and Moon’s HP identified per whole hour. NA documents a sight reduction based on formulas (page 280-281), and only requires getting the Moon’s hour based HP. There is a free software product that doesn’t need internet to reduce sights and has precise Moon SD/HP. OpenCPN can match that product.
The Plugin’s Sight Properties and Calculation form shows the formulas and intermediate calculations starting with Measured Altitude (Hs) and ending with Observed Altitude (Ho). The calculation form is useful. It should be kept current when the plugin changes.
Current and Proposed. The Moon Semi-Diameter used by the Plug-in is documented to be 15.5’ constant (per Sight Properties/ Calculations form). But in the plugin’s Limb correction, the constant 0.2591° (15.546 arc-minutes) is used. That value is closer to the average Moon SD (15.53872’). HP’s 56.9’ / .94833° value under “Almanac Data for Moon”, is changed to .9475° when calculating Moon’s parallax correction. The plugin’s HP constant is based on SD = .27346HP. The Nautical Almanac’s confirms “SD = .2724*HP” (page 285, step 5). NA adds Earth Oblateness (OB) to the parallax equation (page 280, step 4). The solution might be to extract a HP data (not use average) from a source of record, and then calculate SD (page 280, step 5). ADD OB equation to the Parallax calculation for the moon only
Algorithm and Code (updated 1/26/2025)
Celestial Tools a software product owned by America's Boating Club (aka US Power Squadrons) uses a version of Jan Meeus algorithms documented in Chapter 25 of his 1991 book "Celestial Algorithms". I tested it on my PC. The Moon SD and HP output is within .1' of Nautical Almanac's version of truth. I received part of the code (written in C# aka C sharp). The code sent to me DOES NOT include what is necessary to compute SD and HP. It does show how the developer went about Moon's position. The code actually follows Meeus's book pretty closely. The developer will send more code of specific functions if necessary. It was programmed in VB and the developer has been converting it bit by bit to C sharp over time.
As a workaround for the code's missing SD/HP calculation details, I want to send a spreadsheet (Apple Numbers...I can export to powerpoint if you don't have a Mac) that shows the full computations (including full tables) and explanation. It includes 7 test case worksheets from 1992, 2001 to 2025. GitHub doesn't seem to allow me to update NUMBERS (just PDF). So, I'll try to email the spreadsheet. It isn't large. You'll want to review the spreadsheet cells which are formulas. The worksheet includes everything. For this problem, you only need the cells pertaining to SD and HP.
Each Test Case is a worksheet. The input to each worksheet (Julian Date (Delta_T should be included in the Julian Date). The output is HP, SD, and Ecliptic Latitude and Longitude, and Equatorial Latitude and Longitude assuming a constant for epsilon (Earth Tilt) and Longitude Nutation (Earth wobble along the spinning axis). If you need it, I'm confident I can work it out from Meeus's book.
Attachment. Analysis of the impact and Examples included as attachment.
CTSRFMoonFunctions.txt
Open CPN Celestial Plugin Moon Semi-Diameter:HP accuracy issue PDF.pdf
The text was updated successfully, but these errors were encountered: