IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42263


Ignore:
Timestamp:
Aug 8, 2022, 2:19:59 PM (4 years ago)
Author:
tdeboer
Message:

merging new nightly_science protection changes

File:
1 edited

Legend:

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

    r42247 r42263  
    15611561        $input_sth .=   " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' ";
    15621562        $input_sth .=   " AND camProcessedExp.fwhm_major <= $maxFWHM ";
    1563         $input_sth .=   " AND substr(rawExp.comment, 1, position(' ' in rawExp.comment)) = '$this_chunk' ORDER BY dateobs ";
     1563        $input_sth .=   " AND substr(rawExp.comment, 1, position(' ' in rawExp.comment)) = '$this_chunk' ORDER BY rawExp.comment,dateobs ";
    15641564
    15651565        my $warps = $db->selectall_arrayref( $input_sth );
     
    15721572            my $this_quality = ${ $this_warp }[5];
    15731573            my $this_state   = ${ $this_warp }[4];
     1574            my $this_warp_id  = ${ $this_warp }[1];
     1575            if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL')) ) {
     1576                print STDERR "diff_queue: excluding $this_object from making diffs due to exposure $this_exp_id not being processed to warp stage\n";
     1577                next;
     1578            }
     1579
    15741580            if (($this_quality != 0) || ($this_state eq 'drop') ) {
    15751581                print STDERR "diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state\n";
     
    17521758            $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) ";
    17531759            $input_sth .=   " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' ";
    1754             $input_sth .=   " AND substr(rawExp.comment, 1, position(' ' in rawExp.comment)) = '$this_chunk' ORDER BY dateobs ";
     1760            $input_sth .=   " AND substr(rawExp.comment, 1, position(' ' in rawExp.comment)) = '$this_chunk' ORDER BY rawExp.comment,dateobs ";
    17551761
    17561762            my $warps = $db->selectall_arrayref( $input_sth );
     
    21242130            $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) ";
    21252131            $input_sth .=   " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' ";
    2126             $input_sth .=   " AND substr(rawExp.comment, 1, position(' ' in rawExp.comment)) = '$this_chunk' ORDER BY dateobs ";
     2132            $input_sth .=   " AND substr(rawExp.comment, 1, position(' ' in rawExp.comment)) = '$this_chunk' ORDER BY rawExp.comment,dateobs ";
    21272133
    21282134            my $warps = $db->selectall_arrayref( $input_sth );
Note: See TracChangeset for help on using the changeset viewer.