IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14228


Ignore:
Timestamp:
Jul 16, 2007, 12:01:03 PM (19 years ago)
Author:
Paul Price
Message:

Updating to use modern version of PS::IPP::Metadata::Stats.

File:
1 edited

Legend:

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

    r14225 r14228  
    5757$ipprc->define_camera($camera);
    5858
     59my $STATS =
     60   [   
     61       #          PPSTATS KEYWORD         STATISTIC          WARPTOOL FLAG
     62       { name => "ROBUST_MEDIAN",  type => "mean",  flag => "-bg",             dtype => "float" },
     63       { name => "ROBUST_STDEV",   type => "rms",   flag => "-bg_stdev",       dtype => "float" },
     64   ];
     65my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser
     66
    5967# Look for programs we need
    6068my $missing_tools;
     
    119127
    120128# Run pswarp
    121 my $stats = PS::IPP::Metadata::Stats->new(); # Stats parser
    122129unless ($no_op) {
    123130    my $command = "$pswarp -list $list1Name";
     
    155162}
    156163
    157 # Add the processed file to the database
    158 my $bg       = $stats->bg_mean();
    159 my $bg_stdev = $stats->bg_stdev();
    160 
    161164unless ($no_update) {
    162165    my $command = "$warptool -addwarped -warp_id $warp_id -skycell_id $skycell_id -tess_id $tess_id" .
    163         " -uri $outputImage -path_base $outputRoot"; # -path_base $outputRoot"; # Command to run dettool
    164     $command .= " -bg $bg -bg_stdev $bg_stdev";
     166        " -uri $outputImage -path_base $outputRoot"; # Command to run dettool
     167    $command .= $stats->cmdflags();
    165168    $command .= " -dbname $dbname" if defined $dbname;
    166169
Note: See TracChangeset for help on using the changeset viewer.