IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 24, 2009, 2:20:13 PM (17 years ago)
Author:
bills
Message:

pass the template image to DetectStreaks

File:
1 edited

Legend:

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

    r23908 r23966  
    3737
    3838# Parse the command-line arguments
    39 my ($magic_id, $node, $camera, $dbname, $outroot, $save_temps, $verbose, $no_update, $no_op, $logfile);
     39my ($magic_id, $node, $camera, $dbname, $outroot, $template_uri, $save_temps, $verbose, $no_update, $no_op, $logfile);
    4040
    4141GetOptions(
     
    4545           'dbname=s'        => \$dbname,     # Database name
    4646           'outroot=s'       => \$outroot,    # Output root name
     47           'template_uri=s'  => \$template_uri,# uri of diff template
    4748           'save-temps'      => \$save_temps, # Save temporary files?
    4849           'verbose'         => \$verbose,    # Print stuff?
     
    5859    defined $node and
    5960    defined $camera and
    60     defined $outroot;
     61    defined $outroot and
     62    defined $template_uri;
    6163
    6264my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $magic_id, $node, $PS_EXIT_CONFIG_ERROR ); # IPP configuration
     
    136138        }
    137139
    138         $command .= " --detect --image $image --mask $mask --weight $weight";
     140        my $template = $ipprc->file_resolve($template_uri);
     141        &my_die("failed to resolve template_uri: $template_uri", $magic_id, $node, $PS_EXIT_DATA_ERROR)
     142            if !($template);
     143
     144        $command .= " --detect --image $image --mask $mask --weight $weight -k $template";
    139145
    140146        # set threshold to 4 sigma
Note: See TracChangeset for help on using the changeset viewer.