diff options
author | mleech | 2008-12-21 02:11:49 +0000 |
---|---|---|
committer | mleech | 2008-12-21 02:11:49 +0000 |
commit | 13b15589f0b98fbd13fa42c31dcfbe2674dd562c (patch) | |
tree | 155ec9a104328357bb83c4587899acceb2a561a5 /gr-radio-astronomy/src | |
parent | 88daa730d23983109b116e59331c11a11a1ef537 (diff) | |
download | gnuradio-13b15589f0b98fbd13fa42c31dcfbe2674dd562c.tar.gz gnuradio-13b15589f0b98fbd13fa42c31dcfbe2674dd562c.tar.bz2 gnuradio-13b15589f0b98fbd13fa42c31dcfbe2674dd562c.zip |
Updated Sunset/Sunrise functions to latest PyEphem API
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10147 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radio-astronomy/src')
-rwxr-xr-x | gr-radio-astronomy/src/python/usrp_ra_receiver.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-radio-astronomy/src/python/usrp_ra_receiver.py b/gr-radio-astronomy/src/python/usrp_ra_receiver.py index bed31f7dd..c82598c06 100755 --- a/gr-radio-astronomy/src/python/usrp_ra_receiver.py +++ b/gr-radio-astronomy/src/python/usrp_ra_receiver.py @@ -759,9 +759,11 @@ class app_flow_graph(stdgui2.std_top_block): if (now - self.continuum_then > 20): self.sun.compute(self.locality) enow = ephem.now() + sunset = self.locality.next_setting(self.sun) + sunrise = self.locality.next_rising(self.sun) sun_insky = "Down" self.sunstate = "Dn" - if ((self.sun.rise_time < enow) and (enow < self.sun.set_time)): + if ((sunrise < enow) and (enow < sunset)): sun_insky = "Up" self.sunstate = "Up" self.continuum_then = now |