1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
use PyAstroTime;
use PyITRFCoord;
use pyutils;
use cratesun;
use *;
/// Sun position in the Geocentric Celestial Reference Frame (GCRF)
///
/// Notes:
// * Algorithm 29 from Vallado for sun in Mean of Date (MOD), then rotated from MOD to GCRF via Equations 3-88 and 3-89 in Vallado.
/// * Valid with accuracy of .01 degrees from 1950 to 2050
///
/// Args:
/// time (satkit.time, numpy array, or list): time[s] at which to compute position
///
/// Returns:
/// numpy.ndarray: 3-element array or Nx3 array representing sun position in GCRF frame at input time[s]
/// Sun position in the Mean-of-Date Frame
///
/// Notes:
/// * Algorithm 29 from Vallado for sun in Mean of Date (MOD)
/// * Valid with accuracy of .01 degrees from 1950 to 2050
/// Args:
/// time (AstroTime, numpy array, or list): time[s] at which to compute position
///
/// Returns:
/// numpy.ndarray: 3-element array or Nx3 array representing sun position in MOD frame at input time[s]
/// Sunrise and sunset times on the day given by input time and at the given location.
///
/// Notes:
/// * Vallado Algorithm 30
/// * Time is at location, and should have hours, minutes, and seconds set to zero
/// * Sigma is the angle between noon and rise/set. Common values:
/// * "Standard": 90 deg, 50 arcmin (90.0+50.0/60.0)
/// * "Civil Twilight": 96 deg
/// * "Nautical Twilight": 102 deg
/// * "Astronomical Twilight": 108 deg
///
/// Args:
/// time (satkit.time): time at which to compute sunrise and sunset
/// coord (satkit.ITRFCoord): location at which to compute sunrise and sunset
/// sigma (float, optional): angle in degrees between noon and rise/set. Default is 90.0+50.0/60.0 (Standard)
///
/// Returns:
/// (satkit.time, satkit.time): tuple of sunrise and sunset times