Changeset 32469
- Timestamp:
- Sep 30, 2011, 1:30:50 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ippScripts/scripts/warp_skycell.pl (modified) (3 diffs)
-
ippTools/src/warptool.c (modified) (1 diff)
-
ippTools/src/warptoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_skycell.pl
r32379 r32469 331 331 } 332 332 } 333 333 print "Quality: $quality\n"; 334 334 unless ($no_update) { 335 335 # XXX change -tess_id to -tess_dir when db is updated … … 356 356 } 357 357 } else { 358 359 my $quality = 0; 360 361 unless ($ipprc->file_exists($outputPSF)) { 362 $quality = 8006; # bad data. 363 } 364 # if (!$quality) { 365 # check_output($outputImage, 0); 366 # check_output($outputMask, 0); 367 # check_output($outputWeight, 0); 368 # check_output($outputSources, 1); 369 # check_output($outputPSF, 1) if metadataLookupBool($recipe, 'PSF') ; 370 # } 371 print "Quality: $quality\n"; 372 358 373 # $run_state eq 'update' 359 374 unless ($no_update) { … … 362 377 $command .= " -skycell_id $skycell_id"; 363 378 $command .= " -set_magicked $magicked" if $magicked; 379 $command .= " -set_quality $quality" if $quality; 364 380 $command .= " -dbname $dbname" if defined $dbname; 365 381 -
trunk/ippTools/src/warptool.c
r32421 r32469 2051 2051 // magicked is only an argument for for -tofullskyfile 2052 2052 PXOPT_LOOKUP_S64(magicked, config->args, "-set_magicked", false, false); 2053 PXOPT_LOOKUP_S16(quality, config->args, "-set_quality", false, false); 2053 2054 if (magicked) { 2054 2055 psStringAppend(&set_magicked_skyfile, "\n , warpSkyfile.magicked = %" PRId64, magicked); 2055 2056 psStringAppend(&set_magicked_run, "\n, warpRun.magicked = %" PRId64, magicked); 2056 2057 } 2058 if (quality) { 2059 psStringAppend(&set_magicked_skyfile, "\n , warpSkyfile.quality = %"PRId16, quality); 2060 } 2057 2061 } else if (!strcmp(data_state, "cleaned") || !strcmp(data_state, "purged")) { 2058 2062 // if magicked is currently nonzero set it to -1 -
trunk/ippTools/src/warptoolConfig.c
r32421 r32469 398 398 psMetadataAddStr(tofullskyfileArgs, PS_LIST_TAIL, "-skycell_id", 0, "skycell ID to update", NULL); 399 399 psMetadataAddS64(tofullskyfileArgs, PS_LIST_TAIL, "-set_magicked", 0, "new value for magicked", 0); 400 400 psMetadataAddS16(tofullskyfileArgs, PS_LIST_TAIL, "-set_quality", 0, "new value for quality", 0); 401 401 402 // -updateskyfile 402 403 psMetadata *updateskyfileArgs = psMetadataAlloc();
Note:
See TracChangeset
for help on using the changeset viewer.
