Changeset 33577
- Timestamp:
- Mar 21, 2012, 11:59:10 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/tools/runcameraexp.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/runcameraexp.pl
r31243 r33577 16 16 my $dbname = "gpc1"; 17 17 my ($cam_id, $update, $redirect, $save_temps, $pretend, $no_verbose); 18 my ($outdir );18 my ($outdir, $no_masks); 19 19 20 20 GetOptions( … … 23 23 'redirect-output' => \$redirect, 24 24 'save-temps' => \$save_temps, 25 'outdir=s' => \$outdir, 25 'outdir=s' => \$outdir, # move outroot to this directory 26 'no-masks' => \$no_masks, 26 27 'update' => \$update, 27 28 'dbname=s' => \$dbname, … … 59 60 60 61 if ($outdir) { 62 if ($outdir eq ".") { 63 $outdir = $ENV{PWD}; 64 } 61 65 my $base = basename($path_base); 62 66 $path_base = "$outdir/$base"; … … 81 85 $command .= " --verbose" unless $no_verbose; 82 86 $command .= " --dbname $dbname" if $dbname; 87 $command .= " --skip-binned" if $no_masks; 88 $command .= " --skip-refmask" if $no_masks; 83 89 84 90 … … 134 140 =head1 SYNOPSIS 135 141 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] 137 143 138 144 Query the database for the results of a completed camera run and rerun the processing, optionally reverting a faulted … … 147 153 =item * --update 148 154 149 Revert a faulted run before processing. If the run is not faulted an error occurs. 155 Revert a faulted run before processing. If the run is not faulted an error occurs. Use with care! 150 156 WARNING: 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. 157 label of this camRun omitted from the label list otherwise it may attempt to process this run at the same time. 158 159 Optional. 160 161 =item * --no-masks 162 163 Override the recipe values to skip production of binnned images and creation 164 of reference star masks. This allows psastro to perform the astrometry 165 analysis even if the input chipRun has been cleaned up. 166 167 Optional (for debugging). 168 169 =item * --outdir <outdir> 170 171 Change the output root to the provided directory instead of the path_base 172 in the database. 152 173 153 174 Optional. … … 156 177 157 178 Send the output of the command to the log file. (This is the default if --update is supplied). 179 180 =item * --save-temps 181 182 Pass -save-temps to camera_exp.pl 158 183 159 184 Optional.
Note:
See TracChangeset
for help on using the changeset viewer.
