Sunset and Sunrise

by Matt Oltersdorf 2003 10 26 1325 UTC
back to Java for Astronomy


WRITE THE DATE; Day: Month: Year: Longitude (- to W): º ' " Latitude: º ' "
Solar Position at 0h of U.T.: Solar Longitude: Right Ascension: = h m s Declination: = º ' "
Sunrise: (U.T.)   h  m. Transit: (U.T.)  h  m. Sunset: (U.T.)  h  m
Sunrise Azimuth:  º  '  Altitude Transit º  '  Sunset Azimuth: º  '


  • To write a negative geographical longitude (W of Greenwich), for example -3º 12' 47" there must be negatives placed in the boxes of all the variables -3º -12'-47". 
    The same for latitude. 

  • This Java script does not foresee the calculation of sunrise and sunset in geographical places with permanent day or night. The origin of azimuth is the cardinal point South.

updated: