Changeset 19761 for trunk/pstamp/scripts
- Timestamp:
- Sep 25, 2008, 2:06:31 PM (18 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 2 edited
-
pstamp_finish.pl (modified) (1 diff)
-
pstampparse.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_finish.pl
r19279 r19761 163 163 # unless $exp_id is null (e.g. stack images) get the metadata for this exposure 164 164 my ($row, $req_info, $project) = get_request_info($rows, $rownum); 165 my ($image_db) = resolve_project($project); 165 my $proj_hash = resolve_project($project); 166 my $image_db = $proj_hash->{dbname}; 166 167 my $exp_info = get_exposure_info($image_db, $exp_id); 167 168 -
trunk/pstamp/scripts/pstampparse.pl
r19278 r19761 143 143 144 144 $stamp_name = "" if $stamp_name eq "null"; 145 $class_id = "" if ($class_id eq "null" or $class_id eq "all"); 145 146 146 147 # XXX: TODO: sanity check all parameters … … 151 152 # trash the request. 152 153 die "job_type is list_uri but mode is $mode" if ($job_type eq "list_uri") and ($mode ne "list_uri"); 153 my ($image_db, $lookup_class_id, $camera, $magic_required ) = resolve_project($project, $img_type, $class_id); 154 155 my $proj_hash = resolve_project($ipprc, $project, $dbname); 156 die "project $project not found\n" unless $proj_hash; 157 158 my $image_db = $proj_hash->{dbname}; 159 my $camera = $proj_hash->{camera}; 160 my $need_magic = $proj_hash->{need_magic}; 154 161 155 162 my $roi_string; … … 182 189 183 190 # Call PStamp::Job's locate_images routinte to get the parameters for this request specification 184 my $images = locate_images($ipprc, $image_db, $req_type, $img_type, $id, $ lookup_class_id,191 my $images = locate_images($ipprc, $image_db, $req_type, $img_type, $id, $class_id, 185 192 $x, $y, $mjd_min, $mjd_max, $filter); 186 193 … … 217 224 } else { 218 225 my $args = $roi_string ? $roi_string : ""; 219 $args .= " -class_id $class_id" if ($class_id and ($class_id ne "null"));226 $args .= " -class_id $class_id" if $class_id; 220 227 221 228 # sequence number for the the job for a request spec. Not to be confused with job_id 222 229 my $job_num = 0; 223 230 224 # XXX for raw and chip level images and class_id "null" if there are multiple images231 # XXX TODO: for raw and chip level images and class_id "null" if there are multiple images 225 232 # use -list instead of -file 226 233 foreach my $image (@$images) { … … 248 255 249 256 # XXX sounds like magic will be handled outside of the postage stamp server 250 #if ($ magic_required) {257 #if ($need_magic) { 251 258 # die "no magic mask available" if ! $image->{magic_mask}; 252 259 # $args .= " -magic_mask $image->{magic_mask}"
Note:
See TracChangeset
for help on using the changeset viewer.
