Changeset 25074 for trunk/ippScripts/scripts/publish_file.pl
- Timestamp:
- Aug 14, 2009, 12:39:56 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
r25072 r25074 82 82 my %zp; # Zero points 83 83 my %exp_id; # Exposure identifiers 84 my %exp_name; # Exposure names 84 85 { 85 86 my $command; # Command to run … … 118 119 $zp{"$skycell_id.pos"} = $zp; 119 120 $zp{"$skycell_id.neg"} = $zp if defined $comp->{bothways} and $comp->{bothways}; 120 $exp_id{"$skycell_id.pos"} = $comp->{exp1}; 121 $exp_id{"$skycell_id.neg"} = $comp->{exp2} if defined $comp->{bothways} and $comp->{bothways}; 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 $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}; 122 125 } elsif ($stage eq 'camera') { 123 126 my $cam_id = $comp->{cam_id}; … … 125 128 $zp{$cam_id} = $zp; 126 129 $exp_id{$cam_id} = $comp->{exp_id}; 130 $exp_name{$cam_id} = $comp->{exp_name}; 127 131 } 128 132 } … … 140 144 my $zp = $zp{$comp}; 141 145 my $exp_id = $exp_id{$comp}; 146 my $exp_name = $exp_name{$comp}; 142 147 if ($product eq "IPP-MOPS") { 143 148 my $outuri = "$outroot.$comp.fits"; … … 145 150 &my_die( "Unable to resolve output file $outuri", $pub_id, $PS_EXIT_SYS_ERROR); 146 151 147 my $command = "$ppMops $file $zp $exp_id $ out";152 my $command = "$ppMops $file $zp $exp_id $exp_name $out"; 148 153 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 149 154 run(command => $command, verbose => $verbose);
Note:
See TracChangeset
for help on using the changeset viewer.
