- Timestamp:
- Dec 3, 2015, 4:14:24 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20151113
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/addstar_multi_run.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20151113
- Property svn:mergeinfo changed
/trunk (added) merged: 39137-39165,39167-39181,39186,39189,39191-39192,39209-39210,39216-39217
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20151113/ippScripts/scripts/addstar_multi_run.pl
r38584 r39224 39 39 my $minidvodb_path; 40 40 41 my ( $label,$camera, $stage, $stage_id, $ outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,41 my ( $label,$camera, $stage, $stage_id, $use_diff_inv, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update, 42 42 $no_op, $redirect, $save_temps); 43 43 GetOptions( … … 46 46 'stage|s=s' => \$stage, # Camera 47 47 'stage_id|w=s' => \$stage_id, 48 'use_diff_inv' => \$use_diff_inv, #use inv images for diff cmf? 48 49 'dbname|d=s' => \$dbname, # Database name 49 50 'outroot|w=s' => \$outroot, # output file base name … … 137 138 print "there are $num_components\n"; 138 139 foreach my $comp (@$components) { 139 my $mparsed = $comp->{stageroot};140 my $mparsed = $comp->{stageroot}; 140 141 141 if (!defined($mparsed)) { 142 &my_die("Unable to parse stageroot", $stage_id,$stage,$label, $PS_EXIT_PROG_ERROR); 143 } #but just to make sure, have it grab a minidvodb_name, to make sure it's not junk. 144 print "found a value for stageroot:$mparsed\n"; 145 my $fpaObjects = $mparsed.'.cmf'; 146 my $realFile = $ipprc->file_resolve($fpaObjects); 147 if (!defined($realFile)) { 148 &my_die("unable to resolve real file from $mparsed",$stage_id, $stage, $label, 7); 142 if (!defined($mparsed)) { 143 &my_die("Unable to parse stageroot", $stage_id,$stage,$label, $PS_EXIT_PROG_ERROR); 144 } #but just to make sure, have it grab a minidvodb_name, to make sure it's not junk. 145 print "found a value for stageroot:$mparsed\n"; 146 my $fpaObjects = $mparsed.'.cmf'; 147 my $realFile = $ipprc->file_resolve($fpaObjects); 148 if (!defined($realFile)) { 149 &my_die("unable to resolve real file from $mparsed",$stage_id, $stage, $label, 7); 150 } 151 printf TEMPLIST "$realFile = $fpaObjects\n"; 152 if ($stage =~ /diff/) { # hardwired for now$use_diff_inv) { 153 print "finding the inv.cmf files\n"; 154 my $fpaObjectsInv = $mparsed.'.inv.cmf'; 155 my $realFileInv = $ipprc->file_resolve($fpaObjectsInv); 156 if (!defined($realFileInv)) { 157 &my_die("unable to resolve real file from $mparsed",$stage_id, $stage, $label, 7); 158 } 159 printf TEMPLIST "$realFileInv = $fpaObjectsInv\n"; 160 } 161 149 162 } 150 printf TEMPLIST "$realFile = $fpaObjects\n"; 151 } 152 } 153 154 } 155 163 164 } 165 } 156 166 close(TEMPLIST); 157 167 print "saved $temp_file here\n"; … … 238 248 if ($stage =~ /diff/) { 239 249 $command .= " -accept-astrom"; 250 if ($use_diff_inv) { 251 $command .= " -diff-inv"; 252 } 240 253 } 254 241 255 if ($stage =~ /fullforce/) { 242 256 $command .= " -accept-astrom -xrad";
Note:
See TracChangeset
for help on using the changeset viewer.
