Changeset 13528 for trunk/pswarp/src/pswarpParseCamera.c
- Timestamp:
- May 25, 2007, 5:09:20 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpParseCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpParseCamera.c
r12771 r13528 10 10 status = false; 11 11 pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "PSWARP.INPUT", "INPUT"); 12 if (!input ) {12 if (!input || !status) { 13 13 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.INPUT"); 14 14 return false; … … 17 17 // the input image(s) are required arguments; they define the camera 18 18 status = false; 19 pmFPAfileDefineFromArgs (&status, config, "PSWARP.ASTROM", "ASTROM"); 20 if (status) { 19 pmFPAfile *astrom = pmFPAfileDefineFromArgs (&status, config, "PSWARP.ASTROM", "ASTROM"); 20 if (!status) { 21 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 22 return NULL; 23 } 24 if (astrom) { 21 25 psLogMsg ("pswarp", 3, "using supplied astrometry\n"); 22 26 } else { … … 25 29 26 30 // the mask is not required - but must conform to input camera 27 pmFPAfile *inMask = pmFPAfileBindFromArgs(NULL, input, config, "PSWARP.MASK", "MASK"); 31 pmFPAfile *inMask = pmFPAfileBindFromArgs(&status, input, config, "PSWARP.MASK", "MASK"); 32 if (!status) { 33 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 34 return NULL; 35 } 28 36 if (!inMask) { 29 37 psLogMsg ("pswarp", 3, "no mask supplied\n"); 30 38 } 31 39 32 pmFPAfile *inWeight = pmFPAfileBindFromArgs(NULL, input, config, "PSWARP.WEIGHT", "WEIGHT"); 40 pmFPAfile *inWeight = pmFPAfileBindFromArgs(&status, input, config, "PSWARP.WEIGHT", "WEIGHT"); 41 if (!status) { 42 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 43 return NULL; 44 } 33 45 if (!inWeight) { 34 46 psLogMsg ("pswarp", 3, "no weight supplied\n");
Note:
See TracChangeset
for help on using the changeset viewer.
