Description Usage Arguments Value Note Author(s) Examples
Calculates the declination of the sun, the greenwhich hour angle and the latitudes of the of the sun movements throughout one day.
1 |
time |
needs to be of following format: %Y-%m-%d (%Y Year with century, %m Month as decimal number (01-12), %d Day of the month as decimal number (01-31)), %H:%M:%S (%H Hours as decimal number (00-23), %M Minute as decimal number (00-59), %S Second as decimal number (00-61) |
timezone |
has to be an integer, e.g. a number between -11 and +11 (0 for GMT, +1 for CMT, etc.) |
Time |
is an object of class 'POSIXlt' representing the input time. |
tz |
is an integer representing the input timezone |
Latitude |
is a vector fo doubles containing the Latitudes of the night and day boundary. |
Declination |
returns a double of the sun declination. |
GHA |
returns a double of the greenwhich hour angle. |
The function NightDay can be used in combination with your own maps and plot functions.
Max Hughes-Brandl
1 2 3 4 |
Loading required package: maps
$Time
[1] "2018-10-25 18:14:33 UTC"
$tz
[1] 1
$Latitude
[1] 78 78 78 78 78 78 78 78 78 78 78 77 77 77 77 77 77 77
[19] 77 77 77 77 77 77 77 76 76 76 76 76 76 76 75 75 75 75
[37] 75 75 74 74 74 74 73 73 73 73 72 72 72 71 71 71 70 70
[55] 69 69 68 68 67 67 66 65 64 64 63 62 61 60 59 58 56 55
[73] 53 52 50 48 46 44 41 39 36 33 29 26 22 18 14 9 5 0
[91] -5 -9 -14 -18 -22 -26 -29 -33 -36 -39 -41 -44 -46 -48 -50 -52 -53 -55
[109] -56 -58 -59 -60 -61 -62 -63 -64 -64 -65 -66 -67 -67 -68 -68 -69 -69 -70
[127] -70 -71 -71 -71 -72 -72 -72 -73 -73 -73 -73 -74 -74 -74 -74 -75 -75 -75
[145] -75 -75 -75 -76 -76 -76 -76 -76 -76 -76 -77 -77 -77 -77 -77 -77 -77 -77
[163] -77 -77 -77 -77 -77 -77 -78 -78 -78 -78 -78 -78 -78 -78 -78 -78 -78 -78
[181] -78 -78 -78 -78 -78 -78 -78 -78 -78 -78 -78 -77 -77 -77 -77 -77 -77 -77
[199] -77 -77 -77 -77 -77 -77 -77 -76 -76 -76 -76 -76 -76 -76 -75 -75 -75 -75
[217] -75 -75 -74 -74 -74 -74 -73 -73 -73 -73 -72 -72 -72 -71 -71 -71 -70 -70
[235] -69 -69 -68 -68 -67 -67 -66 -65 -64 -64 -63 -62 -61 -60 -59 -58 -56 -55
[253] -53 -52 -50 -48 -46 -44 -41 -39 -36 -33 -29 -26 -22 -18 -14 -9 -5 0
[271] 5 9 14 18 22 26 29 33 36 39 41 44 46 48 50 52 53 55
[289] 56 58 59 60 61 62 63 64 64 65 66 67 67 68 68 69 69 70
[307] 70 71 71 71 72 72 72 73 73 73 73 74 74 74 74 75 75 75
[325] 75 75 75 76 76 76 76 76 76 76 77 77 77 77 77 77 77 77
[343] 77 77 77 77 77 77 78 78 78 78 78 78 78 78 78 78 78
$Declination
[1] -12.25417
$GHA
[1] 82.62092
attr(,"class")
[1] "NightDay"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.