IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30639 for trunk/ippScripts


Ignore:
Timestamp:
Feb 15, 2011, 12:06:06 PM (15 years ago)
Author:
watersc1
Message:

Reworked burntool logic to skip camera commanded detrend exposures

File:
1 edited

Legend:

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

    r30283 r30639  
    199199    $command .= " -data_state full";
    200200}
     201elsif (is_ccim($tmp_exp_name,$exp_type)) {
     202    printf STDERR "This is a camera commanded detrend exposure that should not cause a burn.\n";
     203    $command .= " -data_state full";
     204}   
    201205else {
    202206    printf STDERR "Need to check burntool.\n";
     
    380384}
    381385
     386sub is_ccim
     387{
     388    my $exp_name = shift;
     389    my $exp_type = shift;
     390 
     391    # needs to match regtool.c checks for "is_ccim".
     392    if ($exp_name =~ /c/) {
     393        if (($exp_type eq 'DOMEFLAT')||
     394            ($exp_type eq 'DARK')||
     395            ($exp_type eq 'BIAS')) {
     396            return(1);
     397        }
     398    }
     399    return(0);
     400}
     401
    382402sub is_daytime
    383403{
Note: See TracChangeset for help on using the changeset viewer.