IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2009, 12:12:02 PM (17 years ago)
Author:
Paul Price
Message:

Set --inverse for diff_skycell.pl according to whether diffRun.inverse is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_magic/ippScripts/scripts/diff_skycell.pl

    r23740 r24171  
    3535}
    3636
    37 my ($diff_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect);
     37my ($diff_id, $dbname, $threads, $outroot, $reduction, $inverse, $verbose, $no_update, $no_op, $redirect);
    3838my ($skycell_id, $diff_skyfile_id);
    3939GetOptions(
     
    4444    'threads=s'         => \$threads,   # Number of threads to use
    4545    'outroot=s'         => \$outroot, # Output root name
     46    'inverse'           => \$inverse, # Make inverse subtraction?
    4647    'reduction=s'       => \$reduction, # Reduction class
    4748    'verbose'           => \$verbose,   # Print to stdout
     
    9697my $camera;                     # Camera
    9798my ($inputMagic, $templateMagic); # Are the inputs been magicked?
    98 my $inverse = 1;                # Generate inverse subtraction if warp-warp
    9999foreach my $file (@$files) {
    100100    if (defined $file->{template} and $file->{template}) {
     
    107107            # template is a stack so it doesn't need to be magicked
    108108            $templateMagic = 1;
    109             $inverse = 0;
    110109            ## use an explicit stack name for psphot output objects
    111110        } else {
     
    123122            $inputVariance = "PPSTACK.OUTPUT.VARIANCE";
    124123            $inputSources = "PSPHOT.OUT.CMF.MEF";  ## this must be consistent with the value in stack_skycell.pl:161
    125             $inverse = 0;
    126124        } else {
    127125            $inputMask = "PSWARP.OUTPUT.MASK";
Note: See TracChangeset for help on using the changeset viewer.