Changeset 20927 for trunk/ippScripts/scripts/chip_imfile.pl
- Timestamp:
- Dec 7, 2008, 2:31:37 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/chip_imfile.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/chip_imfile.pl
r20369 r20927 27 27 28 28 # Parse the command-line arguments 29 my ( $exp_id, $chip_id, $class_id, $ uri, $camera, $outroot, $dbname, $run_state, $reduction, $threads, $verbose,29 my ( $exp_id, $chip_id, $class_id, $chip_imfile_id, $uri, $camera, $outroot, $dbname, $run_state, $reduction, $threads, $verbose, 30 30 $no_update, $no_op, $redirect ); 31 31 GetOptions( … … 33 33 'chip_id=s' => \$chip_id, # Chiptool identifier 34 34 'class_id=s' => \$class_id, # Class identifier 35 'chip_imfile_id=s' => \$chip_imfile_id, # Unique file identifier 35 36 'uri|u=s' => \$uri, # Input FITS file 36 37 'camera|c=s' => \$camera, # Camera … … 52 53 defined $chip_id and 53 54 defined $class_id and 55 ## defined $chip_imfile_id and XXX until this is added to the scheme, do not require it : 54 56 defined $uri and 55 57 defined $camera and … … 62 64 $logDest .= ".update" if $run_state eq "update"; 63 65 64 $ipprc->redirect_output($logDest) if $redirect; 66 if ($redirect) { 67 $ipprc->redirect_output($logDest); 68 print STDOUT "\n\n"; 69 print STDOUT "Starting script $0 on $host\n\n"; 70 print STDOUT "COMMAND IS: @ARGV\n\n"; 71 } 65 72 66 73 # Look for programs we need … … 95 102 $ipprc->outroot_prepare($outroot); 96 103 104 my $image_id = $chip_imfile_id; 105 my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_CHIP); 106 97 107 ## these names are used in ppImage, and thus may be URIs 98 108 my $outputImage = $ipprc->filename("PPIMAGE.CHIP", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); … … 123 133 $command .= " -threads $threads" if defined $threads; 124 134 $command .= " -dbname $dbname" if defined $dbname; 135 # $command .= " -image_id $image_id" if defined $image_id; 136 # $command .= " -source_id $source_id" if defined $source_id; 125 137 $command .= " -dumpconfig $configuration"; 126 138 $command .= " -tracedest $traceDest -log $logDest"; … … 131 143 $command .= " -threads $threads" if defined $threads; 132 144 $command .= " -dbname $dbname" if defined $dbname; 145 # $command .= " -image_id $image_id" if defined $image_id; 146 # $command .= " -source_id $source_id" if defined $source_id; 133 147 $command .= " -tracedest $traceDest -log $logDest"; 134 148 $command .= " -Db PPIMAGE:PHOTOM FALSE";
Note:
See TracChangeset
for help on using the changeset viewer.
