- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ppStack/src (modified) (1 prop)
-
ppStack/src/ppStackPSF.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ppStack/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppStackVersionDefinitions.h 12 ppStackErrorCodes.c 13 ppStackErrorCodes.h
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/ppStack/src/ppStackPSF.c
r23192 r27840 9 9 #include "ppStack.h" 10 10 11 //#define TESTING 12 11 13 pmPSF *ppStackPSF(const pmConfig *config, int numCols, int numRows, 12 14 const psArray *psfs, const psVector *inputMask) 13 15 { 16 bool mdok = false; 17 18 #ifndef TESTING 14 19 // Get the recipe values 15 20 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe … … 21 26 int psfOrder = psMetadataLookupS32(NULL, recipe, "PSF.ORDER"); // Spatial order for PSF 22 27 28 psString maskValStr = psMetadataLookupStr(&mdok, recipe, "MASK.VAL"); // Name of bits to mask going in 29 if (!mdok || !maskValStr) { 30 psError(PPSTACK_ERR_CONFIG, false, "Unable to find MASK.VAL in recipe"); 31 return false; 32 } 33 psImageMaskType maskVal = pmConfigMaskGet(maskValStr, config); // Bits to mask 34 23 35 for (int i = 0; i < psfs->n; i++) { 24 36 if (inputMask->data.U8[i]) { … … 29 41 30 42 // Solve for the target PSF 31 pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel, 32 psfOrder, psfOrder); 43 pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel, psfOrder, psfOrder, maskVal); 33 44 if (!psf) { 34 psError(P S_ERR_UNKNOWN, false, "Unable to determine output PSF.");45 psError(PPSTACK_ERR_PSF, false, "Unable to determine output PSF."); 35 46 return NULL; 36 47 } 48 #else 49 // Dummy PSF 50 pmPSF *psf = pmPSFBuildSimple("PS_MODEL_PS1_V1", 4.0, 4.0, 0.0, 1.0); 51 if (!psf) { 52 psError(PPSTACK_ERR_PSF, false, "Unable to build dummy PSF."); 53 return NULL; 54 } 55 #endif 37 56 38 57 return psf;
Note:
See TracChangeset
for help on using the changeset viewer.
