Changeset 24339 for trunk/ippScripts/scripts/ipp_serial_mops.pl
- Timestamp:
- Jun 5, 2009, 10:42:55 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_serial_mops.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_mops.pl
r24336 r24339 80 80 MAX(diffWarps.diff_id) AS diff_id, 81 81 -- The following trick pulls out the appropriate values for the maximum diff_id 82 SUBSTRING_INDEX(GROUP_CONCAT(camTemplate.zpt_obs ORDER BY diffWarps.diff_id), ',', 1) AS zpt_obs, 82 SUBSTRING_INDEX(GROUP_CONCAT(camProcessedTemplate.zpt_obs ORDER BY diffWarps.diff_id), ',', 1) AS zpt_obs, 83 SUBSTRING_INDEX(GROUP_CONCAT(rawTemplate.exp_time ORDER BY diffWarps.diff_id), ',', 1) AS exp_time, 83 84 CONVERT(SUBSTRING_INDEX(GROUP_CONCAT(diffWarps.inverse ORDER BY diffWarps.diff_id), ',', 1), UNSIGNED) AS inverse 84 85 FROM ( … … 117 118 JOIN warpRun AS warpTemplate ON warpTemplate.warp_id = diffWarps.template_warp 118 119 JOIN fakeRun AS fakeTemplate ON fakeTemplate.fake_id = warpTemplate.fake_id 119 JOIN camProcessedExp AS camTemplate ON camTemplate.cam_id = fakeTemplate.cam_id 120 JOIN camRun AS camTemplate ON camTemplate.cam_id = fakeTemplate.cam_id 121 JOIN camProcessedExp AS camProcessedTemplate ON camProcessedTemplate.cam_id = camTemplate.cam_id 122 JOIN chipRun AS chipTemplate ON chipTemplate.chip_id = camTemplate.chip_id 123 JOIN rawExp AS rawTemplate ON rawTemplate.exp_id = chipTemplate.exp_id 120 124 WHERE rawExp.camera = '$camera' 121 125 GROUP BY exp_id;"; … … 132 136 my $exp_id = $diff->{exp_id}; 133 137 my $zp = $diff->{zpt_obs}; 138 my $exp_time = $diff->{exp_time}; 134 139 my $diff_id = $diff->{diff_id}; 135 140 my $inverse = $diff->{inverse}; 141 142 (carp "Bad ZP or EXPTIME for $exp_id" and next) if not defined $zp or not defined $exp_time; 143 $zp += 2.5 * log($exp_time) / log(10); 136 144 137 145 my $sql = "SELECT * FROM diffSkyfile WHERE diff_id = $diff_id AND fault = 0 AND quality = 0;";
Note:
See TracChangeset
for help on using the changeset viewer.
