Changeset 42344
- Timestamp:
- Jan 31, 2023, 2:13:50 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-ops-20220906/ippScripts/scripts/nightly_science.pl
- Property svn:mergeinfo changed
/trunk/ippScripts/scripts/nightly_science.pl merged: 42306,42316,42341
r42310 r42344 1557 1557 my $this_object = shift @{ $object_row }; 1558 1558 my $this_chunk = shift @{ $object_row }; 1559 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality,c hipRun.state FROM ";1559 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality,camProcessedExp.fwhm_major,chipRun.state,camRun.state FROM "; 1560 1560 $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) "; 1561 1561 $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 ";1563 1562 $input_sth .= " AND substr(rawExp.comment, 1, position(' ' in rawExp.comment)) = '$this_chunk' ORDER BY rawExp.comment,dateobs "; 1564 1563 … … 1574 1573 my $this_state = ${ $this_warp }[4]; 1575 1574 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]; 1577 1578 1578 1579 #find exposures for this object that have not been fully processed 1579 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL') || ($chip_state eq 'run') ) ) { 1580 $Nbad += 1; 1581 } 1582 1583 if (($this_quality != 0) || ($this_state eq 'drop') ) { 1584 print STDERR "diff_queue: excluding $this_exp_id for $this_object due to non-zero cam.quality $this_quality or state $this_state\n"; 1580 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL')) ) { 1581 $Nbad += 1; 1582 } 1583 if (($chip_state ne 'full') || ($cam_state ne 'full') ) { 1584 $Nbad += 1; 1585 } 1586 1587 if (($this_quality != 0) || ($this_state eq 'drop') || ($this_fwhm > $maxFWHM)) { 1588 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"; 1585 1589 } 1586 1590 else { … … 1765 1769 my $this_chunk = shift @{ $object_row }; 1766 1770 1767 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality, substr(comment, 1, position(' ' in comment)),camProcessedExp.fwhm_major,chipRun.state FROM ";1771 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality,camProcessedExp.fwhm_major,chipRun.state,camRun.state FROM "; 1768 1772 $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) "; 1769 1773 $input_sth .= " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' "; … … 1782 1786 my $this_quality = ${ $this_warp }[5]; 1783 1787 my $this_state = ${ $this_warp }[4]; 1784 my $this_fwhm = ${ $this_warp }[7];1785 1788 my $this_warp_id = ${ $this_warp }[1]; 1786 my $chip_state = ${ $this_warp }[8]; 1789 my $this_fwhm = ${ $this_warp }[6]; 1790 my $chip_state = ${ $this_warp }[7]; 1791 my $cam_state = ${ $this_warp }[8]; 1787 1792 1788 1793 #find exposures for this object that have not been fully processed 1789 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL') || ($chip_state eq 'run') ) ) { 1790 $Nbad += 1; 1791 } 1794 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL')) ) { 1795 $Nbad += 1; 1796 } 1797 if (($chip_state ne 'full') || ($cam_state ne 'full') ) { 1798 $Nbad += 1; 1799 } 1792 1800 1793 1801 if (($this_quality != 0) || ($this_state eq 'drop') || ($this_fwhm > $maxFWHM)) { … … 2152 2160 my $this_chunk = shift @{ $object_row }; 2153 2161 2154 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality y,substr(comment, 1, position(' ' in comment)),camProcessedExp.fwhm_major,chipRun.state FROM ";2162 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality,camProcessedExp.fwhm_major,chipRun.state,camRun.state FROM "; 2155 2163 $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) "; 2156 2164 $input_sth .= " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' "; … … 2169 2177 my $this_quality = ${ $this_warp }[5]; 2170 2178 my $this_state = ${ $this_warp }[4]; 2171 my $this_fwhm = ${ $this_warp }[7];2172 2179 my $this_warp_id = ${ $this_warp }[1]; 2173 my $chip_state = ${ $this_warp }[8]; 2180 my $this_fwhm = ${ $this_warp }[6]; 2181 my $chip_state = ${ $this_warp }[7]; 2182 my $cam_state = ${ $this_warp }[8]; 2174 2183 2175 2184 #find exposures for this object that have not been fully processed 2176 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL') || ($chip_state eq 'run')) ) {2185 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL')) ) { 2177 2186 $Nbad += 1; 2178 2187 } 2188 if (($chip_state ne 'full') || ($cam_state ne 'full') ) { 2189 $Nbad += 1; 2190 } 2179 2191 2180 2192 if (($this_quality != 0) || ($this_state eq 'drop') || ($this_fwhm > $maxFWHM)) { - Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
