Changeset 11351
- Timestamp:
- Jan 27, 2007, 4:07:20 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImagePhotom.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImagePhotom.c
r11266 r11351 5 5 # include "ppImage.h" 6 6 7 // the top portion of this function is equivalent to psphotParseCamera, 8 // but different in a few important ways. 7 9 bool ppImagePhotom (pmConfig *config, pmFPAview *view) { 8 10 … … 12 14 13 15 psphotModelGroupInit (); 14 15 // select recipe options supplied on command line16 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSPHOT_RECIPE);17 18 // set default recipe values here19 // 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);25 16 26 17 // find or define a pmFPAfile PSPHOT.INPUT … … 39 30 outfile->freeLevel = PM_FPA_LEVEL_FPA; 40 31 } 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); 41 52 42 53 // determine PHOTCODE from fpa & view, overwrite in recipe
Note:
See TracChangeset
for help on using the changeset viewer.
