Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 899 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 899 Bytes

Sunrise Sunset

Python program to display and plot sunrise, sunset, length of day, and solar noon data.

Requires: Python (tested on 2.7 and 3.7) and matplotlib.

The necessary calculations are all contained in the sun_rise_set.py file.

There are a few ways to use this repository:

  1. Import sun_rise_set.py to create your own program.
  2. Use cmd_line_parser.py to generate console output for any location between the Arctic Circle and Antarctic Circle.
  3. Use sunrise_gui_cli.py to generate a plot for any location between the Arctic Circle and Antarctic Circle.

Here are some examples:

Plot of New York City, 2020: see sunrise_gui_nyc.py

nys plot

Console output for Sydney, 2020: see example_no_gui.py

console output