IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28841


Ignore:
Timestamp:
Aug 4, 2010, 4:29:45 PM (16 years ago)
Author:
rhenders
Message:

Added function to get exposure list for a given DVO Db; changed function name for single exposure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/perl/ippToPsps/Gpc1Db.pm

    r28758 r28841  
    6464###########################################################################
    6565#
     66# Returns a list of exposure IDs in a given DVO database 
     67#
     68###########################################################################
     69sub getExposureListFromDvoDb {
     70    my ($self, $dvoDb) = @_;
     71
     72    my $query = $self->{_db}->prepare(<<SQL);
     73    SELECT exp_id, exp_name, camRun.dist_group
     74        FROM addRun
     75        JOIN camRun USING(cam_id)
     76        JOIN chipRun USING(chip_id)
     77        JOIN rawExp USING(exp_id)
     78        WHERE addRun.dvodb LIKE '$dvoDb'
     79        ORDER BY exp_id ASC;
     80SQL
     81
     82    $query->execute;
     83    return $query->fetchall_arrayref();
     84}
     85
     86###########################################################################
     87#
    6688# Returns a list of exposure IDs for this survey
    6789#
     
    101123#
    102124###########################################################################
    103 sub getExposureListFromExpId {
     125sub getSingleExposureInfo {
    104126    my ($self, $expId) = @_;
    105127
Note: See TracChangeset for help on using the changeset viewer.