IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2007, 4:07:20 PM (19 years ago)
Author:
eugene
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImagePhotom.c

    r11266 r11351  
    55# include "ppImage.h"
    66
     7// the top portion of this function is equivalent to psphotParseCamera,
     8// but different in a few important ways. 
    79bool ppImagePhotom (pmConfig *config, pmFPAview *view) {
    810
     
    1214
    1315    psphotModelGroupInit ();
    14 
    15     // select recipe options supplied on command line
    16     psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, PSPHOT_RECIPE);
    17 
    18     // set default recipe values here
    19     // XXX place this in a psphot library function?
    20     psMetadataAddStr (recipe, PS_LIST_TAIL, "FITMODE",         PS_META_NO_REPLACE, "default fitting mode", "NONE");
    21     psMetadataAddStr (recipe, PS_LIST_TAIL, "BREAK_POINT",     PS_META_NO_REPLACE, "default break point",  "NONE");
    22     psMetadataAddF32 (recipe, PS_LIST_TAIL, "ZERO_PT",         PS_META_NO_REPLACE, "default zero point",    25.00);
    23     psMetadataAddS32 (recipe, PS_LIST_TAIL, "BACKGROUND.XBIN", PS_META_NO_REPLACE, "default binning",          64);
    24     psMetadataAddS32 (recipe, PS_LIST_TAIL, "BACKGROUND.YBIN", PS_META_NO_REPLACE, "default binning",          64);
    2516
    2617    // find or define a pmFPAfile PSPHOT.INPUT
     
    3930        outfile->freeLevel = PM_FPA_LEVEL_FPA;
    4031    }
     32
     33    // if we have requested PSPHOT.SRC (externally supplied sources), attempt to resolve it
     34    if (psMetadataLookupPtr(NULL, config->arguments, "PSPHOT.SRC")) {
     35        pmFPAfileDefineFromArgs (&status, config, "PSPHOT.SRC", "SRC");
     36        if (!status) {
     37            psError(PSPHOT_ERR_CONFIG, false, "Failed to find/build PSPHOT.SRC");
     38            return status;
     39        }
     40    }
     41
     42    // select recipe options supplied on command line
     43    psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, PSPHOT_RECIPE);
     44
     45    // set default recipe values here
     46    // XXX place this in a psphot library function?
     47    psMetadataAddStr (recipe, PS_LIST_TAIL, "FITMODE",         PS_META_NO_REPLACE, "default fitting mode", "NONE");
     48    psMetadataAddStr (recipe, PS_LIST_TAIL, "BREAK_POINT",     PS_META_NO_REPLACE, "default break point",  "NONE");
     49    psMetadataAddF32 (recipe, PS_LIST_TAIL, "ZERO_PT",         PS_META_NO_REPLACE, "default zero point",    25.00);
     50    psMetadataAddS32 (recipe, PS_LIST_TAIL, "BACKGROUND.XBIN", PS_META_NO_REPLACE, "default binning",          64);
     51    psMetadataAddS32 (recipe, PS_LIST_TAIL, "BACKGROUND.YBIN", PS_META_NO_REPLACE, "default binning",          64);
    4152
    4253    // determine PHOTCODE from fpa & view, overwrite in recipe
Note: See TracChangeset for help on using the changeset viewer.