IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20150


Ignore:
Timestamp:
Oct 14, 2008, 3:21:26 PM (18 years ago)
Author:
bills
Message:

changes in comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PStamp/lib/PStamp/Job.pm

    r20074 r20150  
    123123    my $base_name;
    124124    my $want_astrom;
    125     my $use_class_id;
    126 
    127     # special class_id value "null" means all
     125    my $set_class_id;
     126
     127    # special class_id value "null" means ignore
    128128    if ($class_id eq "null") {
    129129        $class_id = undef;
     
    135135        $command .= " -class_id $class_id" if $class_id;
    136136        $want_astrom = 1;
    137         $use_class_id = 1;
     137        $set_class_id = 1;
    138138    } elsif ($img_type eq "chip") {
    139139        $command = "$chiptool -processedimfile -dbname $image_db";
     
    144144        $base_name    = "path_base"; # name of the field for the chiptool output
    145145        $want_astrom  = 1;
    146         $use_class_id = 1;
     146        $set_class_id = 1;
    147147    } elsif ($img_type eq "warp") {
    148148        $command = "$warptool -warped -dbname $image_db";
     
    204204        if ($base_name) {
    205205            $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)
    208209            next if !$base;
    209210        }
     
    218219        $out->{image}  = $image->{uri};
    219220        $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;
    221222
    222223        # find the mask and weight images
     
    227228        $out->{camera} = $camera;
    228229
    229 #XXX gpc1 and mops data that I've been looking at was made with astrometry in chip processing
    230 #so the filerule doesn't match
    231 if ($camera ne "SIMTEST") {
    232     $want_astrom = 0;
    233 }
    234        
    235230        $out->{astrom} = find_astrometry($ipprc, $image_db, $image, $verbose) if $want_astrom;
    236231
     
    325320
    326321    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
    328324        $image->{image} = $image->{uri};
    329325        if ($image->{camera}) {
     
    547543    my $proj_hash = parse_md_fast($mdcParser, $output);
    548544
    549 
    550545    return $proj_hash->[0];
    551546}
Note: See TracChangeset for help on using the changeset viewer.