IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 18, 2008, 6:39:14 PM (18 years ago)
Author:
eugene
Message:

added ref_det_id, ref_iter references for verify mode and populate as needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080918/ippScripts/scripts/detrend_resid_imfile.pl

    r19374 r19609  
    2424use Pod::Usage qw( pod2usage );
    2525
    26 my ( $det_id, $iter, $exp_id, $exp_tag, $class_id, $det_type, $detrend, $input_uri, $camera, $mode, $outroot,
     26my ( $det_id, $iter, $ref_det_id, $ref_iter, $exp_id, $exp_tag, $class_id, $det_type, $detrend, $input_uri, $camera, $mode, $outroot,
    2727     $dbname, $reduction, $threads, $verbose, $no_update, $no_op, $redirect );
    2828GetOptions(
    2929    'det_id|d=s'        => \$det_id,
    3030    'iteration=s'       => \$iter,
     31    'ref_det_id=s'      => \$ref_det_id,
     32    'ref_iter=s'        => \$ref_iter,
    3133    'exp_id|e=s'        => \$exp_id,
    3234    'exp_tag|=s'        => \$exp_tag,
     
    4850
    4951pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    50 pod2usage( -msg => "Required options: --det_id --iteration --exp_id --exp_tag --class_id --det_type --camera --input_uri --mode --detrend --outroot (not for 'verify' mode)",
     52pod2usage( -msg => "Required options: --det_id --iteration --ref_det_id --ref_iter --exp_id --exp_tag --class_id --det_type --camera --input_uri --mode --detrend --outroot (not for 'verify' mode)",
    5153           -exitval => 3) unless
    52     defined $det_id    and
    53     defined $iter      and
    54     defined $exp_id    and
    55     defined $exp_tag   and
    56     defined $class_id  and
    57     defined $det_type  and
    58     defined $input_uri and
    59     defined $camera    and
    60     defined $mode      and
    61     defined $outroot   and
     54    defined $det_id     and
     55    defined $iter       and
     56    defined $ref_det_id and
     57    defined $ref_iter   and
     58    defined $exp_id     and
     59    defined $exp_tag    and
     60    defined $class_id   and
     61    defined $det_type   and
     62    defined $input_uri  and
     63    defined $camera     and
     64    defined $mode       and
     65    defined $outroot    and
    6266    (defined $detrend or lc($mode) eq 'verify');
    6367
     
    7882    &my_die("Unrecognised mode: $mode", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_PROG_ERROR);
    7983}
     84
     85print "raw recipe: $recipe\n";
    8086$recipe = $ipprc->reduction($reduction, $recipe);
     87print "real recipe: $recipe\n";
    8188
    8289# values to extract from output metadata and the stats to calculate
     
    216223$command .= " -det_id $det_id";
    217224$command .= " -iteration $iter";
     225$command .= " -ref_det_id $ref_det_id";
     226$command .= " -ref_iter $ref_iter";
    218227$command .= " -exp_id $exp_id";
    219228$command .= " -class_id $class_id";
     
    252261        $command .= " -det_id $det_id";
    253262        $command .= " -iteration $iter";
     263        $command .= " -ref_det_id $ref_det_id";
     264        $command .= " -ref_iter $ref_iter";
    254265        $command .= " -exp_id $exp_id";
    255266        $command .= " -class_id $class_id";
Note: See TracChangeset for help on using the changeset viewer.