IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42342


Ignore:
Timestamp:
Jan 30, 2023, 4:03:41 PM (3 years ago)
Author:
tdeboer
Message:

merging on-the-fly desperate diffs added to nightly_science.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ops-20220705/ippScripts/scripts/nightly_science.pl

    r42317 r42342  
    15601560        $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) ";
    15611561        $input_sth .=   " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' ";
    1562         $input_sth .=   " AND camProcessedExp.fwhm_major <= $maxFWHM ";
    15631562        $input_sth .=   " AND substr(rawExp.comment, 1, position(' ' in rawExp.comment)) = '$this_chunk' ORDER BY rawExp.comment,dateobs ";
    15641563
     
    15741573            my $this_state   = ${ $this_warp }[4];
    15751574            my $this_warp_id  = ${ $this_warp }[1];
    1576             my $chip_state   = ${ $this_warp }[6];
     1575            my $this_fwhm   = ${ $this_warp }[6];
     1576            my $chip_state   = ${ $this_warp }[7];
     1577            my $cam_state   = ${ $this_warp }[8];
    15771578            my $cam_state   = ${ $this_warp }[7];
    15781579           
     
    15851586            }
    15861587
    1587             if (($this_quality != 0) || ($this_state eq 'drop') ) {
    1588                 print STDERR "diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state\n";
     1588            if (($this_quality != 0) || ($this_state eq 'drop') || ($this_fwhm > $maxFWHM)) {
     1589                print STDERR "diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state or FWHM $this_fwhm\n";
    15891590            }
    15901591            else {
     
    17861787                my $this_quality = ${ $this_warp }[5];
    17871788                my $this_state   = ${ $this_warp }[4];
    1788                 my $this_fwhm   = ${ $this_warp }[7];
    17891789                my $this_warp_id  = ${ $this_warp }[1];
    1790                 my $chip_state   = ${ $this_warp }[8];
     1790                my $this_fwhm   = ${ $this_warp }[6];
     1791                my $chip_state   = ${ $this_warp }[7];
     1792                my $cam_state   = ${ $this_warp }[8];
    17911793                my $cam_state   = ${ $this_warp }[9];
    17921794
     
    21772179                my $this_quality = ${ $this_warp }[5];
    21782180                my $this_state   = ${ $this_warp }[4];
    2179                 my $this_fwhm    = ${ $this_warp }[7];
    21802181                my $this_warp_id  = ${ $this_warp }[1];
    2181                 my $chip_state   = ${ $this_warp }[8];
     2182                my $this_fwhm    = ${ $this_warp }[6];
     2183                my $chip_state   = ${ $this_warp }[7];
     2184                my $cam_state   = ${ $this_warp }[8];
    21822185                my $cam_state   = ${ $this_warp }[9];
    21832186
Note: See TracChangeset for help on using the changeset viewer.