IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6073


Ignore:
Timestamp:
Jan 19, 2006, 7:13:33 PM (21 years ago)
Author:
jhoblitt
Message:

comment out time handling specific code
add errorcheckiing for metadatadb calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/p2searchRawFrames.c

    r6072 r6073  
    1515        psMetadataAddStr (where, PS_LIST_TAIL, "FILTER", 0, "==", config->filter);
    1616    }
     17    // psMetadataConfig does not support times yet
     18    /*
    1719    if (!psTimeIsZero(config->start) && !psTimeIsZero(config->stop)) {
    1820        psMetadataAddTime (where, PS_LIST_TAIL, "TIME_START", 0, "<", config->stop);
    1921        psMetadataAddTime (where, PS_LIST_TAIL, "TIME_STOP", 0, ">", config->start);
    2022    }
     23    */
    2124
    2225    psArray *exposures = rawScienceExpSelectRowObjects (config->database, where, MAX_ROWS);
    2326    psFree (where);
     27    if (!exposures) {
     28        psError(PS_ERR_UNKNOWN, false, "database access failed");
     29
     30        return NULL;
     31    }
    2432
    2533    // output array of ppRawFrame
     
    3442
    3543        psArray *images = rawImfileSelectRowObjects (config->database, where, MAX_ROWS);
     44        if (!images) {
     45            psError(PS_ERR_UNKNOWN, false, "database access failed");
     46
     47            return NULL;
     48        }
    3649
    3750        ppRawFrame *frame = ppRawFrameAlloc (exposure, images);
Note: See TracChangeset for help on using the changeset viewer.