Changeset 42350
- Timestamp:
- Feb 3, 2023, 8:09:22 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-ops-20220705/ippScripts/scripts/nightly_science.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
r42342 r42350 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,camRun.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' "; … … 1576 1576 my $chip_state = ${ $this_warp }[7]; 1577 1577 my $cam_state = ${ $this_warp }[8]; 1578 my $cam_state = ${ $this_warp }[7];1579 1578 1580 1579 #find exposures for this object that have not been fully processed … … 1770 1769 my $this_chunk = shift @{ $object_row }; 1771 1770 1772 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,camRun.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 "; 1773 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) "; 1774 1773 $input_sth .= " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' "; … … 1791 1790 my $chip_state = ${ $this_warp }[7]; 1792 1791 my $cam_state = ${ $this_warp }[8]; 1793 my $cam_state = ${ $this_warp }[9];1794 1792 1795 1793 #find exposures for this object that have not been fully processed … … 2162 2160 my $this_chunk = shift @{ $object_row }; 2163 2161 2164 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,camRun.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 "; 2165 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) "; 2166 2164 $input_sth .= " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' "; … … 2183 2181 my $chip_state = ${ $this_warp }[7]; 2184 2182 my $cam_state = ${ $this_warp }[8]; 2185 my $cam_state = ${ $this_warp }[9];2186 2183 2187 2184 #find exposures for this object that have not been fully processed
Note:
See TracChangeset
for help on using the changeset viewer.
