Changeset 27004 for trunk/ppStack/src/ppStackFiles.c
- Timestamp:
- Feb 18, 2010, 6:42:01 PM (16 years ago)
- Location:
- trunk/ppStack/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStackFiles.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppStackVersionDefinitions.h 12 ppStackErrorCodes.c 13 ppStackErrorCodes.h
-
- Property svn:ignore
-
trunk/ppStack/src/ppStackFiles.c
r26454 r27004 115 115 pmFPAview *view = pmFPAviewAlloc(0);// Pointer into FPA hierarchy 116 116 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 117 psError(PPSTACK_ERR_IO, false, "File checks failed."); 117 118 return NULL; 118 119 } 119 120 view->chip = 0; 120 121 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 122 psError(PPSTACK_ERR_IO, false, "File checks failed."); 121 123 return NULL; 122 124 } 123 125 view->cell = 0; 124 126 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 127 psError(PPSTACK_ERR_IO, false, "File checks failed."); 125 128 return NULL; 126 129 } 127 130 view->readout = 0; 128 131 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 132 psError(PPSTACK_ERR_IO, false, "File checks failed."); 129 133 return NULL; 130 134 } … … 141 145 view->chip = view->cell = view->readout = 0; 142 146 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) { 147 psError(PPSTACK_ERR_IO, false, "File checks failed."); 143 148 return false; 144 149 } 145 150 view->readout = -1; 146 151 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) { 152 psError(PPSTACK_ERR_IO, false, "File checks failed."); 147 153 return false; 148 154 } 149 155 view->cell = -1; 150 156 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) { 157 psError(PPSTACK_ERR_IO, false, "File checks failed."); 151 158 return false; 152 159 } 153 160 view->chip = -1; 154 161 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) { 162 psError(PPSTACK_ERR_IO, false, "File checks failed."); 155 163 return false; 156 164 } … … 172 180 psFits *fits = psFitsOpen(resolved, "w"); 173 181 if (!fits) { 174 psError(P S_ERR_IO, false, "Unable to open FITS file %s to write image.", resolved);182 psError(PPSTACK_ERR_IO, false, "Unable to open FITS file %s to write image.", resolved); 175 183 psFree(resolved); 176 184 return false; 177 185 } 178 186 if (!psFitsWriteImage(fits, header, image, 0, NULL)) { 179 psError(P S_ERR_IO, false, "Unable to write FITS image %s.", resolved);187 psError(PPSTACK_ERR_IO, false, "Unable to write FITS image %s.", resolved); 180 188 psFitsClose(fits); 181 189 psFree(resolved); … … 183 191 } 184 192 if (!psFitsClose(fits)) { 185 psError(P S_ERR_IO, false, "Unable to close FITS image %s.", resolved);193 psError(PPSTACK_ERR_IO, false, "Unable to close FITS image %s.", resolved); 186 194 psFree(resolved); 187 195 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
