aboutsummaryrefslogtreecommitdiffstats
path: root/libred_solar_elevation.3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-10-06 14:54:42 +0200
committerMattias Andrée <maandree@kth.se>2019-10-06 14:54:42 +0200
commitf5b396dd73ea28506286e0be09d5e76e802222a2 (patch)
treecfc285a83639e78858d954cf82815cefe10a55ce /libred_solar_elevation.3
parentClean up (diff)
downloadlibred-f5b396dd73ea28506286e0be09d5e76e802222a2.tar.gz
libred-f5b396dd73ea28506286e0be09d5e76e802222a2.tar.bz2
libred-f5b396dd73ea28506286e0be09d5e76e802222a2.tar.xz
Simplify
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libred_solar_elevation.340
1 files changed, 40 insertions, 0 deletions
diff --git a/libred_solar_elevation.3 b/libred_solar_elevation.3
new file mode 100644
index 0000000..9bb4b0a
--- /dev/null
+++ b/libred_solar_elevation.3
@@ -0,0 +1,40 @@
+.TH LIBRED_SOLAR_ELEVATION 3 LIBRED
+.SH NAME
+libred_solar_elevation \- Calculate the Sun's apparent elevation
+.SH SYNOPSIS
+.nf
+#include <libred.h>
+
+int \fBlibred_solar_elevation\fP(double \fIlatitude\fP, double \fIlongitude\fP, double *\felevation\fP);
+.fi
+.PP
+Link with
+.IR -lred .
+.SH DESCRIPTION
+.BR libred_solar_elevation ()
+calculates the Sun's elevation, and stores it, measured in degrees, in
+.IR *elevation ,
+as apparent from a selected geographical position, namely from
+.I latitude
+degrees north of GPS's equator and
+.I longitude
+degrees east of GPS's prime meridian. The function is only
+explicitly defined for values between -90 and +90 for
+.I latitude
+and values between -180 and +180 for and
+.IR longitude .
+Other values may or may not work, no error is thrown if used.
+.SH RETURN VALUE
+Upon successful completion, the
+.BR libred_solar_elevation ()
+return 0, on failure it returns -1 and sets
+.I errno
+to indicate the error.
+.SH ERRORS
+The function may fail for any reason specified for
+.BR clock_gettime (3).
+.SH SEE ALSO
+.BR libred.h (0),
+.BR libred (7),
+.BR libred_check_timetravel (3),
+.BR libred_get_colour (3)