IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2011, 10:28:40 AM (15 years ago)
Author:
eugene
Message:

merge from trunk

Location:
branches/eam_branches/ipp-20110213/ippScripts/scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/ippScripts/scripts/ipp_apply_burntool_single.pl

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20110213/ippScripts/scripts/magic_destreak.pl

    r30328 r30700  
    152152
    153153
     154# We don't use recoveryroot for camera stage
     155if ($stage eq 'camera') {
     156    $recoveryroot = undef;
     157}
     158
    154159# default value is "NULL" do not use
    155160if (defined($recoveryroot) and ($recoveryroot eq "NULL")) {
  • branches/eam_branches/ipp-20110213/ippScripts/scripts/magic_destreak_revert.pl

    r30676 r30700  
    451451{
    452452    foreach my $file (@_) {
     453        next if !$file;
    453454        if ($ipprc->file_exists($file)) {
    454455            if (!$ipprc->file_delete($file)) {
  • branches/eam_branches/ipp-20110213/ippScripts/scripts/nightly_science.pl

    r30575 r30700  
    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.