WXP
Program Reference

suncalc

Sections

NAME

suncalc - Sunrise, sunset calculator

SYNOPSIS

suncalc [parameters...] location date

PARAMETERS

Command Line Resource Default Description
-h help No Lists basic help information.
-df=filename default wxp.cfg Sets the name of the resource file.
-na=name name the program name Specifies the name used in resource file parsing.
-me=level message out2 Specifies level of messages to be displayed
-fp=path file_path the current directory Specifies location of database files.
-cf=filename city_file program specific Specifies the name of the city database file
-pa=param[,param...] parameter none Specifies addition parameters to program.
locate none Specifies the location. This is either a 4 letter station identifier or a latitude and longitude "lat,lon[,tz]".
date none

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. If the time zone offset is not specified, 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".
  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:

EXAMPLES

FILES

SEE ALSO


Last updated November 2013