Rafi's Java Utility: Position of the Sun in the Sky

Java Utility Sun Position



This Java utility computes the course of the sun in the sky during a specified day (by Rafael Wiemker 1994). This is NOT a java-applet BUT a java-application which must be downloaded before execution.

Download the java bytecode , save it under the filename: Sunposition.class, and then run it with the command line:

java Sunposition lat lon year month day step > output_file

EXAMPLE:
for Kassel, FRG, 1996, June 1, time step of 3 minutes:
java Sunposition 51.3 9.5 1996 6 1 3 > output_file

The utility call is followed by six figures in the command line, where lat and lon are the latitude and longitude of the observer, then the date follows, and finally the time step in minutes. The resulting table with the solar altitude and azimuth for the specified day in the specified time steps is written to standard out. Latitude is + for north and - for south, longitude is + for east and - for west. The output time is CET (Central European Time, in integer units of hours and minutes) and UT (Greenwhich Universal Time, CET = UT + 1 hour, in decimal units of hours).

Get the java bytecode here --> Sunposition.class (bytecode)

The Java source can be found here: Sunposition.java (source) .