IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24171


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.

Location:
branches/pap_magic
Files:
3 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";
  • branches/pap_magic/ippTasks/diff.pro

    r24098 r24171  
    146146    book getword diffSkyfile $pageName skycell_id -var SKYCELL_ID
    147147    book getword diffSkyfile $pageName camera -var CAMERA
     148    book getword diffSkyfile $pageName inverse -var INVERSE
    148149    book getword diffSkyfile $pageName workdir -var WORKDIR_TEMPLATE
    149150    book getword diffSkyfile $pageName dbname -var DBNAME
     
    164165
    165166    $run = diff_skycell.pl --threads @MAX_THREADS@ --diff_id $DIFF_ID --skycell_id $SKYCELL_ID --diff_skyfile_id $DIFF_SKYFILE_ID --outroot $outroot --redirect-output
     167    if ($INVERSE > 1)
     168       $run = $run --inverse
     169    end
    166170    add_standard_args run
    167171
  • branches/pap_magic/ippTools/share/difftool_todiffskyfile.sql

    r23688 r24171  
    99    diffRun.tess_id,
    1010    diffRun.label,
    11     diffRun.state
     11    diffRun.state,
     12    diffRun.inverse
    1213FROM diffRun
    1314JOIN diffInputSkyfile USING(diff_id)
Note: See TracChangeset for help on using the changeset viewer.