IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 18, 2011, 2:08:55 PM (15 years ago)
Author:
watersc1
Message:

Update to handle bad camera stage quality in diff queuing. Not really a show stopping bug, but it prevented it from reaching FINISHED_DIFFS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/nightly_science.pl

    r30575 r30688  
    13151315    my $cam_ref  = $db->selectall_arrayref( $cam_sth );
    13161316    my $warp_ref = $db->selectall_arrayref( $warp_sth );
    1317 
    13181317    return($#{ $chip_ref } + 1, $#{ $cam_ref } + $#{ $warp_ref } + 2);
    13191318}
     
    14391438#       $input_sth .= " ORDER BY dateobs ";
    14401439       
    1441         my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state FROM ";
    1442         $input_sth .=   " rawExp LEFT JOIN chipRun USING (exp_id) LEFT JOIN camRun USING (chip_id) LEFT JOIN fakeRun USING (cam_id) LEFT JOIN warpRun USING (fake_id) ";
     1440        my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality FROM ";
     1441        $input_sth .=   " rawExp LEFT JOIN chipRun USING (exp_id) LEFT JOIN camRun USING (chip_id) LEFT JOIN camProcessedExp USING(cam_id) LEFT JOIN fakeRun USING (cam_id) LEFT JOIN warpRun USING (fake_id) ";
    14431442        $input_sth .=   " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' ";
    14441443        $input_sth .=   " ORDER BY dateobs ";
     
    14611460            }
    14621461            else {
    1463                 print STDERR ": I should declare an exposure to be faulty.\n";
     1462                print STDERR ": I should declare an exposure to be qualityy.\n";
    14641463                my @keep_warps = ();
    14651464#               print "@{ $warps }\n";
     
    14941493            my $input_warp_state = ${ $input_warp }[4];
    14951494            my $template_warp_state = ${ $template_warp }[4];
    1496            
     1495
     1496            my $input_warp_camQuality = ${ $input_warp }[5];
     1497            my $template_warp_camQuality = ${ $template_warp }[5];
     1498
    14971499            $Npotential++;
    14981500
    14991501            unless (defined($input_warp_id) && defined($template_warp_id) &&
    15001502                    ($input_warp_state eq 'full')&&($template_warp_state eq 'full')) {
    1501                 print STDERR "Diff for this $date $target $input_exp_id $template_exp_id not fully processed\n";
     1503                print STDERR "Diff for this $date $target $input_exp_id $template_exp_id not fully processed ($input_warp_state $template_warp_state) ($input_warp_camQuality $template_warp_camQuality)\n";
     1504                if (($input_warp_camQuality == 4007)||($template_warp_camQuality == 4007)) {
     1505                    print STDERR "  ...but this is due to a camera stage astrometry quality\n";
     1506                    $Npotential--;
     1507                }
    15021508                next;
    15031509            }
Note: See TracChangeset for help on using the changeset viewer.