Changeset 15982 for trunk/psModules/src/objects/pmPSF_IO.c
- Timestamp:
- Jan 2, 2008, 10:40:47 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSF_IO.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSF_IO.c
r15707 r15982 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $9 * @date $Date: 200 7-11-28 01:01:14$8 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2008-01-02 20:37:43 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 54 54 PS_ASSERT_PTR_NON_NULL(file->fpa, false); 55 55 PS_ASSERT_PTR_NON_NULL(file->fpa->chips, false); 56 57 56 pmFPA *fpa = file->fpa; 58 57 … … 61 60 return exists; 62 61 } 62 63 63 if (view->chip >= fpa->chips->n) { 64 64 psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == %ld", view->chip, fpa->chips->n); 65 65 return false; 66 66 } 67 67 68 pmChip *chip = fpa->chips->data[view->chip]; 68 69 PS_ASSERT_PTR_NON_NULL(chip, false); … … 73 74 return exists; 74 75 } 76 75 77 if (view->cell >= chip->cells->n) { 76 78 psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == %ld", view->cell, chip->cells->n); 77 79 return false; 78 80 } 81 79 82 psError(PS_ERR_IO, false, "PSF only valid at the chip level"); 80 83 return false; … … 181 184 // else 182 185 // - psf table (+header) : FITS Table 183 bool pmPSFmodelWrite (psMetadata *analysis, const pmFPAview *view, pmFPAfile *file, const pmConfig *config) 186 bool pmPSFmodelWrite (psMetadata *analysis, const pmFPAview *view, 187 pmFPAfile *file, const pmConfig *config) 184 188 { 185 189 PS_ASSERT_PTR_NON_NULL(view, false);
Note:
See TracChangeset
for help on using the changeset viewer.
