IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 12, 2006, 11:47:59 AM (20 years ago)
Author:
Paul Price
Message:

Adding time lookup for detrend selection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r9437 r9518  
    638638    // detselect -camera (camera) -time (time) -type (type) [others]
    639639    // camera and time are functions of (pmFPA *input)
    640     // XXX we need to get the time, but we don't have the CELL.TIME yet set (no CELL yet read)
    641     // add other options here f(pmFPA *input, type)
    642     psTime *time = psTimeGetNow (PS_TIME_TAI);
     640    // XXX add other options here f(pmFPA *input, type)
     641
     642    // Get the time from FPA.TIME
     643    psTime *time = psMetadataLookupPtr(NULL, fpa->concepts, "FPA.TIME");
     644    if (time->sec == 0 && time->nsec == 0) {
     645        psError(PS_ERR_UNKNOWN, false, "FPA.TIME has not been set.\n");
     646        psFree(fpa);
     647        return NULL;
     648    }
    643649    pmDetrendSelectOptions *options = pmDetrendSelectOptionsAlloc(config->cameraName, *time, type);
    644650    psFree (time);
Note: See TracChangeset for help on using the changeset viewer.