IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19001


Ignore:
Timestamp:
Aug 8, 2008, 5:56:50 PM (18 years ago)
Author:
bills
Message:

commit before leaving

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/lib/PStamp/Job.pm

    r18979 r19001  
    188188}
    189189
    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);
    201190sub lookup_bycoord {
    202191    my $ipprc    = shift;
     
    216205    }
    217206
    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.
    219210
    220211    my $args;
     
    231222    }
    232223
     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
    233230    # XXX TODO: This query doesn't work Something appears to be out of
    234231    # 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
    235235    my $command = "$regtool -processedexp -dbname $image_db $args";
    236236
Note: See TracChangeset for help on using the changeset viewer.