Changeset 32832 for trunk/ippScripts
- Timestamp:
- Nov 29, 2011, 11:46:43 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/addstar_run.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/addstar_run.pl
r31377 r32832 37 37 } 38 38 my $minidvodb_path; 39 my ( $add_id, $camera, $stage, $ outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,39 my ( $add_id, $camera, $stage, $multi_num, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update, 40 40 $no_op, $redirect, $save_temps); 41 41 GetOptions( … … 43 43 'camera|c=s' => \$camera, # Camera 44 44 'stage|s=s' => \$stage, # Camera 45 45 'multi_num|w=s' => \$multi_num, # the number for a staticskymulti (for finding cmf) 46 46 'dbname|d=s' => \$dbname, # Database name 47 47 'outroot|w=s' => \$outroot, # output file base name … … 114 114 115 115 } 116 117 if ($stage =~/staticsky_multi/) { 118 $fpaObjects =~ s/smf$/cmf/; #this should do nothing because it was already modded above 119 &my_die( "can't find the filter_num for staticsky_multi, giving up.", $add_id, $PS_EXIT_SYS_ERROR) unless (defined $multi_num); 120 my $nice_num = sprintf ("%03d", $multi_num); 121 $fpaObjects =~ s/cmf$/$nice_num.cmf/; #this make it look for .001.cmf, etc 122 123 } 124 116 125 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR); 117 126 … … 190 199 $command .= " -use-name $fpaObjects"; # DVO wants the neb-name as a file reference 191 200 $command .= " -image" if $image_only; 192 if ($stage = ~/staticsky/) {201 if ($stage =~ /staticsky/) { 193 202 $command .= " -accept-astrom "; 194 } 203 } #careful here - this matches staticsky and staticsky_multi 195 204 my $mjd_addstar_start = DateTime->now->mjd; # MJD of starting script 196 205
Note:
See TracChangeset
for help on using the changeset viewer.
