Changeset 35901
- Timestamp:
- Aug 7, 2013, 12:27:21 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
-
PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm (modified) (7 diffs)
-
ippTools/share/releasetool_listrelexp.sql (modified) (1 diff)
-
ippTools/share/warptool_warped.sql (modified) (1 diff)
-
pstamp/scripts/Makefile.am (modified) (1 diff)
-
pstamp/scripts/psgetcalibinfo (added)
-
pstamp/scripts/pstamp_job_run.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
r35625 r35901 176 176 $need_magic, $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $mjd_min, $mjd_max, 177 177 0, 0, # fwhm cuts are not applied here 178 undef, undef, undef, $verbose); 178 undef, 0, # no cam run information 179 undef, undef, $verbose); 179 180 180 181 return $results; … … 322 323 0, $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $mjd_min, $mjd_max, 323 324 getValOrZero($row->{FWHM_MIN}), getValOrZero($row->{FWHM_MAX}), 324 undef, $release_name, $survey,325 undef, 0, $release_name, $survey, 325 326 $verbose); 326 327 … … 351 352 my $fwhm_max = shift; 352 353 my $selectedAstrom = shift; 354 my $selected_cam_id = shift; 353 355 my $release_name = shift; 354 356 my $survey = shift; … … 699 701 $out->{astrom} = $selectedAstrom; 700 702 $out->{cam_path_base} = $selectedAstrom; 703 $out->{cam_id} = $selected_cam_id if $selected_cam_id; 701 704 if ($selectedAstrom =~ /\.smf$/) { 702 705 $out->{cam_path_base} =~ s/\.smf$//; … … 946 949 $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $mjd_min, $mjd_max, 947 950 $fwhm_min, $fwhm_max, 948 $chip->{astrom}, undef, undef,951 $chip->{astrom}, $chip->{cam_id}, undef, undef, 949 952 $verbose); 950 953 … … 970 973 $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $mjd_min, $mjd_max, 971 974 $fwhm_min, $fwhm_max, 972 undef, $release_name, $survey,975 undef, 0, $release_name, $survey, 973 976 $verbose); 974 977 … … 1302 1305 $image->{astrom} = $astromFile; 1303 1306 $image->{cam_path_base} = $camRoot; 1307 $image->{cam_id} = $camRun->{cam_id}; 1304 1308 1305 1309 return 1; -
trunk/ippTools/share/releasetool_listrelexp.sql
r35897 r35901 15 15 relExp.zpt_stdev, 16 16 relExp.mcal, 17 relExp.ubercal_dist, 17 18 relExp.path_base, 18 19 relExp.registered, -
trunk/ippTools/share/warptool_warped.sql
r28627 r35901 13 13 rawExp.decl, 14 14 rawExp.exp_time, 15 camRun.cam_id, 15 16 magicDSRun.state AS dsRun_state, 16 17 IFNULL(magicDSRun.magic_ds_id, 0) AS magic_ds_id -
trunk/pstamp/scripts/Makefile.am
r33324 r35901 21 21 pstamp_get_image_job.pl \ 22 22 psmkreq \ 23 psgetcalibinfo \ 23 24 psstatus \ 24 25 pstampstopfaulted \ -
trunk/pstamp/scripts/pstamp_job_run.pl
r35900 r35901 78 78 my $ppstamp = can_run('ppstamp') or (warn "Can't find ppstamp" and $missing_tools = 1); 79 79 my $pstamp_get_image_job = can_run('pstamp_get_image_job.pl') or (warn "Can't find pstamp_get_image_job.pl" and $missing_tools = 1); 80 my $psgetcalibinfo = can_run('psgetcalibinfo') or (warn "Can't find psgetcalibinfo" and $missing_tools = 1); 80 81 my $dquery_job_run = can_run('dquery_job_run.pl') or (warn "Can't find dquery_job_run.pl" and $missing_tools = 1); 81 my $streaksreplace = can_run('streaksreplace') or (warn "Can't find streaksreplace" and $missing_tools = 1);82 82 my $whichnode = can_run('whichnode') or (warn "can't find whichnode" and $missing_tools = 1); 83 83 … … 151 151 # find our output directory 152 152 my $outdir = dirname($outputBase); 153 my ($tmpImage, $tmpMask, $tmpVariance, $tmproot); 154 153 154 my ($calib_fd, $calibfile); 155 if ($stage eq 'chip' or $stage eq 'warp') { 156 my $cam_id = $params->{cam_id}; 157 ($calib_fd, $calibfile) = tempfile ("$outdir/calib.XXXX", UNLINK => !$save_temps); 158 close $calib_fd; 159 160 my $command = "$psgetcalibinfo --cam_id $cam_id --output $calibfile"; 161 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 162 run(command => $command, verbose => $verbose); 163 164 my $exitStatus; 165 if (WIFEXITED($error_code)) { 166 $exitStatus = WEXITSTATUS($error_code); 167 } else { 168 print STDERR "psgetcalibinfo failed error_code: $error_code\n"; 169 $exitStatus = $PS_EXIT_SYS_ERROR; 170 } 171 exit $exitStatus if $exitStatus; 172 173 if (-s $calibfile == 0) { 174 print "no calibration information found for $cam_id\n"; 175 $calibfile = undef; 176 } 177 } 178 179 # my ($tmpImage, $tmpMask, $tmpVariance, $tmproot); 180 155 181 my $command = "$ppstamp $outputBase $argString $fileArgs"; 156 182 $command .= " -write_jpeg" if ($options & $PSTAMP_SELECT_JPEG); 157 183 $command .= " -nocompress" if ($options & $PSTAMP_SELECT_UNCOMPRESSED); 158 184 $command .= " -stage $stage"; 185 $command .= " -forheader $calibfile" if $calibfile; 159 186 $command .= " -dbname $dbname" if $dbname; 160 187 $command .= " -dbserver $dbserver" if $dbserver;
Note:
See TracChangeset
for help on using the changeset viewer.
