Changeset 23335 for branches/eam_branches/eam_branch_20090312/psastro/src/psastroExtractParseCamera.c
- Timestamp:
- Mar 15, 2009, 4:56:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/eam_branch_20090312/psastro/src/psastroExtractParseCamera.c
r23322 r23335 16 16 17 17 bool status = false; 18 pmFPAfile *input = NULL;19 18 20 19 // the input image(s) are required arguments; they define the camera … … 29 28 status = false; 30 29 pmFPAfile *astrom = pmFPAfileDefineFromArgs(&status, config, "PSASTRO.EXTRACT.ASTROM", "ASTROM"); 31 if (! status) {30 if (!astrom || !status) { 32 31 psError (PS_ERR_UNKNOWN, false, "failed to load astrometry definition"); 33 32 return NULL; 34 }35 if (astrom) {36 psLogMsg ("psastro", 3, "using supplied astrometry\n");37 } else {38 psLogMsg ("psastro", 3, "using header astrometry\n");39 33 } 40 34 … … 54 48 psArray *chips = psStringSplitArray (chipLine, ",", false); 55 49 if (chips->n > 0) { 56 pmFPASelectChip (output->fpa, -1, true); // deselect all chips 50 pmFPASelectChip (input->fpa, -1, true); // deselect all chips 51 pmFPASelectChip (astrom->fpa, -1, true); // deselect all chips 57 52 for (int i = 0; i < chips->n; i++) { 58 53 int chipNum = atoi(chips->data[i]); 59 if (! pmFPASelectChip(output->fpa, chipNum, false)) { 54 if (! pmFPASelectChip(input->fpa, chipNum, false)) { 55 psError(PSASTRO_ERR_CONFIG, true, "Chip number %d doesn't exist in camera.\n", chipNum); 56 return false; 57 } 58 if (! pmFPASelectChip(astrom->fpa, chipNum, false)) { 60 59 psError(PSASTRO_ERR_CONFIG, true, "Chip number %d doesn't exist in camera.\n", chipNum); 61 60 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
