IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13528 for trunk/psphot/src


Ignore:
Timestamp:
May 25, 2007, 5:09:20 PM (19 years ago)
Author:
eugene
Message:

changed the pmFPAfileDefine functions to not require an input status value

Location:
trunk/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotDefineFiles.c

    r13416 r13528  
    7575
    7676    // optionally save output plots
     77    // allow specific plots only
    7778    if (psMetadataLookupBool(NULL, recipe, "SAVE.PLOTS")) {
    7879        if (!pmFPAfileDefineOutput (config, input->fpa, "SOURCE.PLOT.MOMENTS")) {
    79             psTrace ("psphot", 3, "Cannot find a rule for SOURCE.PLOT.MOMENTS");
     80            psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for SOURCE.PLOT.MOMENTS");
     81            return false;
    8082        }
    8183        if (!pmFPAfileDefineOutput (config, input->fpa, "SOURCE.PLOT.PSFMODEL")) {
    82             psTrace ("psphot", 3, "Cannot find a rule for SOURCE.PLOT.PSFMODEL");
     84            psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for SOURCE.PLOT.PSFMODEL");
     85            return false;
    8386        }
    8487        if (!pmFPAfileDefineOutput (config, input->fpa, "SOURCE.PLOT.APRESID")) {
    85             psTrace ("psphot", 3, "Cannot find a rule for SOURCE.PLOT.APRESID");
     88            psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for SOURCE.PLOT.APRESID");
     89            return false;
    8690        }
    8791    }
    8892
    8993    if (psMetadataLookupPtr(NULL, config->arguments, "SRC")) {
    90         status = false;
    91         pmFPAfileDefineFromArgs (&status, config, "PSPHOT.INPUT.CMF", "SRC");
    92         if (!status) {
     94        if (!pmFPAfileDefineFromArgs (&status, config, "PSPHOT.INPUT.CMF", "SRC")) {
    9395            psError(PSPHOT_ERR_CONFIG, false, "Failed to find/build PSPHOT.INPUT.CMF");
    9496            return status;
     
    9799
    98100    if (psMetadataLookupPtr(NULL, config->arguments, "PSPHOT.PSF")) {
    99         status = false;
    100101        pmFPAfileBindFromArgs(&status, input, config, "PSPHOT.PSF.LOAD", "PSPHOT.PSF");
    101 //        pmFPAfileDefineFromArgs (&status, config, "PSPHOT.PSF.LOAD", "PSPHOT.PSF");
    102102        if (!status) {
    103103            psError(PSPHOT_ERR_CONFIG, false, "Failed to find/build PSPHOT.PSF.LOAD");
     
    111111    return true;
    112112}
    113 
    114     // if we have requested PSPHOT.SRC, attempt to resolve it
    115     // this is a list of input sources, stored in a psphot output format file
    116     // XXX this was disabled after the switch to CHIP-mosaicked images.  It needs to be tested
    117     // before it is added back into the code.
    118 # if (0)
    119     // optionally load the PSF Model and/or fixed stars
    120     // XXX add this back in later
    121     // pmFPAfileBindFromArgs (NULL, input, config, "PSPHOT.PSF", "PSF");
    122 # endif
    123 
  • trunk/psphot/src/psphotParseCamera.c

    r12805 r13528  
    1717    // if MASK or WEIGHT was supplied on command line, bind files to 'load'
    1818    // the mask and weight will be mosaicked with the image
    19     pmFPAfileBindFromArgs (NULL, load, config, "PSPHOT.MASK",   "MASK");
    20     pmFPAfileBindFromArgs (NULL, load, config, "PSPHOT.WEIGHT", "WEIGHT");
     19    pmFPAfileBindFromArgs (&status, load, config, "PSPHOT.MASK",   "MASK");
     20    if (!status) {
     21        psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     22        return NULL;
     23    }
     24
     25    pmFPAfileBindFromArgs (&status, load, config, "PSPHOT.WEIGHT", "WEIGHT");
     26    if (!status) {
     27        psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     28        return NULL;
     29    }
    2130
    2231    // the psphot analysis is performed on chips
Note: See TracChangeset for help on using the changeset viewer.