Changeset 25100 for trunk/ippScripts/scripts/publish_file.pl
- Timestamp:
- Aug 17, 2009, 4:45:20 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/publish_file.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/publish_file.pl
r25074 r25100 83 83 my %exp_id; # Exposure identifiers 84 84 my %exp_name; # Exposure names 85 my %direction; # Direction of subtraction 85 86 { 86 87 my $command; # Command to run … … 114 115 if ($stage eq 'diff') { 115 116 my $skycell_id = $comp->{skycell_id}; 117 118 # Positive direction 116 119 $files{"$skycell_id.pos"} = $ipprc->filename( "PPSUB.OUTPUT.SOURCES", $path_base ); 117 $files{"$skycell_id.neg"} = $ipprc->filename( "PPSUB.INVERSE.SOURCES", $path_base ) if118 defined $comp->{bothways} and $comp->{bothways};119 120 $zp{"$skycell_id.pos"} = $zp; 120 $zp{"$skycell_id.neg"} = $zp if defined $comp->{bothways} and $comp->{bothways};121 121 $exp_id{"$skycell_id.pos"} = $comp->{exp_id_1}; 122 $exp_id{"$skycell_id.neg"} = $comp->{exp_id_2} if defined $comp->{bothways} and $comp->{bothways};123 122 $exp_name{"$skycell_id.pos"} = $comp->{exp_name_1}; 124 $exp_name{"$skycell_id.neg"} = $comp->{exp_name_2} if defined $comp->{bothways} and $comp->{bothways}; 123 $direction{"$skycell_id.pos"} = 1; 124 125 # Negative direction 126 if (defined $comp->{bothways} and $comp->{bothways}) { 127 $files{"$skycell_id.neg"} = $ipprc->filename( "PPSUB.INVERSE.SOURCES", $path_base ); 128 $zp{"$skycell_id.neg"} = $zp; 129 $exp_id{"$skycell_id.neg"} = $comp->{exp_id_2}; 130 $direction{"$skycell_id.neg"} = 0; 131 $exp_name{"$skycell_id.neg"} = $comp->{exp_name_2}; 132 } 133 125 134 } elsif ($stage eq 'camera') { 126 135 my $cam_id = $comp->{cam_id}; … … 129 138 $exp_id{$cam_id} = $comp->{exp_id}; 130 139 $exp_name{$cam_id} = $comp->{exp_name}; 140 $direction{$cam_id} = 1; 131 141 } 132 142 } … … 145 155 my $exp_id = $exp_id{$comp}; 146 156 my $exp_name = $exp_name{$comp}; 157 my $direction = $direction{$comp}; 147 158 if ($product eq "IPP-MOPS") { 148 159 my $outuri = "$outroot.$comp.fits"; … … 150 161 &my_die( "Unable to resolve output file $outuri", $pub_id, $PS_EXIT_SYS_ERROR); 151 162 152 my $command = "$ppMops $file $zp $exp_id $exp_name $ out";163 my $command = "$ppMops $file $zp $exp_id $exp_name $direction $out"; 153 164 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 154 165 run(command => $command, verbose => $verbose);
Note:
See TracChangeset
for help on using the changeset viewer.
