WXP version 5
Program Reference

SUNCALC

Sections

NAME

suncalc - Computes sunrise/sunset times.

SYNOPSIS

suncalc [parameters...] location date

PARAMETERS

Command Line Resource Default Description
-h help No Lists basic help information.
-df=filename default .wxpdef Sets the name of the resource file.
-na=name name tafcvt Specifies the name used in resource file parsing.
-ba batch No Run program in batch mode
-me=level message out2 Specifies level of messages to be displayed
  • output - print
-fp=filepath file_path current directory Specifies location of database files.  
-cf=cityfile city_file None Specifies the name of the city database file used in finding station names.
-pa=param[,param...] parameter None Extra parameters (none currently)
location date value None
User Pompt
The location is either:
lat,lon[,zone] or ident[,zone]

The date is either:
yyyy/mm/dd/dd[+nn] or cyear, cmonth, cday[+nn]

DESCRIPTION

This program does general sunrise and sunset computations. The input to the program is two parameters:

  1. location -- This is specified with either the latitude and longitude of the site or a station identifier which is looked up in the sao.cty city database file for location. Remember that latitude is positive north and longitude is positive east. The time zone is computed from the longitude but this often does not give the true time zone. The zone parameter is an hour offset from GMT. For example, EST is "-5". There is an optional "N" parameter if the site does not go on daylight time.
  2. date -- This is specified either with the exact date or with the current date which can be cyear, cmonth, or cday. An optional minute increment can be specified "+nn".

The "DST" environment variable can be set to toggle the zone computation into daylight time.

   setenv DST yes

The program output varies on the input to the program.

The output has the following data:

FILES

SEE ALSO


Last updated Jun 4, 1997