Você está na página 1de 2

Calculation of local times of sunrise, solar noon, sunset, dawn, and dusk based on the calculation procedure by NOAA

(http://www.srrb.noaa.gov/highlights/sunrise/sunrise.html) Input latitude in decimal degrees (positive in northern hemisphere) longitude in decimal degrees (negative for western hemisphere) year month day time zone in hours relative to GMT/UTC (PST= -8, MST= -7, CST= -6, EST= -5) daylight savings time (no= 0, yes= 1) Output (local time in days) astronomical dawn (sun is 18 degrees below horizon) nautical dawn (sun is 12 degrees below horizon) civil dawn (sun is 6 degrees below horizon) sunrise (sun is 0.833 degrees below horizon to account for refraction) solar noon (sun is at its highest point in the sky for this day) sunset (sun is 0.833 degrees below horizon to account for refraction) civil dusk (sun is 6 degrees below horizon) nautical dusk (sun is 12 degrees below horizon) astronomical dusk (sun is 18 degrees below horizon)

47.600 -122.317 2001 6 21 -8 1

2:03 AM 3:34 AM 4:30 AM 5:11 AM 1:11 PM 9:10 PM 9:51 PM 10:47 PM 12:19 AM

NOTE: Seven functions are available for use from Excel worksheets:
- dawn(lat, lon, year, month, day, timezone, dlstime, solardepression) - sunrise(lat, lon, year, month, day, timezone, dlstime) - solarnoon(lat, lon, year, month, day, timezone, dlstime) - sunset(lat, lon, year, month, day, timezone, dlstime) - dusk(lat, lon, year, month, day, timezone, dlstime, solardepression) - solarazimuth(lat, lon, year, month, day, hour, minute, second, timezone, dlstime) - solarelevation(lat, lon, year, month, day, hour, minute, second, timezone, dlstime)

where lat = latidude in degrees lon = longitude in degrees timezone = time zone in hours relative to GMT/UTC dlstime = daylight savings time hours (0 for no daylight savings, or 1 for yes daylight savings) solardepression = angle of the sun below the horizon in degrees for calculation of time of dawn and dusk
The sign convention for inputs to the functions named sunrise, solarnoon, sunset, dawn, dusk, solarazimuth, and solarelevation is: - positive latitude decimal degrees for northern hemisphere - negative longitude degrees for western hemisphere - negative time zone hours for western hemisphere

The other functions in the VBA module use the original NOAA sign convention of positive longitude in the western hemisphere.
The calculations in the NOAA Sunrise/Sunset and Solar Position Calculators are based on equations from Astronomical Algorithms, by Jean Meeus. NOAA also included atmospheric refraction effects. The sunrise and sunset results were reported by NOAA to be accurate to within +/- 1 minute for locations between +/- 72 latitude, and within ten minutes outside of those latitudes.

This Excel VBA translation was tested for selected locations and found to provide results within +/- 1 minute of the original NOAA Javascript code. For sunrise and sunset calculations, we assume 0.833 of atmospheric refraction. In the solar position functions, atmospheric refraction is modeled using equations documented at http://www.srrb.noaa.gov/highlights/sunrise/calcdetails.html This VBA translation does not include calculation of prior or next susets for locations above the Arctic Circle and below the Antarctic Circle, when a sunrise or sunset does not occur. Translated from NOAA's Javascript to Excel VBA by: Greg Pelletier Department of Ecology P.O. Box 47710 Olympia, WA 98504-7710 phone: 360-407-6485 fax: 360-407-6884 e-mail: gpel461@ecy.wa.gov

215211920.xls.ms_office, 3/5/2014

Calculation of solar azimuth and elevation based on the calculation procedure by NOAA (http://www.srrb.noaa.gov/highlights/sunrise/azel.html) Input latitude in decimal degrees (positive in northern hemisphere) longitude in decimal degrees (negative for western hemisphere) year month day hours minutes seconds time zone in hours relative to GMT/UTC (PST= -8, MST= -7, CST= -6, EST= -5) daylight savings time (no= 0, yes= 1) Output solar azimuth (degrees clockwise from north) solar elevation (degrees from horizon)

47.600 -122.317 2001 6 21 13 11 0 -8 1

179.93 65.85

215211920.xls.ms_office, 3/5/2014

Você também pode gostar