Changeset 13711 for trunk/ippScripts/scripts/warp_skycell.pl
- Timestamp:
- Jun 7, 2007, 3:59:50 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_skycell.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_skycell.pl
r13698 r13711 97 97 my ($list1File, $list1Name) = tempfile( "$tess_id.$skycell_id.wrp$warp_id.image.list.XXXX", UNLINK => 1); 98 98 my ($list2File, $list2Name) = tempfile( "$tess_id.$skycell_id.wrp$warp_id.mask.list.XXXX", UNLINK => 1); 99 my ($list3File, $list3Name) = tempfile( "$tess_id.$skycell_id.wrp$warp_id.astrom.list.XXXX", UNLINK => 1); 99 100 foreach my $imfile (@$imfiles) { 100 101 my $image = $imfile->{uri}; # Image name 101 my $mask = $ipprc->filename("PPIMAGE.OUTPUT.MASK", $imfile->{path_base}, $imfile->{class_id}); # Mask name 102 my $mask = $ipprc->filename("PPIMAGE.OUTPUT.MASK", $imfile->{chip_path_base}, $imfile->{class_id}); # Mask name 103 my $astrom = $ipprc->filename("PSASTRO.OUTPUT.MEF", $imfile->{cam_path_base}); # Astrometry file name 104 102 105 &my_die("Couldn't find input file: $image", $warp_id, $skycell_id, $tess_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($image); 103 106 &my_die("Couldn't find input file: $mask", $warp_id, $skycell_id, $tess_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($mask); 107 &my_die("Couldn't find input file: $astrom", $warp_id, $skycell_id, $tess_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($astrom); 104 108 105 109 print $list1File ( $image . "\n"); 106 110 print $list2File ( $mask . "\n"); 111 print $list3File ( $astrom . "\n"); 107 112 } 108 113 close $list1File; 109 114 close $list2File; 115 close $list3File; 110 116 111 117 # Run pswarp 112 118 my $stats = PS::IPP::Metadata::Stats->new(); # Stats parser 113 119 unless ($no_op) { 114 my $command = "$pswarp -list $list1Name -masklist $list2Name $outputRoot $skyFile -stat $outputStats"; # Command to run pswarp120 my $command = "$pswarp -list $list1Name -masklist $list2Name -astromlist $list3Name $outputRoot $skyFile -stat $outputStats"; # Command to run pswarp 115 121 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 116 122 run(command => $command, verbose => 1);
Note:
See TracChangeset
for help on using the changeset viewer.
