IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30639


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

Reworked burntool logic to skip camera commanded detrend exposures

Location:
trunk
Files:
2 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{
  • trunk/ippTools/src/regtool.c

    r30594 r30639  
    259259      continue;
    260260    }
     261    char *is_ccim = strchr(psMetadataLookupStr(NULL,row,"exp_name"),'c');
     262    if (is_ccim) { // Is a camera commanded exposure
     263      //      fprintf(stderr,"IN camera commanded!\n");
     264      if ((strcasecmp(psMetadataLookupStr(NULL,row,"exp_type"),"DOMEFLAT") == 0)||
     265          (strcasecmp(psMetadataLookupStr(NULL,row,"exp_type"),"DARK") == 0) ||
     266          (strcasecmp(psMetadataLookupStr(NULL,row,"exp_type"),"BIAS") == 0)) {
     267        continue;
     268      }
     269    }
    261270   
    262271    if ((psMetadataLookupS32(NULL,row,"is_downloaded") != 1)||
     
    367376    }
    368377
     378    char *is_ccim = strchr(psMetadataLookupStr(NULL,row,"exp_name"),'c');
     379    if (is_ccim) { // Is a camera commanded exposure
     380      //      fprintf(stderr,"IN camera commanded!\n");
     381      if ((strcasecmp(psMetadataLookupStr(NULL,row,"exp_type"),"DOMEFLAT") == 0)||
     382          (strcasecmp(psMetadataLookupStr(NULL,row,"exp_type"),"DARK") == 0) ||
     383          (strcasecmp(psMetadataLookupStr(NULL,row,"exp_type"),"BIAS") == 0)) {
     384        continue;
     385      }
     386    }
     387
    369388    bool status = false;
    370389    char *tmp_id = psMetadataLookupStr(&status,row,"summit_class_id");
     
    389408    }
    390409
     410   
    391411    if (0 && !strcmp(this_class_id, "ota44")) {
    392412        printf("STAT 1: %s (%d %d) %d %d %d\n",
Note: See TracChangeset for help on using the changeset viewer.