Changeset 30639
- Timestamp:
- Feb 15, 2011, 12:06:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ippScripts/scripts/register_imfile.pl (modified) (2 diffs)
-
ippTools/src/regtool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/register_imfile.pl
r30283 r30639 199 199 $command .= " -data_state full"; 200 200 } 201 elsif (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 } 201 205 else { 202 206 printf STDERR "Need to check burntool.\n"; … … 380 384 } 381 385 386 sub 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 382 402 sub is_daytime 383 403 { -
trunk/ippTools/src/regtool.c
r30594 r30639 259 259 continue; 260 260 } 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 } 261 270 262 271 if ((psMetadataLookupS32(NULL,row,"is_downloaded") != 1)|| … … 367 376 } 368 377 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 369 388 bool status = false; 370 389 char *tmp_id = psMetadataLookupStr(&status,row,"summit_class_id"); … … 389 408 } 390 409 410 391 411 if (0 && !strcmp(this_class_id, "ota44")) { 392 412 printf("STAT 1: %s (%d %d) %d %d %d\n",
Note:
See TracChangeset
for help on using the changeset viewer.
