IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 21, 2008, 4:56:26 PM (18 years ago)
Author:
eugene
Message:

making chip/host and nebulous upgrades

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080121/ippScripts/scripts/detrend_reject_exp.pl

    r15489 r16176  
    3737use Pod::Usage qw( pod2usage );
    3838
    39 my ($det_id, $iter, $det_type, $camera, $filter, $workdir, $dbname, $no_update, $no_op);
     39my ($det_id, $iter, $det_type, $camera, $outroot, $filter, $dbname, $no_update, $no_op);
    4040GetOptions(
    4141           'det_id|d=s'        => \$det_id,
     
    4343           'det_type|t=s'      => \$det_type,
    4444           'camera=s'          => \$camera,
     45           'outroot|w=s'   => \$outroot,   # output file base name
    4546           'filter=s'          => \$filter,
    46            'workdir|w=s'       => \$workdir, # Working directory for output files
    4747           'dbname|d=s'        => \$dbname, # Database name
    4848           'no-update'         => \$no_update,
     
    5151
    5252pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    53 pod2usage( -msg => "Required options: --det_id --iteration --det_type --camera",
    54            -exitval => 3)
    55     unless defined $det_id
    56     and defined $iter
    57     and defined $det_type
    58     and defined $camera;
     53pod2usage( -msg => "Required options: --det_id --iteration --det_type --camera --outroot",
     54           -exitval => 3) unless
     55    defined $det_id   and
     56    defined $iter     and
     57    defined $det_type and
     58    defined $camera   and
     59    defined $outroot;
    5960
    6061# values to extract from output metadata and the stats to calculate
     
    141142my $reject_meanstdev = rejection_limit( 'ENSEMBLE.MEANSTDEV', $det_type, $filter );
    142143
    143 $workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir;
    144 
    145 my $logName = $ipprc->file_prepare( "$camera.$det_type.$det_id.$iter.detreject.log", $workdir ); # Name for log
     144# outroot examples (HOST components must be set)
     145# file://data/ipp004.0/gpc1/20080130
     146# neb:///ipp004-v1/gpc1/20080130
     147# neb:///*/gpc1/20080130 (volume not specified)
     148
     149# check for existing directory, generate if needed
     150$ipprc->outroot_prepare($outroot);
     151
     152my $logName = $outroot . "log"; # Name for log
    146153
    147154my $logFile;
Note: See TracChangeset for help on using the changeset viewer.