Overview

The two main computation algorithms in this program and the data used in the eclipse calculations were derived from other sources and thus can not be claimed as my own IP. In accordance with the copyright on one of the pieces of work, I am disclosing those pieces that were directly ported as well as additional pieces required to understand the port.

The pieces disclosed carry different copyrights. Each of these is required to be carried forth to (legally) incorporate or make derivative works of what is disclosed here

Note that all of the user interface portions and tests are considered to be fully my IP and are not being disclosed.

Also note THE FOLLOWING CODE IS PRESENTED "AS IS" WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. IT IS PRESENTED WITHOUT SUPPORT. THERE WILL BE NO EXTERNAL NOTIFICATION SHOULD THIS CODE BE MODIFIED.

Disclosed Source

This contains the code for the object that makes the eclipse prediction. This code was ported from the Eclipsewise website. Additional information on these algorithms can be found on the main page

The code is called in the following manner. Further examples are shown in the tests; however, they directly reach into the EWPredict object instead of using the EclipseSummary glue. This glue was added, in part, due to the structure of CaptureEclipse.

let lEWPrediction = EWPredict(whichEclipse: thisBessel, obsC: lPredictLocation)
lEWPrediction.predict()
let gEclipseSummary = EclipseSummary()
gEclipseSummary.populate(lEWPrediction)
				 

gEclipseSummary is then used by the various displays to display the results of the prediction

The original work is covered under a GPL License. This modification is covered under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. Thus any derivative works of this source must carry the following

//  Created by Rob Hawley on 10/3/20.
//  This file is Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
//  Copyright © 2020 Robert J Hawley. Some rights reserved.
//
// This is based on  Solar Eclipse Circumstances Calculator
//
// That code was released under the terms of the GNU General Public
// License (http://www.gnu.org/copyleft/gpl.html) 
// with the request that if
// you do improve on it or use it in your own site, please let Fred know at
// http://eclipsewise.com/main/contact.html
// Thank you.  - Fred Espenak
//
//http://eclipsewise.com/solar/SEcirc/CalcCirc.js
//
/*
Solar Eclipse Circumstances Calculator
Version 1.0 by Bill Kramer and Fred Espenak - 2016 Apr 26.
(based on "Eclipse Calculator" by Deirdre O'Byrne and Stephen McCann - 2003)
	
Modified 2016 April for tabular display of local circumstances given
a list of cities. Cities are grouped by geographic regions.
	
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
	
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
*/


				

IMHO the GPL license is compatible with Creative Commons except for the addition of the notification clause.

This is is a port of the NOAA spreadsheet .

Copyright © 2020 Robert J Hawley. Some rights reserved.

This adaptation of NOAA_Solar_Calculations_day.xls is covered under a 
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
which allows its use provided the originator (NOAA) and the author of this 
work (Robert J Hawley) are credited.
			 	

These are tables of Bessel elements derived from the sources on the parent page. NASA and EW sources are disclosed by the names and citation links. I have not separately broken out which EW elements were obtained from the calculator HTML, but it is at least all elements later than 2016 were from the calculator source.

Copyright © 2020 Robert J Hawley. Some rights reserved.
 
This work is covered under a 
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
which allows its use provided this full credit is included.


This adaptation of Bessel Elements obtained from the following sources
 
Elements beginning with Meeus are from Elements of Solar Eclipses, Jean Meeus

NASA are from http://eclipse.gsfc.nasa.gov
            "Eclipse map/figure/table/predictions courtesy of Fred Espenak, 
            NASA/Goddard Space Flight Center, from eclipse.gsfc.nasa.gov."
Ew are from the Javascript and html on http://eclipsewise.com/
            "Eclipse Predictions by Fred Espenak, www.EclipseWise.com"

			 	

This is original work by the author. It is being disclosed since it is important to understand how the engine is used.

Copyright © 2020 Robert J Hawley. Some rights reserved.

This original work is covered under a 
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
which allows its use provided the author of this work (Robert J Hawley) is credited.
			 	

These are links to the Apple XCode files used to exercise the eclipse engine and perform the tests described on the parent page.

Copyright © 2020 Robert J Hawley. Some rights reserved.

This original work is covered under a 
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
which allows its use provided the author of this work (Robert J Hawley) is credited.