projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add the latest CTY data
[spider.git]
/
perl
/
Sun.pm
diff --git
a/perl/Sun.pm
b/perl/Sun.pm
index bd087742eb4b1b254bc06e2cb9e2c03c46a6406f..301fa4a5b862906b55409d8025c64ae3915afe36 100644
(file)
--- a/
perl/Sun.pm
+++ b/
perl/Sun.pm
@@
-18,13
+18,14
@@
#
# $Id$
#
#
# $Id$
#
+# 2005/02/25 add calculation of civil dawn and dusk, defined to be times
+# when solar zenith angle is 96 degrees.
# 2001/12/16 Fixed Julian_Date_of_Epoch and now I actually use it...
# 2001/09/15 some changes to take care of cases where the object
# doesn't rise or set on a given day...
package Sun;
# 2001/12/16 Fixed Julian_Date_of_Epoch and now I actually use it...
# 2001/09/15 some changes to take care of cases where the object
# doesn't rise or set on a given day...
package Sun;
-use POSIX;
require Exporter;
@ISA = qw(Exporter);
require Exporter;
@ISA = qw(Exporter);
@@
-33,8
+34,10
@@
require Exporter;
use strict;
use vars qw($VERSION $BRANCH);
use strict;
use vars qw($VERSION $BRANCH);
-
-main::mkver($VERSION = q$Revision$);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
+$main::build += $VERSION;
+$main::branch += $BRANCH;
use vars qw($pi $d2r $r2d);
use vars qw($pi $d2r $r2d);
@@
-46,6
+49,9
@@
use vars qw(%keps);
use Keps;
use DXVars;
use DXUtil;
use Keps;
use DXVars;
use DXUtil;
+use DXDebug;
+
+use POSIX qw(:math_h);
# reload the keps data
sub load
# reload the keps data
sub load