Changeset 28442
- Timestamp:
- Jun 23, 2010, 3:14:44 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ippconfig/recipes/pswarp.config (modified) (2 diffs)
-
pswarp/src/pswarpParseCamera.c (modified) (4 diffs)
-
pswarp/src/pswarpTransformReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/recipes/pswarp.config
r28043 r28442 11 11 INTERPOLATION.NUM S32 1000 # Number of interpolation kernels to pre-calculate 12 12 PSF BOOL TRUE # Measure PSF for warped image? 13 SOURCES BOOL TRUE # Write source list for warped image? 13 14 14 15 MASK.STATS BOOL TRUE # calculate mask statistics. … … 27 28 PSF BOOL FALSE 28 29 END 30 31 # Background restoration 32 BACKGROUND METADATA 33 SOURCES BOOL FALSE # Write source list for warped image? 34 PSF BOOL FALSE # Measure PSF for warped image? 35 END -
trunk/pswarp/src/pswarpParseCamera.c
r27096 r28442 61 61 { 62 62 psAssert(config, "Require configuration"); 63 bool mdok; // Status of MD lookup 63 64 64 65 // The input image(s) is required: it defines the camera … … 94 95 psFree(skyConfig); 95 96 97 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSWARP_RECIPE); 98 if (!recipe) { 99 psError(PSWARP_ERR_CONFIG, false, "missing recipe %s", PSWARP_RECIPE); 100 return false; 101 } 102 96 103 // The output skycell 97 104 pmFPAfile *output = pmFPAfileDefineSkycell(config, NULL, "PSWARP.OUTPUT"); … … 118 125 } 119 126 120 if (astrom ) {127 if (astrom && psMetadataLookupBool(&mdok, recipe, "SOURCES")) { 121 128 pmFPAfile *outSources = pmFPAfileDefineSkycell(config, output->fpa, "PSWARP.OUTPUT.SOURCES"); 122 129 if (!outSources) { … … 127 134 } 128 135 129 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSWARP_RECIPE);130 if (!recipe) {131 psError(PSWARP_ERR_CONFIG, false, "missing recipe %s", PSWARP_RECIPE);132 return false;133 }134 135 bool mdok; // Status of MD lookup136 136 if (psMetadataLookupBool(&mdok, recipe, "PSF")) { 137 137 // This file, PSPHOT.INPUT, is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by -
trunk/pswarp/src/pswarpTransformReadout.c
r28405 r28442 195 195 psFree(interp); 196 196 197 if (goodPixels > 0 ) {197 if (goodPixels > 0 && psMetadataLookupBool(&mdok, recipe, "SOURCES")) { 198 198 if (!pswarpTransformSources(output, input, config)) { 199 199 psError(psErrorCodeLast(), false, "Unable to interpolate image.");
Note:
See TracChangeset
for help on using the changeset viewer.
