IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2011, 3:20:07 PM (15 years ago)
Author:
eugene
Message:

merge changes from the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/ippScripts/scripts/register_imfile.pl

    r30283 r30676  
    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.