Changeset 10954 for trunk/pswarp/src/pswarpParseCamera.c
- Timestamp:
- Jan 7, 2007, 6:48:50 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpParseCamera.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpParseCamera.c
r10952 r10954 3 3 bool pswarpParseCamera (pmConfig *config) { 4 4 5 bool status = false;5 bool status; 6 6 7 7 // the input image(s) are required arguments; they define the camera 8 status = false; 8 9 pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "PSWARP.INPUT", "INPUT"); 9 if (! status) {10 if (!input) { 10 11 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.INPUT"); 11 12 return false; … … 13 14 14 15 // the input skycell is a required argument: it defines the output image 16 status = false; 15 17 pmFPAfile *skycell = pmFPAfileDefineFromArgs (&status, config, "PSWARP.SKYCELL", "SKYCELL"); 16 if (!s tatus) {17 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP. INPUT");18 if (!skycell) { 19 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.SKYCELL"); 18 20 return false; 19 21 } 20 22 21 23 // the mask is not required; the skycell is a required argument: it defines the output image 24 status = false; 22 25 pmFPAfileDefineFromArgs (&status, config, "PSWARP.MASK", "MASK"); 23 26 if (!status) { … … 26 29 27 30 // the weight is not required; the skycell is a required argument: it defines the output image 31 status = false; 28 32 pmFPAfileDefineFromArgs (&status, config, "PSWARP.WEIGHT", "WEIGHT"); 29 33 if (!status) { … … 32 36 33 37 // these calls bind the I/O handle to the specified fpa 34 pmFPAfileDefineOutput (config, skycell->fpa, "PSWARP.OUTPUT"); 38 if (!pmFPAfileDefineOutput (config, skycell->fpa, "PSWARP.OUTPUT")) { 39 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.OUTPUT"); 40 return false; 41 } 35 42 36 43 // Chip selection: turn on only the chips specified
Note:
See TracChangeset
for help on using the changeset viewer.
