IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39155 for trunk


Ignore:
Timestamp:
Nov 18, 2015, 10:31:46 AM (11 years ago)
Author:
heather
Message:

first attempt at diff.inv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/addstar_multi_run.pl

    r38584 r39155  
    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
     
    149150            }
    150151            printf TEMPLIST "$realFile = $fpaObjects\n";
    151             }
     152            if ($stage == 'diff' && $use_diff_inv) {
     153                my $fpaObjectsInv = $mparsed.'.inv.cmf';
     154                my $realFileInv = $ipprc->file_resolve($fpaObjectsInv);
     155                if (!defined($realFileInv)) {
     156                    &my_die("unable to resolve real file from $mparsed",$stage_id, $stage, $label, 7);
     157                }
     158                printf TEMPLIST "$realFileInv = $fpaObjectsInv\n";
     159            }
     160
    152161    }
    153162
     
    238247            if ($stage =~ /diff/) {
    239248                $command .= " -accept-astrom";
     249                if ($use_diff_inv) {
     250                    $command .= " -diff-inv";
     251                }
    240252            }
     253           
    241254            if ($stage =~ /fullforce/) {
    242255                $command .= " -accept-astrom -xrad";
Note: See TracChangeset for help on using the changeset viewer.