Changeset 29159 for trunk/tools/rundiffskycell.pl
- Timestamp:
- Sep 15, 2010, 11:02:40 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/rundiffskycell.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/rundiffskycell.pl
r29141 r29159 41 41 if !$diff_id or !$skycell_id; 42 42 43 # if we're asked to update redirect the output 44 $redirect = 1 if $update; 45 43 46 my $ipprc = PS::IPP::Config->new(); 44 47 my $dbh = getDBHandle(); 45 48 46 49 # find warp warp diffs that have a cleaned magicDSRun 47 my $query1 = "SELECT path_base, diff_skyfile_id,bothways,reduction,diff_mode FROM diffRun JOIN diffSkyfile USING(diff_id) JOIN diffInputSkyfile USING(diff_id, skycell_id) WHERE diff_id = $diff_id AND skycell_id = '$skycell_id'";50 my $query1 = "SELECT path_base, diff_skyfile_id,bothways,reduction,diff_mode, diffSkyfile.fault FROM diffRun JOIN diffSkyfile USING(diff_id) JOIN diffInputSkyfile USING(diff_id, skycell_id) WHERE diff_id = $diff_id AND skycell_id = '$skycell_id'"; 48 51 49 52 my $stmt1 = $dbh->prepare($query1); … … 54 57 my $bothways = $results->{bothways}; 55 58 my $reduction = $results->{reduction}; 59 my $fault = $results->{fault}; 60 61 die "cannot update when skycell is not faulted\n" if $update and !$fault; 56 62 57 63 die "path_base not found\n" if !$path_base; … … 105 111 } 106 112 113 __END__ 114 115 =pod 116 117 =head1 NAME 118 119 rundiffskyfile.pl - gather the parameters for and execute diff_skycell.pl 120 121 =head1 SYNOPSIS 122 123 perl rundiffskyfile.pl --diff_id <diff_id> --skycell_id <skycell_id> [--threads <num_threads>] [--update] [--redirect-output] [--pretend] [--dbname <dbname>] 124 125 Query the database for the results of a diff skycell and rerun the processing, optionally reverting a faulted 126 run. 127 128 =over 4 129 130 =item * --diff_id <diff_id> 131 132 The id of the diffSkyfile run to process. 133 134 =item * --skycell_id <skycell_id> 135 136 The skycell_id of the diffSkyfile run to process. 137 138 =item * --threads <num_threads> 139 140 The number of threads to use. Default 1. 141 Optional. 142 143 144 =item * --update 145 146 Revert a faulted skycell before processing. If the skycell is not faulted no processing is done. 147 WARNING: insure that the standard science procesing either has diff stage turned off or the 148 label of this diffRun ommited from the list of labels otherwise it may attempt to processes this run at the same time. 149 Optional. 150 151 =item * --redirect-output 152 153 Send the output of the command to the logfile. (This is the default if --update is supplied). 154 Optional. 155 156 =item * --pretend 157 158 Just print the commands that would be executed, but do not run them. 159 Optional. 160 161 =item * --dbname <dbname> 162 163 Name of the IPP databse to query. Default is 'gpc1'. 164 Optional. 165 166 167 =head1 SEE ALSO 168 L<runchipimfile.pl>, L<runcameraexp.pl>, L<rundiffskyfile.pl> 169 170 =cut
Note:
See TracChangeset
for help on using the changeset viewer.
