Changeset 19332
- Timestamp:
- Sep 2, 2008, 11:27:22 AM (18 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
-
camera_exp.pl (modified) (4 diffs)
-
detrend_resid_exp.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r19294 r19332 81 81 { name => "fringe_0", type => "mean", flag => "-fringe_0", dtype => "float" }, 82 82 { name => "fringe_1", type => "rms", flag => "-fringe_1", dtype => "float" }, 83 { name => "fringe_ 0", type => "stdev", flag => "-fringe_2", dtype => "float" },83 { name => "fringe_2", type => "stdev", flag => "-fringe_2", dtype => "float" }, 84 84 # { name => "sigma_ra", type => "rms", flag => "-sigma_ra", dtype => "float" }, 85 85 # { name => "sigma_dec", type => "rms", flag => "-sigma_dec", dtype => "float" }, … … 240 240 $command = "$psastro -list $list3Name $outroot"; 241 241 $command .= " -tracedest $traceDest -log $logDest"; 242 $command .= " -stats $fpaStats -recipe PPSTATS CHIPSTATS";242 $command .= " -stats $fpaStats -recipe PPSTATS CHIPSTATS"; 243 243 $command .= " -dbname $dbname" if defined $dbname; 244 244 … … 253 253 &my_die("Unable to find expected output file: $fpaStats", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($fpaObjects); 254 254 255 # Get the statistics on the processed image256 my $statsFile; # File handle257 open $statsFile, $ipprc->file_resolve($fpaStats) or &my_die("Can't open statistics file $fpaStats: $!", $cam_id, $PS_EXIT_SYS_ERROR);258 my @contents = <$statsFile>; # Contents of file259 close $statsFile;260 261 # parse the statistics MDC file262 my $mdcParser = PS::IPP::Metadata::Config->new(); # Parser for metadata config files263 my $metadata = $mdcParser->parse(join "", @contents);264 unless ($metadata) {265 &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_PROG_ERROR);266 }267 268 # extract the stats from the metadata269 unless ($camStats->parse($metadata)) {270 &my_die("Failure extracting metadata from the statistics output file.\n", $cam_id, $PS_EXIT_PROG_ERROR);271 }255 # Get the statistics on the processed image 256 my $statsFile; # File handle 257 open $statsFile, $ipprc->file_resolve($fpaStats) or &my_die("Can't open statistics file $fpaStats: $!", $cam_id, $PS_EXIT_SYS_ERROR); 258 my @contents = <$statsFile>; # Contents of file 259 close $statsFile; 260 261 # parse the statistics MDC file 262 my $mdcParser = PS::IPP::Metadata::Config->new(); # Parser for metadata config files 263 my $metadata = $mdcParser->parse(join "", @contents); 264 unless ($metadata) { 265 &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_PROG_ERROR); 266 } 267 268 # extract the stats from the metadata 269 unless ($camStats->parse($metadata)) { 270 &my_die("Failure extracting metadata from the statistics output file.\n", $cam_id, $PS_EXIT_PROG_ERROR); 271 } 272 272 273 273 # run addstar on the output fpaObjects (if a DVO database is defined) … … 328 328 if (defined $cam_id and not $no_update) { 329 329 my $command = "$camtool -addprocessedexp"; 330 $command .= " -cam_id $cam_id";331 $command .= " -uri UNKNOWN";332 $command .= " -code $exit_code";333 $command .= " -path_base $outroot";330 $command .= " -cam_id $cam_id"; 331 $command .= " -uri UNKNOWN"; 332 $command .= " -code $exit_code"; 333 $command .= " -path_base $outroot"; 334 334 $command .= " -hostname $host" if defined $host; 335 335 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/detrend_resid_exp.pl
r19261 r19332 99 99 { name => "fringe_0", type => "mean", flag => "-fringe_0", dtype => "float" }, 100 100 { name => "fringe_1", type => "rms", flag => "-fringe_1", dtype => "float" }, 101 { name => "fringe_ 0", type => "stdev", flag => "-fringe_2", dtype => "float" },101 { name => "fringe_2", type => "stdev", flag => "-fringe_2", dtype => "float" }, 102 102 { name => "user_1", type => "mean", flag => "-user_1", dtype => "float" }, # fringe residual 103 103 { name => "user_2", type => "rms", flag => "-user_2", dtype => "float" }, # fringe residual … … 542 542 $command .= " -iteration $iter"; 543 543 $command .= " -exp_id $exp_id"; 544 $command .= " -path_base $outroot";544 $command .= " -path_base $outroot"; 545 545 $command .= " -code $exit_code"; 546 546 $command .= " -dbname $dbname" if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
