Changeset 12053 for trunk/ippScripts/scripts/stack_skycell.pl
- Timestamp:
- Feb 26, 2007, 11:45:15 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/stack_skycell.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/stack_skycell.pl
r12021 r12053 16 16 use PS::IPP::Metadata::Config; 17 17 use PS::IPP::Metadata::Stats; 18 use PS::IPP::Metadata::List qw( parse_md_list ); 18 19 use Data::Dumper; 19 20 … … 61 62 } 62 63 63 # Get list of components for s ubtraction64 # Get list of components for stacking 64 65 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files 65 66 my $files; 66 67 { 67 my $command = "$stacktool -inputs cfile -stack_id $stack_id";68 my $command = "$stacktool -inputskyfile -stack_id $stack_id"; 68 69 $command .= " -dbname $dbname" if defined $dbname; 69 70 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 71 72 unless ($success) { 72 73 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 73 &my_die("Unable to perform stacktool -inputs cfile: $error_code", $stack_id, $error_code);74 &my_die("Unable to perform stacktool -inputskyfile: $error_code", $stack_id, $error_code); 74 75 } 75 76 … … 83 84 scalar @$files >= 2; 84 85 85 # Identify the input and the template86 # Parse the list of input files, and get the skycell identifier 86 87 my $inputList; # List of input files 87 88 my $skycell_id; # Skycell identifier … … 106 107 107 108 # Get the output filenames 108 my $outputFile = "$skycell_id.s ub.$stack_id"; # Root name109 my $outputFile = "$skycell_id.stack.$stack_id"; # Root name 109 110 my $outputRoot = File::Spec->catfile( $workdir, $outputFile ); 110 111 111 112 my $outputName = $outputRoot . ".fits"; 112 my $bin1Name = $ipprc->filename("PPIMAGE.BIN1", $outputRoot);113 my $bin2Name = $ipprc->filename("PPIMAGE.BIN2", $outputRoot);113 #my $bin1Name = $ipprc->filename("PPIMAGE.BIN1", $outputRoot); 114 #my $bin2Name = $ipprc->filename("PPIMAGE.BIN2", $outputRoot); 114 115 my $outputStats = $outputRoot . '.stats'; 115 116 116 # Perform s ubtraction117 # Perform stacking 117 118 my $stats = PS::IPP::Metadata::Stats->new(); # Stats parser 118 119 unless ($no_op) { … … 150 151 unless ($no_update) { 151 152 152 # Add the s ubtractionresult153 # Add the stack result 153 154 { 154 my $command = "$stacktool -addsums cfile -stack_id $stack_id -uri $outputName-b1_uri $outputRoot";155 my $command = "$stacktool -addsumskyfile -stack_id $stack_id -uri $outputName"; # -b1_uri $outputRoot"; 155 156 $command .= " -bg $bg -bg_stdev $bg_stdev"; 156 157 $command .= " -dbname $dbname" if defined $dbname; … … 160 161 unless ($success) { 161 162 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 162 &my_die("Unable to perform stacktool -add diffscfile: $error_code", $stack_id, $error_code);163 &my_die("Unable to perform stacktool -addsumskyfile: $error_code", $stack_id, $error_code); 163 164 } 164 165
Note:
See TracChangeset
for help on using the changeset viewer.
