IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 13, 2008, 2:24:31 PM (17 years ago)
Author:
bills
Message:

add parameter to select the minimum diff_id to consider
(to distinguish between multiple diff runs on the same warped files)

File:
1 edited

Legend:

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

    r20689 r20731  
    3131
    3232# Parse the command-line arguments
    33 my ($exp_id, $warp_id, $workdir, $dbname, $save_temps, $verbose);
     33my ($exp_id, $warp_id, $min_diff_id, $workdir, $dbname, $save_temps, $verbose);
    3434
    3535GetOptions(
    3636           'exp_id=s'        => \$exp_id,     # exposure identifier
    3737           'warp_id=s'       => \$warp_id,    # warp identifier
     38           'min_diff_id=s'   => \$min_diff_id, # minimum diff id to consider
    3839           'dbname=s'        => \$dbname,     # Database name
    3940           'workdir=s'       => \$workdir,    # workdir
     
    108109print "$num_skyfiles skyfiles found for $exp_id\n" if $verbose;
    109110
    110 if ($warp_id) {
     111if ($warp_id or $min_diff_id) {
    111112    # filter the inputs
    112113    my $i = 0;
     
    114115        my $keep = 1;
    115116        my $sf = $inputs->[$i];
    116         my $this_warp_id = $sf->{warp_id_temp_0};
    117 
    118         if ($warp_id ne $this_warp_id) {
    119             $keep = 0;
     117
     118        if ($warp_id) {
     119            if ($warp_id ne $sf->{warp_id_temp_0}) {;
     120                $keep = 0;
     121            }
     122        }
     123        if ($min_diff_id) {
     124            if ($sf->{diff_id} < $min_diff_id) {
     125                $keep = 0;
     126            }
    120127        }
    121128        if ( $keep) {
Note: See TracChangeset for help on using the changeset viewer.