Changeset 19001
- Timestamp:
- Aug 8, 2008, 5:56:50 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/lib/PStamp/Job.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/lib/PStamp/Job.pm
r18979 r19001 188 188 } 189 189 190 sub lookup_byexp {191 my $ipprc = shift;192 my $image_db = shift;193 my $img_type = shift;194 my $exp_name = shift;195 my $class_id = shift;196 197 return undef;198 }199 200 # $results = lookup_bycoord($ipprc, $image_db, $x, $y, $mjd_min, $mjd_max, $filter);201 190 sub lookup_bycoord { 202 191 my $ipprc = shift; … … 216 205 } 217 206 218 # XXX TODO: we don't yet do real lookups by cordinate but we can lookup by date and filter 207 # XXX TODO: 208 # Full lookups by coordinate require looking at the DVO database. However, 209 # dateobs and filter which is all that MOPS has asked for. 219 210 220 211 my $args; … … 231 222 } 232 223 224 if (!$args) { 225 # avoid returning every exposure in the DB 226 print STDERR "no query arguments provided for bycoord\n"; 227 return undef; 228 } 229 233 230 # XXX TODO: This query doesn't work Something appears to be out of 234 231 # sync about the times I'm passing and what regtool and or the DB expect 232 # the query I used in the C version of locateimages used 233 # WHERE dateobs >= FROM_UNIXTIME(%ld) AND dateobs <= FROM_UNIXTIME(%ld + exp_time) 234 235 235 my $command = "$regtool -processedexp -dbname $image_db $args"; 236 236
Note:
See TracChangeset
for help on using the changeset viewer.
