Changeset 25518
- Timestamp:
- Sep 23, 2009, 3:49:17 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
ippScripts/scripts/warp_skycell.pl (modified) (3 diffs)
-
ippconfig/recipes/pswarp.config (modified) (1 diff)
-
pswarp/src/pswarpArguments.c (modified) (1 diff)
-
pswarp/src/pswarpLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_skycell.pl
r24487 r25518 183 183 close $astromFile; 184 184 185 # We need the recipe to determine if we care whether the PSF is generated or not 186 my $recipe; 187 { 188 my $command = "$ppConfigDump -camera $camera -dump-recipe PSWARP -recipe PSWARP $recipe_pswarp -"; 189 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 190 run(command => $command, verbose => $verbose); 191 unless ($success) { 192 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 193 &my_die("Unable to perform ppConfigDump: $error_code", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR); 194 } 195 $recipe = $mdcParser->parse(join "", @$stdout_buf) or 196 &my_die("Unable to parse metadata config doc", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR); 197 } 198 185 199 186 200 # Run pswarp … … 201 215 $command .= " -F SOURCE.PLOT.APRESID SOURCE.PLOT.SKY.APRESID"; 202 216 $command .= " -recipe PSWARP $recipe_pswarp"; 203 $command .= " -psf"; # Turn on PSF determination204 217 $command .= " -tracedest $traceDest -log $logDest"; 205 218 $command .= " -threads $threads" if defined $threads; … … 253 266 &my_die("Couldn't find expected output file: $outputWeight", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight); 254 267 &my_die("Couldn't find expected output file: $outputSources", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources); 255 &my_die("Couldn't find expected output file: $outputPSF", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless$ipprc->file_exists($outputPSF);268 &my_die("Couldn't find expected output file: $outputPSF", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) if metadataLookupBool($recipe, 'PSF') and not $ipprc->file_exists($outputPSF); 256 269 } 257 270 -
trunk/ippconfig/recipes/pswarp.config
r24487 r25518 10 10 ACCEPT.FRAC F32 0.1 # Minimum fraction of good pixels to accept result 11 11 INTERPOLATION.NUM S32 1000 # Number of interpolation kernels to pre-calculate 12 PSF BOOL TRUE # Measure PSF for warped image? 12 13 13 14 # Default recipe for warping -
trunk/pswarp/src/pswarpArguments.c
r23688 r25518 74 74 pswarpSetThreads (); 75 75 76 // PSF determination?77 if ((N = psArgumentGet(argc, argv, "-psf"))) {78 psArgumentRemove(N, &argc, argv);79 psMetadataAddBool(config->arguments, PS_LIST_TAIL, "PSF", 0, "Do PSF determination?", true);80 }81 76 if ((N = psArgumentGet(argc, argv, "-dumpconfig"))) { 82 77 psArgumentRemove(N, &argc, argv); -
trunk/pswarp/src/pswarpLoop.c
r25047 r25518 16 16 17 17 #define WCS_NONLIN_TOL 0.001 // Non-linear tolerance for header WCS 18 #define PSPHOT_FIND_PSF 1 // Use psphot's findPSF function?19 18 #define TESTING 0 // Testing output? 20 19 … … 380 379 // that's going to be tricky. We have a list of sources, so we use those to redetermine the PSF model. 381 380 382 if (psMetadataLookupBool(&mdok, config->arguments, "PSF")) {381 if (psMetadataLookupBool(&mdok, recipe, "PSF")) { 383 382 fileActivation(config, photFiles, true); 384 383 ioChecksBefore(config);
Note:
See TracChangeset
for help on using the changeset viewer.
