IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2015, 4:14:24 PM (11 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20151113
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20151113

  • branches/eam_branches/ipp-20151113/ippScripts/scripts/addstar_multi_run.pl

    r38584 r39224  
    3939my $minidvodb_path;
    4040
    41 my ( $label,$camera, $stage, $stage_id, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,
     41my ( $label,$camera, $stage, $stage_id, $use_diff_inv, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,
    4242     $no_op, $redirect, $save_temps);
    4343GetOptions(
     
    4646    'stage|s=s'        => \$stage, # Camera
    4747    'stage_id|w=s'   => \$stage_id,
     48    'use_diff_inv'   => \$use_diff_inv, #use inv images for diff cmf?
    4849    'dbname|d=s'        => \$dbname, # Database name
    4950    'outroot|w=s'       => \$outroot, # output file base name
     
    137138            print "there are $num_components\n";
    138139            foreach my $comp  (@$components) {
    139             my  $mparsed = $comp->{stageroot};
     140                my  $mparsed = $comp->{stageroot};
    140141           
    141             if (!defined($mparsed)) {
    142                 &my_die("Unable to parse stageroot", $stage_id,$stage,$label, $PS_EXIT_PROG_ERROR);
    143             } #but just to make sure, have it grab a minidvodb_name, to make sure it's not junk.
    144             print "found a value for stageroot:$mparsed\n";
    145             my $fpaObjects = $mparsed.'.cmf';
    146             my $realFile = $ipprc->file_resolve($fpaObjects);
    147             if (!defined($realFile)) {
    148                 &my_die("unable to resolve real file from $mparsed",$stage_id, $stage, $label, 7);
     142                if (!defined($mparsed)) {
     143                    &my_die("Unable to parse stageroot", $stage_id,$stage,$label, $PS_EXIT_PROG_ERROR);
     144                } #but just to make sure, have it grab a minidvodb_name, to make sure it's not junk.
     145                print "found a value for stageroot:$mparsed\n";
     146                my $fpaObjects = $mparsed.'.cmf';
     147                my $realFile = $ipprc->file_resolve($fpaObjects);
     148                if (!defined($realFile)) {
     149                    &my_die("unable to resolve real file from $mparsed",$stage_id, $stage, $label, 7);
     150                }
     151                printf TEMPLIST "$realFile = $fpaObjects\n";
     152                if ($stage =~ /diff/) { # hardwired  for now$use_diff_inv) {
     153                    print "finding the inv.cmf files\n";
     154                    my $fpaObjectsInv = $mparsed.'.inv.cmf';
     155                    my $realFileInv = $ipprc->file_resolve($fpaObjectsInv);
     156                    if (!defined($realFileInv)) {
     157                        &my_die("unable to resolve real file from $mparsed",$stage_id, $stage, $label, 7);
     158                    }
     159                    printf TEMPLIST "$realFileInv = $fpaObjectsInv\n";
     160                }
     161               
    149162            }
    150             printf TEMPLIST "$realFile = $fpaObjects\n";
    151             }
    152     }
    153 
    154 }
    155 
     163
     164    }
     165}
    156166close(TEMPLIST);
    157167print "saved $temp_file here\n";
     
    238248            if ($stage =~ /diff/) {
    239249                $command .= " -accept-astrom";
     250                if ($use_diff_inv) {
     251                    $command .= " -diff-inv";
     252                }
    240253            }
     254           
    241255            if ($stage =~ /fullforce/) {
    242256                $command .= " -accept-astrom -xrad";
Note: See TracChangeset for help on using the changeset viewer.