Changeset 18431
- Timestamp:
- Jul 6, 2008, 6:23:26 PM (18 years ago)
- Location:
- branches/eam_branch_20080706/psModules/src/camera
- Files:
-
- 2 edited
-
pmHDUUtils.c (modified) (1 diff)
-
pmHDUUtils.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080706/psModules/src/camera/pmHDUUtils.c
r12768 r18431 9 9 #include "pmFPA.h" 10 10 #include "pmHDUUtils.h" 11 12 pmHDU *pmHDUGetFirst (const pmFPA *fpa) { 13 14 // XXX we probably should have an indicator in pmFPA about the depths. 15 16 if (!fpa) return NULL; 17 if (fpa->hdu) return fpa->hdu; 18 19 for (int i = 0; i < fpa->chips->n; i++) { 20 pmChip *chip = fpa->chips[i]; 21 if (!chip) continue; 22 if (chip->hdu) return chip->hdu; 23 if (!chip->cells) continue; 24 for (int j = 0; j < chip->cells->n; j++) { 25 pmCell *cell = chip->cells[j]; 26 if (!cell) continue; 27 if (cell->hdu) return cell->hdu; 28 } 29 } 30 return NULL; 31 } 11 32 12 33 pmHDU *pmHDUFromFPA(const pmFPA *fpa) -
branches/eam_branch_20080706/psModules/src/camera/pmHDUUtils.h
r12696 r18431 4 4 * @author Paul Price, IfA 5 5 * 6 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $7 * @date $Date: 200 7-03-30 21:12:56 $6 * @version $Revision: 1.9.46.1 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2008-07-07 04:23:26 $ 8 8 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 9 9 */ … … 14 14 /// @addtogroup Camera Camera Layout 15 15 /// @{ 16 17 /// Get the first HDU encountered in the hierarchy 18 pmHDU *pmHDUGetFirst (const pmFPA *fpa); 16 19 17 20 /// Get the lowest HDU in the hierarchy
Note:
See TracChangeset
for help on using the changeset viewer.
