Changeset 19962
- Timestamp:
- Oct 7, 2008, 2:07:16 PM (18 years ago)
- Location:
- trunk/ppSub/src
- Files:
-
- 2 edited
-
ppSubArguments.c (modified) (3 diffs)
-
ppSubReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubArguments.c
r19698 r19962 7 7 #include <pslib.h> 8 8 #include <psmodules.h> 9 #include <psphot.h> 9 10 10 11 #include "ppSub.h" … … 172 173 { 173 174 assert(config); 175 176 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim 177 if (!recipe) { 178 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSUB_RECIPE); 179 return false; 180 } 181 182 { 183 int arg; // Argument Number 184 if ((arg = psArgumentGet(argc, argv, "-psphot-visual"))) { 185 psArgumentRemove(arg, &argc, argv); 186 psMetadataAddBool(recipe, PS_LIST_TAIL, "PSPHOT.VISUAL", 0, "Visual guide to psphot?", true); 187 } 188 } 174 189 175 190 pmConfigFileSetsMD(config->arguments, &argc, argv, "PPSUB.SOURCES", "-sources", NULL); … … 249 264 } 250 265 251 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim252 if (!recipe) {253 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSUB_RECIPE);254 return false;255 }256 257 266 if (psMetadataLookupBool(NULL, arguments, "-photometry")) { 258 267 psMetadataAddBool(recipe, PS_LIST_TAIL, "PHOTOMETRY", PS_META_REPLACE, "Perform photometry?", true); -
trunk/ppSub/src/ppSubReadout.c
r19704 r19962 512 512 psFree(psf); 513 513 514 if (psMetadataLookupBool(&mdok, recipe, "PSPHOT.VISUAL")) { 515 psphotSetVisual(true); 516 } 517 514 518 // Need to ensure aperture residual is not calculated 515 psMetadata * recipe = psMetadataLookupMetadata(NULL, config->recipes, PSPHOT_RECIPE); // Recipe516 psMetadataItem *item = psMetadataLookup( recipe, "MEASURE.APTREND"); // Item determining aptrend519 psMetadata *psphotRecipe = psMetadataLookupMetadata(NULL, config->recipes, PSPHOT_RECIPE); // Recipe 520 psMetadataItem *item = psMetadataLookup(psphotRecipe, "MEASURE.APTREND"); // Item determining aptrend 517 521 if (!item) { 518 522 psWarning("Unable to find MEASURE.APTREND in psphot recipe");
Note:
See TracChangeset
for help on using the changeset viewer.
