Changeset 12505 for trunk/pswarp/src/pswarpParseCamera.c
- Timestamp:
- Mar 19, 2007, 3:58:02 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpParseCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpParseCamera.c
r10954 r12505 4 4 5 5 bool status; 6 pmFPAfile *skycell = NULL; 7 pmConfig *skyConfig = NULL; 6 8 7 9 // the input image(s) are required arguments; they define the camera … … 13 15 } 14 16 17 // the input image(s) are required arguments; they define the camera 18 status = false; 19 pmFPAfileDefineFromArgs (&status, config, "PSWARP.ASTROM", "ASTROM"); 20 if (status) { 21 fprintf (stderr, "using supplied astrometry\n"); 22 } else { 23 fprintf (stderr, "using header astrometry\n"); 24 } 25 26 // the mask is not required - but must conform to input camera 27 if (!pmFPAfileBindFromArgs (NULL, input, config, "PSWARP.MASK", "MASK")) { 28 fprintf (stderr, "no mask supplied\n"); 29 } 30 31 if (!pmFPAfileBindFromArgs (NULL, input, config, "PSWARP.WEIGHT", "WEIGHT")) { 32 fprintf (stderr, "no weight supplied\n"); 33 } 34 15 35 // the input skycell is a required argument: it defines the output image 16 status = false;17 pmFPAfile *skycell = pmFPAfileDefineFromArgs (&status, config, "PSWARP.SKYCELL", "SKYCELL");18 if (!s kycell) {36 // XXX we may need a different skycell structure here 37 status = pswarpDefineSkycell (&skycell, &skyConfig, config, "PSWARP.SKYCELL", "SKYCELL"); 38 if (!status) { 19 39 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.SKYCELL"); 20 40 return false; 21 41 } 22 42 23 // the mask is not required; the skycell is a required argument: it defines the output image24 status = false;25 pmFPAfileDefineFromArgs (&status, config, "PSWARP.MASK", "MASK");26 if (!status) {27 // build the basic mask concept here28 }29 30 // the weight is not required; the skycell is a required argument: it defines the output image31 status = false;32 pmFPAfileDefineFromArgs (&status, config, "PSWARP.WEIGHT", "WEIGHT");33 if (!status) {34 // build the basic weight concept here35 }36 37 43 // these calls bind the I/O handle to the specified fpa 38 if (!pmFPAfileDefineOutput ( config, skycell->fpa, "PSWARP.OUTPUT")) {44 if (!pmFPAfileDefineOutput (skyConfig, skycell->fpa, "PSWARP.OUTPUT")) { 39 45 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.OUTPUT"); 40 46 return false; … … 55 61 } 56 62 psFree (chips); 63 psFree (skyConfig); 57 64 58 65 psTrace("pswarp", 1, "Done with pswarpParseCamera...\n");
Note:
See TracChangeset
for help on using the changeset viewer.
