- Timestamp:
- Jul 30, 2010, 9:31:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/pswarp/src/pswarpParseCamera.c
r27096 r28794 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
Note:
See TracChangeset
for help on using the changeset viewer.
