Changeset 18640
- Timestamp:
- Jul 20, 2008, 3:53:03 PM (18 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 2 edited
-
pstamp_finish.pl (modified) (1 diff)
-
pstampparse.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_finish.pl
r18587 r18640 166 166 print STDERR "no reglist file for job $job_id\n" if $verbose; 167 167 print $tdf "$rownum|$fault|0|$job_id|"; 168 print $tdf "0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|\n"; 168 169 } 169 170 } else { -
trunk/pstamp/scripts/pstampparse.pl
r18587 r18640 69 69 70 70 my $pstamptool = can_run('pstamptool') or (warn "Can't find pstamptool" and $missing_tools = 1); 71 my $lo okup_images = can_run('pstampparse') or (warn "Can't find pstampparse" and $missing_tools = 1);71 my $locateimages = can_run('locateimages') or (warn "Can't find locateimages" and $missing_tools = 1); 72 72 my $pstampdump = can_run('pstampdump') or (warn "Can't find pstampdump" and $missing_tools = 1); 73 73 my $fields = can_run('fields') or (warn "Can't find fields" and $missing_tools = 1); … … 147 147 my $stamp_name = $row->{STAMP_NAME}; 148 148 my $filter = $row->{FILTER}; 149 my $ date_min = $row->{DATE_MIN};150 my $ date_max = $row->{DATE_MAX};149 my $mjd_min = $row->{MJD_MIN}; 150 my $mjd_max = $row->{MJD_MAX}; 151 151 my $x = $row->{CENTER_X}; 152 152 my $y = $row->{CENTER_Y}; … … 155 155 my $coord_mask = $row->{COORD_MASK}; 156 156 my $option_mask= $row->{OPTION_MASK}; 157 158 $stamp_name = "" if $stamp_name eq "null"; 159 157 160 158 161 # XXX: TODO: don't die in this loop. If we encounter an error add a job with the proper fault … … 182 185 } 183 186 184 die "region of interest is required for request type bycoord"185 if (($req_type eq "bycoord") && !defined($roi_string));186 187 187 die "region of interest is required to make postage stamps" 188 188 if (($job_type eq "stamp") && !defined($roi_string)); … … 190 190 # find the uris for this request 191 191 192 # XXX: replace the invokcation of the hacked pstampparse with a new ippTool that finds 192 if ($req_type eq "bycoord") { 193 die "region of interest is required for request type bycoord" if !defined($roi_string) ; 194 die "center must be specified in sky coordintes for bycoord" 195 if ($coord_mask & PSTAMP_CENTER_IN_PIXELS); 196 # replace the id with center coordinates 197 $id = "$x $y"; 198 } 199 200 # XXX: replace the invokcation of the hacked locateimages with a new ippTool that finds 193 201 # images/runs and prints out the uri and other metadata as a metadata config doc 194 202 195 my $command = "$lookup_images -dbname $image_db -$req_type $img_type $id $lookup_class_id"; 203 my $command = "$locateimages -dbname $image_db -$req_type $img_type $id $lookup_class_id"; 204 $command .= " -mjd_min $mjd_min" if ($mjd_min); 205 $command .= " -mjd_max $mjd_max" if ($mjd_max); 196 206 197 207 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 245 255 246 256 $num++; 247 my $output_base = "$out_dir/${rownum}_${num}_${stamp_name}"; 257 my $output_base = "$out_dir/${rownum}_${num}"; 258 $output_base .= "_${stamp_name}" if $stamp_name; 248 259 249 260 # XXX: TODO: here is where we need to check whether or not the source inputs still exist
Note:
See TracChangeset
for help on using the changeset viewer.
