IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9458


Ignore:
Timestamp:
Oct 10, 2006, 9:16:22 AM (20 years ago)
Author:
eugene
Message:

test values for REJECT_IMFILE_STDEV, REJECT_EXPOSURE_STDEV

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

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

    r9457 r9458  
    9898my $meanStats = Statistics::Descriptive::Sparse->new(); # Statistics calculator
    9999$meanStats->add_data(@means);
    100 my $variancestats = Statistics::Descriptive::Sparse->new(); # Statistics calculator
    101 $variancestats->add_data(@variances);
     100my $varianceStats = Statistics::Descriptive::Sparse->new(); # Statistics calculator
     101$varianceStats->add_data(@variances);
    102102my $meanStdevStats = Statistics::Descriptive::Sparse->new(); # Statistics calculator
    103103$meanStdevStats->add_data(@meanStdevs);
     
    112112
    113113# rejections based on comparison with ensemble statistics
     114## these should probably be 3-sigma clipped statistics themselves...
    114115my $mean = $meanStats->mean();
    115116my $meanStdev = $meanStats->standard_deviation();
    116117if (not defined $meanStdev) { $meanStdev = 0; }
    117118
    118 my $var = $variances->mean();
    119 my $varStdev = $variances->standard_deviation();
     119my $var = $varianceStats->mean();
     120my $varStdev = $varianceStats->standard_deviation();
     121
     122print "Ensemble mean $mean +/- $meanStdev, stdev " . sqrt($var) . " +/- " . sqrt($varStdev) . "\n\n";
    120123
    121124# Go through again to do rejection, and update the database for each exposure
     
    143146        print "no rejection for exposure mean\n";
    144147    }
    145     if (defined REJECT_STDEV->{$det_type} && ($varStdev >0)) {
    146         my $nSigma = abs($var[$i] - $var) / $varStdev;
     148    if (REJECT_STDEV->{$det_type} && ($varStdev > 0)) {
     149        my $nSigma = abs($variances[$i] - $var) / $varStdev;
    147150        if ($nSigma > REJECT_STDEV->{$det_type}) {
    148151            print "Rejecting $expTag based on outlier stdev: " .
    149                 sqrt($variances[$i]) " is $nSigma vs " . REJECT_STDEV->{$det_type} . "\n";
     152                sqrt($variances[$i]) . " is $nSigma vs " . REJECT_STDEV->{$det_type} . "\n";
    150153            $reject = 1;
    151154            goto UPDATE;
  • trunk/ippScripts/scripts/detrend_reject_imfile.pl

    r9457 r9458  
    6464# This measures how much variation there is in each imfile
    6565use constant REJECT_IMFILE_STDEV => {
    66     'bias' => 0,                # Should be fairly flat; some CRs
     66    'bias' => 15,               # Should be fairly flat; some CRs
    6767    'dark' => 0,                # Lots of CRs
    6868    'shutter' => undef,         # Can be significant structure
     
    8282# This measures how much variation there is across the imfiles
    8383use constant REJECT_EXPOSURE_STDEV => {
    84     'bias' => 0,                # Should be little variation between chips
     84    'bias' => 15,               # Should be little variation between chips
    8585    'dark' => 0,                # Could be some glow on some chips
    8686    'shutter' => undef,         # Can be significant structure
Note: See TracChangeset for help on using the changeset viewer.