Scroll to navigation

SOLAR(1gmt) GMT SOLAR(1gmt)

NAME

solar - Plot day-light terminators and other sunlight parameters

SYNOPSIS

gmt solar [ -B[p|s]parameters ] [ -C ] [ -Gfill|c ] [ -I[lon/lat][+ddate][+zTZ] ] [ -Jparameters ] [ -M ] [ -N ] [ -Q ] [ -Rregion ] [ -Tdcna[+ddate][+zTZ]] [ -U[stamp] ] [ -V[level] ] [ -Wpen ] [ -X[a|c|f|r][xshift[u]] ] [ -Y[a|c|f|r][yshift[u]] ] [ -bobinary ] [ -hheaders ] [ -oflags ] [ -pflags ] [ -ttransp ] [ --PAR=value ]

Note: No space is allowed between the option flag and the associated arguments.

DESCRIPTION

solar Calculate and plot the day-night terminator and the civil, nautical and astronomical twilights.

REQUIRED ARGUMENTS

None.

OPTIONAL ARGUMENTS

Set map boundary frame and axes attributes.

Formats the report selected by -I using tab-separated fields on a single line. The output is Sun Lon Lat Azimuth Elevation in degrees, Sunrise Sunset Noon in decimal days, day length in minutes, SolarElevationCorrected corrected for the effect of refraction index and Equation of time in minutes. Note that if no position is provided in -Ilon/lat the data after Elevation refers to the point (0,0).

Select color or pattern for filling of terminators; or use -Gc for clipping [Default is no fill]. Deactivate clipping by appending the output of gmt clip -C.

Print current sun position as well as Azimuth and Elevation. Append lon/lat to print also the times of Sunrise, Sunset, Noon and length of the day. Add +ddate in ISO format, e.g, +d2000-04-25, to compute sun parameters for this date. If necessary, append time zone via +zTZ.

Select map projection.

Write terminator(s) as a multisegment ASCII (or binary, see -bo) file to standard output. No plotting occurs.

Invert the sense of what is inside and outside the terminator. Only used with clipping (-Gc) and cannot be used together with -B.

Specify the region of interest.

Plot (or dump; see -M) one or more terminators defined via the dcna flags. Where: d means day/night terminator; c means civil twilight; n means nautical twilight; a means astronomical twilight. Add +ddate in ISO format, e.g, +d2000-04-25T12:15:00 to know where the day-night was at that date. If necessary, append time zone via +zTZ.

Draw GMT time stamp logo on plot.

Select verbosity level [c].

Set pen attributes for lines or the outline of symbols [Defaults: width = default, color = black, style = solid].

-X[a|c|f|r][xshift[u]]


Select native binary output.

Skip or produce header record(s).

Select output columns (0 is first column; t is trailing text, append word to write one word only).


Set transparency level in percent.

EXAMPLES

Print current Sun position and Sunrise, Sunset times at:

gmt solar -I-7.93/37.079+d2016-02-04T10:01:00




Plot the day-night and civil twilight

gmt begin
gmt coast -Rd -W0.1p -JQ0/14c -Ba -BWSen -Dl -A1000
gmt solar -W1p -Tdc
gmt end show




Set up a clip path overlay based on the day/night terminator:

gmt solar -Gc -Tc




REFERENCES

Code from the Excel Spreadsheets in http://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html

NOTES

Taken from the NOOA site Data for Litigation note.

The NOAA Solar Calculator is for research and recreational use only. NOAA cannot certify or authenticate sunrise, sunset or solar position data. The U.S. Government does not collect observations of astronomical data, and due to atmospheric conditions our calculated results may vary significantly from actual observed values.

For further information, please see the U.S. Naval Observatory's page Astronomical Data Used for Litigation

SEE ALSO

gmt, clip, coast, plot

COPYRIGHT

2019, The GMT Team

September 7, 2019 6.0.0rc4