Changeset 13705 for trunk/pswarp/src/pswarpParseCamera.c
- Timestamp:
- Jun 7, 2007, 2:49:27 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpParseCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpParseCamera.c
r13685 r13705 9 9 // the input image(s) are required arguments; they define the camera 10 10 status = false; 11 pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "PSWARP.INPUT", "INPUT");11 pmFPAfile *input = pmFPAfileDefineFromArgs(&status, config, "PSWARP.INPUT", "INPUT"); 12 12 if (!input || !status) { 13 13 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.INPUT"); … … 17 17 // the input image(s) are required arguments; they define the camera 18 18 status = false; 19 pmFPAfile *astrom = pmFPAfile DefineFromArgs (&status, config, "PSWARP.ASTROM", "ASTROM");19 pmFPAfile *astrom = pmFPAfileBindFromArgs(&status, input, config, "PSWARP.ASTROM", "ASTROM"); 20 20 if (!status) { 21 21 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); … … 49 49 // the input skycell is a required argument: it defines the output image 50 50 // XXX we may need a different skycell structure here 51 status = pswarpDefineSkycell (&skycell, &skyConfig, config, "PSWARP.SKYCELL", "SKYCELL");51 status = pswarpDefineSkycell(&skycell, &skyConfig, config, "PSWARP.SKYCELL", "SKYCELL"); 52 52 if (!status) { 53 53 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.SKYCELL"); 54 54 return false; 55 55 } 56 psFree(skyConfig); 56 57 57 // these calls bind the I/O handle to the specified fpa 58 // NOTE: output file could be binned relative to sky cell... 59 // if (!pmFPAfileDefineFromFPA (skyConfig, skycell->fpa, 1, 1, "PSWARP.OUTPUT")) { 60 if (!pmFPAfileDefineOutput (skyConfig, skycell->fpa, "PSWARP.OUTPUT")) { 58 // The output skycell 59 pmFPAfile *output = pmFPAfileDefineSkycell(config, NULL, "PSWARP.OUTPUT"); 60 if (!output) { 61 61 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.OUTPUT"); 62 62 return false; 63 63 } 64 if (!pmFPAfileDefine Output (skyConfig, skycell->fpa, "PSWARP.OUTPUT.MASK")) {64 if (!pmFPAfileDefineSkycell(config, output->fpa, "PSWARP.OUTPUT.MASK")) { 65 65 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.OUTPUT.MASK"); 66 66 return false; 67 67 } 68 68 if (inWeight) { 69 if (!pmFPAfileDefine Output (skyConfig, skycell->fpa, "PSWARP.OUTPUT.WEIGHT")) {69 if (!pmFPAfileDefineSkycell(config, output->fpa, "PSWARP.OUTPUT.WEIGHT")) { 70 70 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.OUTPUT.WEIGHT"); 71 71 return false; 72 72 } 73 73 } 74 psFree (skyConfig);75 74 76 75 // Chip selection: turn on only the chips specified
Note:
See TracChangeset
for help on using the changeset viewer.
