Changeset 24261
- Timestamp:
- May 27, 2009, 11:23:22 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ippconfig/recipes/ppSub.config (modified) (2 diffs)
-
ppSub/src/ppSubCamera.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/recipes/ppSub.config
r24062 r24261 6 6 REGION.SIZE F32 0 # Iso-kernel region size (pixels) 7 7 SOURCE.RADIUS F32 3.0 # Source matching radius (pixels) 8 STAMP.SPACING F32 200 # Typical spacing between stamps (pixels)8 STAMP.SPACING F32 400 # Typical spacing between stamps (pixels) 9 9 STAMP.FOOTPRINT S32 20 # Size of stamps (pixels) 10 10 STAMP.THRESHOLD F32 5 # Flux threshold for stamps (stdev above background) … … 46 46 INVERSE BOOL FALSE # Generate inverse subtraction? 47 47 PHOTOMETRY BOOL FALSE # Perform photometry? 48 48 SAVE.CONVOLVED BOOL FALSE # Save convolved images? 49 49 50 50 # Recipe overrides for STACK -
trunk/ppSub/src/ppSubCamera.c
r23753 r24261 163 163 164 164 165 // Now that the camera has been determined, we can read the recipe 166 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim 167 if (!recipe) { 168 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSUB_RECIPE); 169 return false; 170 } 171 if (psMetadataLookupBool(NULL, config->arguments, "-photometry")) { 172 psMetadataAddBool(recipe, PS_LIST_TAIL, "PHOTOMETRY", PS_META_REPLACE, 173 "Perform photometry?", true); 174 } 175 if (psMetadataLookupBool(NULL, config->arguments, "-inverse")) { 176 psMetadataAddBool(recipe, PS_LIST_TAIL, "INVERSE", PS_META_REPLACE, 177 "Generate inverse subtractions?", true); 178 } 179 180 data->inverse = psMetadataLookupBool(NULL, recipe, "INVERSE"); 181 data->photometry = psMetadataLookupBool(NULL, recipe, "PHOTOMETRY"); 182 183 bool mdok; // Status of MD lookup 184 bool saveConv = psMetadataLookupBool(&mdok, recipe, "SAVE.CONVOLVED"); // Save convolved images? 185 165 186 // Convolved input image 166 187 pmFPAfile *inConvImage = defineOutputFile(config, input, true, "PPSUB.INPUT.CONV", PM_FPA_FILE_IMAGE); … … 171 192 return false; 172 193 } 194 if (saveConv) { 195 inConvImage->save = true; 196 inConvMask->save = true; 197 } 173 198 if (inVar) { 174 199 pmFPAfile *inConvVar = defineOutputFile(config, inConvImage, false, "PPSUB.INPUT.CONV.VARIANCE", … … 177 202 psError(PS_ERR_UNKNOWN, false, "Unable to define output files"); 178 203 return false; 204 } 205 if (saveConv) { 206 inConvVar->save = true; 179 207 } 180 208 } … … 188 216 return false; 189 217 } 218 if (saveConv) { 219 refConvImage->save = true; 220 refConvMask->save = true; 221 } 190 222 if (refVar) { 191 223 pmFPAfile *refConvVar = defineOutputFile(config, refConvImage, false, "PPSUB.REF.CONV.VARIANCE", … … 195 227 return false; 196 228 } 197 } 198 199 200 // Now that the camera has been determined, we can read the recipe 201 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim 202 if (!recipe) { 203 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSUB_RECIPE); 204 return false; 205 } 206 if (psMetadataLookupBool(NULL, config->arguments, "-photometry")) { 207 psMetadataAddBool(recipe, PS_LIST_TAIL, "PHOTOMETRY", PS_META_REPLACE, 208 "Perform photometry?", true); 209 } 210 if (psMetadataLookupBool(NULL, config->arguments, "-inverse")) { 211 psMetadataAddBool(recipe, PS_LIST_TAIL, "INVERSE", PS_META_REPLACE, 212 "Generate inverse subtractions?", true); 213 } 214 215 data->inverse = psMetadataLookupBool(NULL, recipe, "INVERSE"); 216 data->photometry = psMetadataLookupBool(NULL, recipe, "PHOTOMETRY"); 217 229 if (saveConv) { 230 refConvVar->save = true; 231 } 232 } 218 233 219 234 // Output image
Note:
See TracChangeset
for help on using the changeset viewer.
