use WCY::r if recent enough and available
authorminima <minima>
Sun, 13 Mar 2005 19:52:34 +0000 (19:52 +0000)
committerminima <minima>
Sun, 13 Mar 2005 19:52:34 +0000 (19:52 +0000)
cmd/show/muf.pl

index 488ad8df8153172383c6879449eaccedacdca789..31bebfeec62b5c71b3d8765ca5fbaa0f81de0026 100644 (file)
@@ -68,7 +68,12 @@ if ($lp) {
 my ($hr1, $day, $month) = (gmtime($main::systime))[2,3,4];
 $month++;
 my $flux = Geomag::sfi;
-my $ssn = Minimuf::spots($flux);
+my $ssn;
+if ($main::systime - $WCY::date < 86400) {
+       $ssn = $WCY::r
+} else {
+       $ssn = Minimuf::spots($flux);
+}
 
 my $theta;                                             # path angle (rad) 
 $theta=$lon1-$lon2;