IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 10, 2007, 2:08:40 PM (19 years ago)
Author:
Paul Price
Message:

Adding support for getting stamps from sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubCamera.c

    r14741 r14806  
    2828    pmFPAfile *inputMask = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.MASK", "INPUT.MASK");
    2929    if (!status) {
    30         psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     30        psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.INPUT.MASK");
    3131        return NULL;
    3232    }
     
    3939    pmFPAfile *inputWeight = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.WEIGHT", "INPUT.WEIGHT");
    4040    if (!status) {
    41         psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     41        psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.INPUT.WEIGHT");
    4242        return NULL;
    4343    }
     
    6262    pmFPAfile *refMask = pmFPAfileBindFromArgs(&status, ref, config, "PPSUB.REF.MASK", "REF.MASK");
    6363    if (!status) {
    64         psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     64        psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.REF.MASK");
    6565        return NULL;
    6666    }
     
    7373    pmFPAfile *refWeight = pmFPAfileBindFromArgs(&status, ref, config, "PPSUB.REF.WEIGHT", "REF.WEIGHT");
    7474    if (!status) {
    75         psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     75        psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.REF.WEIGHT");
    7676        return NULL;
    7777    }
     
    128128    psFree(view);
    129129
     130    pmFPAfile *sources = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.SOURCES", "SOURCES");
     131    if (!sources) {
     132        psError(PS_ERR_IO, false, "Failed to load file definition PPSUB.SOURCES");
     133        return false;
     134    }
     135    if (ref->type != PM_FPA_FILE_CMF) {
     136        psError(PS_ERR_IO, true, "PPSUB.SOURCES is not of type CMF");
     137        return false;
     138    }
     139
    130140    // psPhot input
    131141    if (psMetadataLookup(config->arguments, "PSPHOT.PSF")) {
Note: See TracChangeset for help on using the changeset viewer.