5.0

5.0 | 1 rating Rate this file 228 downloads (last 30 days) File Size: 3.14 KB File ID: #17977

Equinoxes and Solstices

by Giuseppe Cardillo

 

12 Dec 2007 (Updated 12 Nov 2008)

Code covered by BSD License  

compute the dates of equinoxes and solstices

Download Now | Watch this File

File Information
Description

EQNSOL computes the date of equinoxes and solstices for the input year.This is based upon the formulas given by Jean Meeus in his "Astronomical Algorithms". The date is computed in Julian Date.
This function take in JD2CAL function of "Geodetic Toolbox" by Mike Craymer (ID:15285) to convert Julian Date into gregorian calendar date.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Geodetic Toolbox
This submission has inspired the following:
Aggregate timeseries data to solstices and equinoxes.

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
01 Jun 2009 Jeff Burkey

Great function! While the level of accuracy does not affect my needs, you may want to let others know if they are in need to to the minute or second, may want to validate the results. Comparing this functions results to the US Naval Observatory, the results differ by approximately 1-minute. I'm guessing this is an artifact of matlab and complier precision. Anything dealing with astronomy and floating point precision becomes significant.

http://aa.usno.navy.mil/data/docs/EarthSeasons.php

Please login to add a comment or rating.
Updates
17 Dec 2007

Help line correction

24 Sep 2008

Improvement in input error handling

12 Nov 2008

Changes in help section

Tag Activity for this File
Tag Applied By Date/Time
clock Giuseppe Cardillo 22 Oct 2008 09:39:06
fun Giuseppe Cardillo 22 Oct 2008 09:39:06
equinox solstice Giuseppe Cardillo 22 Oct 2008 09:39:06
dates Giuseppe Cardillo 22 Oct 2008 09:39:06
equinoxes Giuseppe Cardillo 22 Oct 2008 09:39:06
solstices Giuseppe Cardillo 22 Oct 2008 09:39:06
utilities Giuseppe Cardillo 22 Oct 2008 09:39:06
meeus Giuseppe Cardillo 22 Oct 2008 09:39:06
utilities Cristina McIntire 12 Nov 2008 14:04:54
dates Cristina McIntire 12 Nov 2008 14:04:54
clock Cristina McIntire 12 Nov 2008 14:04:54
solstices Cristina McIntire 12 Nov 2008 14:04:54
equinoxes Cristina McIntire 12 Nov 2008 14:04:54
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com