- Timestamp:
- Aug 11, 2009, 3:54:00 PM (17 years ago)
- Location:
- branches/czw_branch/cleanup
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pstamp/scripts/pstamp_finish.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/cleanup
- Property svn:mergeinfo changed
/trunk merged: 24940-24950,24953-24971,24973-24977,24986-24989,24993-25017,25019,25021,25023-25024,25026,25029-25031,25036-25049
- Property svn:mergeinfo changed
-
branches/czw_branch/cleanup/pstamp/scripts/pstamp_finish.pl
r24951 r25051 173 173 } 174 174 175 my $exp_info; 176 my $last_exp_id = -1; 175 177 foreach my $job (@jobs) { 176 178 my $job_id = $job->{job_id}; … … 181 183 182 184 my ($row, $req_info, $project) = get_request_info($rows, $rownum); 183 my $proj_hash = resolve_project($ipprc, $project, $dbname); 185 186 my $proj_hash = resolve_project($ipprc, $project, $dbname, $dbserver); 184 187 my $image_db = $proj_hash->{dbname}; 185 186 # get the metadata for the exposure (if any i.e. stack) 187 # returns an appropriate string if !$exp_id 188 my $exp_info = get_exposure_info($image_db, $exp_id); 188 if (!$image_db) { 189 carp("failed to find imagedb for project: $project"); 190 stop_request($req_id, $PS_EXIT_CONFIG_ERROR); 191 } 192 193 if ($exp_id ne $last_exp_id) { 194 # get the metadata for the exposure (if any i.e. stack) 195 # returns an appropriate string if !$exp_id 196 $exp_info = get_exposure_info($image_db, $exp_id); 197 $last_exp_id = $exp_id; 198 } 189 199 190 200 if (($job_type eq "stamp") || ($job_type eq "get_image")) { … … 292 302 # Create a results file module and provide a list of the names (we have the data in the columns) 293 303 my $rowinfo = "$row->{PROJECT}|$row->{JOB_TYPE}|$row->{REQ_TYPE}|$row->{IMG_TYPE}|"; 294 $rowinfo .= "$row->{ID}|$row->{ CLASS_ID}|$row->{OPTION_MASK}|$row->{MJD_MIN}|$row->{MJD_MAX}|";304 $rowinfo .= "$row->{ID}|$row->{TESS_ID}|$row->{COMPONENT}|$row->{OPTION_MASK}|$row->{MJD_MIN}|$row->{MJD_MAX}|"; 295 305 $rowinfo .= "$row->{REQFILT}|$row->{COORD_MASK}|$row->{CENTER_X}|$row->{CENTER_Y}|"; 296 306 $rowinfo .= "$row->{WIDTH}|$row->{HEIGHT}";
Note:
See TracChangeset
for help on using the changeset viewer.
