IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 10, 2011, 1:51:21 PM (15 years ago)
Author:
watersc1
Message:

Update laptool_definerun to not attempt to define two rows for the same exp_id. Speed up laptool_exposures, as well as add better quality handling for lap_science.pl

File:
1 edited

Legend:

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

    r31498 r31511  
    474474            $exposure = remake_this_exposure($exposure);
    475475        }
    476         if ($exposure->{cam_quality}) {
    477             $needs_qstack = 1;
    478             $needs_something_private = 1;
    479             if ($companion) {
    480                 $companion->{private} = 1;
    481                 $companion->{pairwise} = 0;
    482                 &update_this_exposure($companion);
     476        # Do quality checks here
     477        if ((($exposure->{chipRun_state} eq 'full')&&($exposure->{chip_bad_quality} / $exposure->{chip_component_count} > 0.05)) ||
     478            (($exposure->{camRun_state} eq 'full')&&($exposure->{cam_bad_quality} / $exposure->{cam_component_count} > 0)) ||
     479            (($exposure->{warpRun_state} eq 'full')&&($exposure->{warp_bad_quality} / $exposure->{warp_component_count} > 0.2)) ||
     480            (($exposure->{diffRun_state} eq 'full')&&($exposure->{diff_bad_quality} / $exposure->{diff_component_count} > 0.5)))  {
     481            printf( "QUALITY: $exposure->{exp_id} has bad quality fractions: chip: %d/%d cam: %d/%d warp: %d/%d diff: %d/%d\n",
     482                    $exposure->{chip_bad_quality} , $exposure->{chip_component_count},
     483                    $exposure->{cam_bad_quality} , $exposure->{cam_component_count},
     484                    $exposure->{warp_bad_quality} , $exposure->{warp_component_count},
     485                    $exposure->{diff_bad_quality} , $exposure->{diff_component_count});
     486
     487            unless ($exposure->{diffRun_state} eq 'full') {
     488                $needs_qstack = 1;
     489                $needs_something_private = 1;
     490                if ($companion) {
     491                    $companion->{private} = 1;
     492                    $companion->{pairwise} = 0;
     493                    &update_this_exposure($companion);
     494                }
     495                $exposure->{private} = 1;
     496                $exposure->{pairwise} = 0;
    483497            }
    484             $exposure->{private} = 1;
    485             $exposure->{pairwise} = 0;
    486498            $exposure->{data_state} = 'drop';
    487499            &update_this_exposure($exposure);
    488500
    489501        }
    490 #       if ($companion) { # Validate that there are no problems with the companion exposure
    491 #           if ($companion->{cam_quality}) { # Maybe other things here?
    492 #               $exposure->{private} = 1;
    493 #               $exposure->{data_state} = 'drop';
    494 #               &update_this_exposure($exposure);
    495 #               $needs_qstack = 1;
    496 #           }
    497 #       }
     502
    498503        if  ($exposure->{data_state} eq 'drop') { # This exposure is impossible, so fudge the counts so we get through.
    499504            $can_qstack ++;
Note: See TracChangeset for help on using the changeset viewer.