Sei sulla pagina 1di 2

Accurate Local Rahukaalam Calculator

According to Hindus, Rahukaalam is very inauspicious to undertake any new venture. NOTE:
This Excel workbook is originally from Department of
Lattitude and Longitude of the place is an input to this calculator. Ecology, Washington State, USA.The Excel contains VBA
Visit http://www.satsig.net/maps/lat-long-finder.htm to find out the lat/long at your functions for sunrise/sunset and solar position: dawn,
location by clicking on the Map. sunrise, solar noon, sunset, dusk, solar azimuth, solar
elevation.
(http://www.ecy.wa.gov/programs/eap/models.html)
Input
latitude in decimal degrees (positive in northern hemisphere) 8.583 Calculation of local times of sunrise, solar noon, sunset,
longitude in decimal degrees (negative for western hemisphere) 76.903 dawn, and dusk based on the calculation procedure by
year 2007 NOAA
month 8 (http://www.srrb.noaa.gov/highlights/sunrise/sunrise.html)
day 11
time zone in hours relative to GMT/UTC (PST= -8, MST= -7, CST= -6, EST= -5) 5.5 I modified the Excel to calculate the accurate Rahukaalam
at your local lattitude and longitude.
daylight savings time (no= 0, yes= 1) 0
How Rahukaalam is Calculated?
Output (local time in days) Divide the time period between sunrise and sunset into
astronomical dawn (sun is 18 degrees below horizon) #VALUE! eight equal parts, called time octants. Arrange the days of
nautical dawn (sun is 12 degrees below horizon) #VALUE! the week in the order M,Sa,F,W,Th,Tu,Su and assign the
civil dawn (sun is 6 degrees below horizon) #VALUE! second through the eighth time octants to these days in this
sunrise (sun is 0.833 degrees below horizon to account for refraction) #VALUE! order. These time octants then are the Raahukaalam times
on each of the days of the week.
solar noon (sun is at its highest point in the sky for this day) #VALUE!
sunset (sun is 0.833 degrees below horizon to account for refraction) #VALUE! Sreekandakumar Pillai
civil dusk (sun is 6 degrees below horizon) #VALUE! http://teck.in/
nautical dusk (sun is 12 degrees below horizon) #VALUE!
astronomical dusk (sun is 18 degrees below horizon) #VALUE! On the web at
Rahukaalam starts #VALUE! http://teck.in/2007/08/accurate-rahukaalam-calculator-for-
Rahukaalam ends #VALUE! your.html

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

51483339.xls, 12/08/2021
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) 47.600
longitude in decimal degrees (negative for western hemisphere) -122.317
year 2001
month 6
day 21
hours 13
minutes 11
seconds 0
time zone in hours relative to GMT/UTC (PST= -8, MST= -7, CST= -6, EST= -5) -8
daylight savings time (no= 0, yes= 1) 1

Output
solar azimuth (degrees clockwise from north) #VALUE!
solar elevation (degrees from horizon) #VALUE!

51483339.xls, 12/08/2021

Potrebbero piacerti anche