IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 21, 2012, 11:59:10 AM (14 years ago)
Author:
bills
Message:

add --no-masks option to allow running when input chips have been cleaned up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/runcameraexp.pl

    r31243 r33577  
    1616my $dbname = "gpc1";
    1717my ($cam_id, $update, $redirect, $save_temps, $pretend, $no_verbose);
    18 my ($outdir);
     18my ($outdir, $no_masks);
    1919
    2020GetOptions(
     
    2323    'redirect-output'   => \$redirect,
    2424    'save-temps'        => \$save_temps,
    25     'outdir=s'          => \$outdir,
     25    'outdir=s'          => \$outdir,    # move outroot to this directory
     26    'no-masks'          => \$no_masks,
    2627    'update'            => \$update,
    2728    'dbname=s'          => \$dbname,
     
    5960
    6061if ($outdir) {
     62    if ($outdir eq ".") {
     63        $outdir = $ENV{PWD};
     64    }
    6165    my $base = basename($path_base);
    6266    $path_base = "$outdir/$base";
     
    8185$command .= " --verbose" unless $no_verbose;
    8286$command .= " --dbname $dbname" if $dbname;
     87$command .= " --skip-binned" if $no_masks;
     88$command .= " --skip-refmask" if $no_masks;
    8389
    8490
     
    134140=head1 SYNOPSIS
    135141   
    136     perl runcameraexp.pl --cam_id <cam_id> [--update] [--redirect-output] [--pretend] [--dbname <dbname>]
     142    perl runcameraexp.pl --cam_id <cam_id> [--update] [--redirect-output] [--pretend] [--dbname <dbname>] [--no-masks]
    137143
    138144Query the database for the results of a completed camera run and rerun the processing, optionally reverting a faulted
     
    147153=item * --update
    148154
    149 Revert a faulted run before processing. If the run is not faulted an error occurs.
     155Revert a faulted run before processing. If the run is not faulted an error occurs. Use with care!
    150156WARNING: insure that the standard science processing either has camera stage turned off or the
    151 label of this camRun omitted from the label list otherwise it may attempt to processes this run at the same time.
     157label of this camRun omitted from the label list otherwise it may attempt to process this run at the same time.
     158
     159Optional.
     160
     161=item *  --no-masks
     162
     163Override the recipe values to skip production of binnned images and creation
     164of reference star masks. This allows psastro to perform the astrometry
     165analysis even if the input chipRun has been cleaned up.
     166
     167Optional (for debugging).
     168
     169=item *  --outdir <outdir>
     170
     171Change the output root to the provided directory instead of the path_base
     172in the database. 
    152173
    153174Optional.
     
    156177
    157178Send the output of the command to the log file. (This is the default if --update is supplied).
     179
     180=item *  --save-temps
     181
     182Pass -save-temps to camera_exp.pl
    158183
    159184Optional.
Note: See TracChangeset for help on using the changeset viewer.