Skip to content

Demonstrates how to calculate Local Solar Noon and the Equation of Time in JavaScript, Python 3, and C++.

License

Notifications You must be signed in to change notification settings

patrickmoffitt/Local-Solar-Noon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Solar Noon Calculators

Local Solar Noon is when the sun reaches its highest point in the sky for the day. Depending on the season, your longitude, and your local time zone, there may be more than an hour difference between Noon on your clock and Solar Noon. Since you can't rely on your clock to tell you when it's Solar Noon you need a way to calculate it. If you're merely curious, the good folks at the National Oceanic & Atmospheric Administration (NOAA), Earth System Research Laboratory (ESRL), Global Monitoring Division, have a nifty one online here. If you have a more persistent interest in knowing where the shade will be on your party tent or sun dial then you may want to read further.

This project borrows all its math from experts. The ever so grandly named Equation of Time was done using the Fourier Method shown here. Despite sounding like a math lesson from a wizard in a dark blue police box, that formula isn't enough to very accurately determine Solar Noon. One must also calculate the longitudinal offset for their location. I borrowed this math from NOAA on page two of this PDF. The rest of the math just implements local and UTC date-times in the computer languages I used.

Speaking of that. This project offers code to calculate Local Solar Noon from the Equation of Time and Longitude Offset in JavaScript, Python 3.7, and C++11. Click the preceding links to view the README file for each implementation.

Bugs, Issues and Pull Requests

If you find a bug please create an issue. If you'd like to contribute please send a pull request.

About

Demonstrates how to calculate Local Solar Noon and the Equation of Time in JavaScript, Python 3, and C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published