IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 14, 2009, 5:07:57 PM (17 years ago)
Author:
watersc1
Message:

Fixed bug in which nights with only engineering data would not be correctly filtered out (resulting in impossible date limits of "1969-12-31 14:00:00").

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/make_burntool_pcontrol.pl

    r25305 r25378  
    130130                             nanosecond => 0, time_zone => 'Pacific/Honolulu')->subtract(minutes => 30);
    131131        $et = $dt->epoch();
    132        
     132
     133
    133134        if (!exists($science{$obs_mode})) {
    134135            $science{$obs_mode} = 0;
     
    155156
    156157    }
    157    
     158
     159    # If this night has no science exposures, skip to the next one.
     160    if (($#start_s == 0) && ($start_s[0] == 0)) {
     161        next;
     162    }
    158163    # Scan again and count how many exposures are between windows
    159164    foreach $row_ref (@{ $data_ref }) {
     
    165170            $comment = ' ';
    166171        }
    167        
     172
    168173        ($date,$time) = split / /, $dateobs;
    169174        ($year,$month,$day) = split /-/, $date;
     
    178183                             nanosecond => 0, time_zone => 'Pacific/Honolulu')->subtract(minutes => 30);
    179184        $et = $dt->epoch();
    180        
     185
    181186        if (!exists($science{$obs_mode})) {
    182187            die "No mode >>$obs_mode<<\n";
Note: See TracChangeset for help on using the changeset viewer.