Changeset 20221 for trunk/pstamp/scripts/pstampparse.pl
- Timestamp:
- Oct 17, 2008, 9:42:10 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstampparse.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstampparse.pl
r20166 r20221 192 192 $x, $y, $mjd_min, $mjd_max, $filter); 193 193 194 if (!$images) { 195 print STDERR "no matching images found\n"; 196 exit $PS_EXIT_DATA_ERROR; 197 } 194 198 if ($mode eq "list_uri") { 195 199 foreach my $image (@$images) { … … 201 205 my $listfile = "$out_dir/filelist"; 202 206 207 208 # map our img_type to the Data Store file types. 209 my %filelist_img_types = ( "raw" => "chip", 210 "chip" => "chipproc", 211 "warp" => "warp", 212 "stack"=>"stack", 213 "diff" => "diff"); 214 215 my $filelist_img_type = $filelist_img_types{$img_type}; 216 203 217 open LISTFILE, ">$listfile" 204 218 or die "failed to open file list: $listfile while parsing get_image request $req_id"; 205 219 206 220 foreach my $image (@$images) { 207 print LISTFILE "$image->{image}|$img_type\n"; 221 my $class_id = $image->{class_id} ? $image->{class_id} : ""; 222 print LISTFILE "$image->{image}|$filelist_img_type|$class_id|\n"; 208 223 } 209 224 close LISTFILE; … … 234 249 my $uri = $image->{image}; 235 250 my $exp_id = $image->{exp_id}; 251 236 252 237 253 $job_num++;
Note:
See TracChangeset
for help on using the changeset viewer.
