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_stack.pl

    r15467 r16176  
    3333use Pod::Usage qw( pod2usage );
    3434
    35 my ($det_id, $iter, $class_id, $det_type, $camera, $dbname, $workdir, $reduction, $no_update, $no_op, $quiet);
     35my ($det_id, $iter, $class_id, $det_type, $camera, $outroot, $dbname, $reduction, $no_update, $no_op, $quiet);
    3636GetOptions(
    3737    'det_id|d=s'        => \$det_id,
     
    4040    'det_type|t=s'      => \$det_type,
    4141    'camera|c=s'        => \$camera,
     42    'outroot|w=s'       => \$outroot,   # output file base name
    4243    'dbname|d=s'        => \$dbname, # Database name
    43     'workdir|w=s'       => \$workdir, # Working directory, for output files
    4444    'reduction=s'       => \$reduction, # Reduction class for processing
    4545    'no-update'         => \$no_update,
     
    4949
    5050pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    51 pod2usage( -msg => "Required options: --det_id --iteration --class_id --det_type --camera",
    52            -exitval => 3)
    53     unless defined $det_id
    54     and defined $iter
    55     and defined $class_id
    56     and defined $det_type
    57     and defined $camera;
     51pod2usage( -msg => "Required options: --det_id --iteration --class_id --det_type --camera --outroot",
     52           -exitval => 3) unless
     53    defined $det_id   and
     54    defined $iter     and
     55    defined $class_id and
     56    defined $det_type and
     57    defined $camera   and
     58    defined $outroot;
    5859
    5960my $verbose = 1;
     
    111112}
    112113
    113 $workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir;
    114 
    115 my $outputRoot  = $ipprc->file_prepare( "$camera.$det_type.$det_id.$iter.$class_id", $workdir, ${$files}[0]->{uri} );
    116 my $outputStack = $outputRoot . '.fits'; # Output name
    117 my $outputStats = $outputRoot . '.stats'; # Statistics name
    118 
    119 my $traceDest = 'file:' . $ipprc->file_resolve($outputRoot) . ".trace"; # Trace messages
    120 my $logDest = 'file:' . $ipprc->file_resolve($outputRoot) . ".log"; # Log messages
     114# outroot examples (HOST components must be set)
     115# file://data/ipp004.0/gpc1/20080130
     116# neb:///ipp004-v1/gpc1/20080130
     117# neb:///*/gpc1/20080130 (volume not specified)
     118
     119# check for existing directory, generate if needed
     120$ipprc->outroot_prepare($outroot);
     121
     122## XXX should we be using the filerules here?
     123my $outputStack = $outroot . '.fits'; # Output name
     124my $outputStats = $outroot . '.stats'; # Statistics name
     125my $traceDest   = $outroot . '.trace'; # Trace messages
     126my $logDest     = $outroot . '.log'; # Log messages
    121127
    122128$command = "$ppMerge $outputStack"; # Command to run
Note: See TracChangeset for help on using the changeset viewer.