IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19332


Ignore:
Timestamp:
Sep 2, 2008, 11:27:22 AM (18 years ago)
Author:
Paul Price
Message:

Typo in fringe component; caught by Armin Rest.

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/camera_exp.pl

    r19294 r19332  
    8181        { name => "fringe_0",       type => "mean",  flag => "-fringe_0",       dtype => "float" },
    8282        { 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" },
    8484#        { name => "sigma_ra",       type => "rms",   flag => "-sigma_ra",       dtype => "float" },
    8585#        { name => "sigma_dec",      type => "rms",   flag => "-sigma_dec",      dtype => "float" },
     
    240240        $command  = "$psastro -list $list3Name $outroot";
    241241        $command .= " -tracedest $traceDest -log $logDest";
    242         $command .= " -stats $fpaStats -recipe PPSTATS CHIPSTATS";
     242        $command .= " -stats $fpaStats -recipe PPSTATS CHIPSTATS";
    243243        $command .= " -dbname $dbname" if defined $dbname;
    244244
     
    253253        &my_die("Unable to find expected output file: $fpaStats",   $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($fpaObjects);
    254254
    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         }
     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        }
    272272
    273273        # run addstar on the output fpaObjects (if a DVO database is defined)
     
    328328    if (defined $cam_id and not $no_update) {
    329329        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";
    334334        $command .= " -hostname $host" if defined $host;
    335335        $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/detrend_resid_exp.pl

    r19261 r19332  
    9999        { name => "fringe_0",       type => "mean",  flag => "-fringe_0",      dtype => "float" },
    100100        { 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" },
    102102        { name => "user_1",         type => "mean",  flag => "-user_1",        dtype => "float" }, # fringe residual
    103103        { name => "user_2",         type => "rms",   flag => "-user_2",        dtype => "float" }, # fringe residual
     
    542542        $command .= " -iteration $iter";
    543543        $command .= " -exp_id $exp_id";
    544         $command .= " -path_base $outroot";
     544        $command .= " -path_base $outroot";
    545545        $command .= " -code $exit_code";
    546546        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.