Changeset 20150
- Timestamp:
- Oct 14, 2008, 3:21:26 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/PStamp/lib/PStamp/Job.pm (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PStamp/lib/PStamp/Job.pm
r20074 r20150 123 123 my $base_name; 124 124 my $want_astrom; 125 my $ use_class_id;126 127 # special class_id value "null" means all125 my $set_class_id; 126 127 # special class_id value "null" means ignore 128 128 if ($class_id eq "null") { 129 129 $class_id = undef; … … 135 135 $command .= " -class_id $class_id" if $class_id; 136 136 $want_astrom = 1; 137 $ use_class_id = 1;137 $set_class_id = 1; 138 138 } elsif ($img_type eq "chip") { 139 139 $command = "$chiptool -processedimfile -dbname $image_db"; … … 144 144 $base_name = "path_base"; # name of the field for the chiptool output 145 145 $want_astrom = 1; 146 $ use_class_id = 1;146 $set_class_id = 1; 147 147 } elsif ($img_type eq "warp") { 148 148 $command = "$warptool -warped -dbname $image_db"; … … 204 204 if ($base_name) { 205 205 $base = $image->{$base_name}; 206 # if base is undef then the output pruducts for thjis image are incomplete 207 # This may only happen for warps. 206 # if base is undef then the output pruducts for this image are incomplete 207 # This may only happen for warps. (Actually the test for ignored that I added 208 # just above probably solved the problem I was trying to solve with this test) 208 209 next if !$base; 209 210 } … … 218 219 $out->{image} = $image->{uri}; 219 220 $out->{state} = $image->{state}; # state is undef for rawExp, but that's ok 220 $class_id = $image->{class_id} if $ use_class_id;221 $class_id = $image->{class_id} if $set_class_id; 221 222 222 223 # find the mask and weight images … … 227 228 $out->{camera} = $camera; 228 229 229 #XXX gpc1 and mops data that I've been looking at was made with astrometry in chip processing230 #so the filerule doesn't match231 if ($camera ne "SIMTEST") {232 $want_astrom = 0;233 }234 235 230 $out->{astrom} = find_astrometry($ipprc, $image_db, $image, $verbose) if $want_astrom; 236 231 … … 325 320 326 321 if ($img_type eq "diff") { 327 # the $image is going to be returned directly so we need to do some more processing 322 # the $image is going to be returned directly in this case so we need to duplicate 323 # some of processing that lookup does for other img_types 328 324 $image->{image} = $image->{uri}; 329 325 if ($image->{camera}) { … … 547 543 my $proj_hash = parse_md_fast($mdcParser, $output); 548 544 549 550 545 return $proj_hash->[0]; 551 546 }
Note:
See TracChangeset
for help on using the changeset viewer.
