Changeset 21368 for trunk/pswarp/src/pswarpParseCamera.c
- Timestamp:
- Feb 5, 2009, 5:10:36 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpParseCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpParseCamera.c
r21323 r21368 6 6 * 7 7 * @author IfA 8 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2009-02-0 5 20:44:04$8 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-06 03:10:36 $ 10 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 11 */ … … 57 57 } 58 58 59 pmFPAfile *in Weight = pmFPAfileBindFromArgs(&status, input, config, "PSWARP.WEIGHT", "WEIGHT");59 pmFPAfile *inVariance = pmFPAfileBindFromArgs(&status, input, config, "PSWARP.VARIANCE", "VARIANCE"); 60 60 if (!status) { 61 61 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 62 62 return NULL; 63 63 } 64 if (!in Weight) {65 psLogMsg ("pswarp", 3, "no weightsupplied\n");64 if (!inVariance) { 65 psLogMsg ("pswarp", 3, "no variance supplied\n"); 66 66 } 67 67 … … 90 90 outMask->save = true; 91 91 92 if (in Weight) {93 pmFPAfile *out Weight = pmFPAfileDefineSkycell(config, output->fpa, "PSWARP.OUTPUT.WEIGHT");94 if (!out Weight) {95 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.OUTPUT. WEIGHT");92 if (inVariance) { 93 pmFPAfile *outVariance = pmFPAfileDefineSkycell(config, output->fpa, "PSWARP.OUTPUT.VARIANCE"); 94 if (!outVariance) { 95 psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.OUTPUT.VARIANCE"); 96 96 return false; 97 97 } 98 out Weight->save = true;98 outVariance->save = true; 99 99 } 100 100
Note:
See TracChangeset
for help on using the changeset viewer.
