Changeset 10421 for trunk/psModules/src/objects
- Timestamp:
- Dec 3, 2006, 8:48:10 AM (20 years ago)
- Location:
- trunk/psModules/src/objects
- Files:
-
- 5 edited
-
pmPSF_IO.c (modified) (25 diffs)
-
pmPSF_IO.h (modified) (2 diffs)
-
pmSourceIO.c (modified) (28 diffs)
-
pmSourceIO.h (modified) (2 diffs)
-
pmSourceIO_RAW.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSF_IO.c
r9770 r10421 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-1 0-28 20:23:51$8 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-12-03 18:48:10 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 117 117 } 118 118 119 bool pmFPAviewWritePSFmodel (const pmFPAview *view, pmFPAfile *file )119 bool pmFPAviewWritePSFmodel (const pmFPAview *view, pmFPAfile *file, pmConfig *config) 120 120 { 121 121 … … 123 123 124 124 if (view->chip == -1) { 125 pmFPAWritePSFmodel (fpa, view, file );125 pmFPAWritePSFmodel (fpa, view, file, config); 126 126 return true; 127 127 } … … 133 133 134 134 if (view->cell == -1) { 135 pmChipWritePSFmodel (chip, view, file );135 pmChipWritePSFmodel (chip, view, file, config); 136 136 return true; 137 137 } … … 143 143 144 144 if (view->readout == -1) { 145 pmCellWritePSFmodel (cell, view, file );145 pmCellWritePSFmodel (cell, view, file, config); 146 146 return true; 147 147 } … … 152 152 pmReadout *readout = cell->readouts->data[view->readout]; 153 153 154 pmReadoutWritePSFmodel (readout, view, file );154 pmReadoutWritePSFmodel (readout, view, file, config); 155 155 return true; 156 156 } 157 157 158 158 // read in all chip-level PSFmodel files for this FPA 159 bool pmFPAWritePSFmodel (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file )159 bool pmFPAWritePSFmodel (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 160 160 { 161 161 … … 163 163 164 164 pmChip *chip = fpa->chips->data[i]; 165 pmChipWritePSFmodel (chip, view, file );165 pmChipWritePSFmodel (chip, view, file, config); 166 166 } 167 167 return true; … … 169 169 170 170 // read in all cell-level PSFmodel files for this chip 171 bool pmChipWritePSFmodel (pmChip *chip, const pmFPAview *view, pmFPAfile *file )171 bool pmChipWritePSFmodel (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 172 172 { 173 173 … … 175 175 176 176 pmCell *cell = chip->cells->data[i]; 177 pmCellWritePSFmodel (cell, view, file );177 pmCellWritePSFmodel (cell, view, file, config); 178 178 } 179 179 return true; … … 181 181 182 182 // read in all readout-level PSFmodel files for this cell 183 bool pmCellWritePSFmodel (pmCell *cell, const pmFPAview *view, pmFPAfile *file )183 bool pmCellWritePSFmodel (pmCell *cell, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 184 184 { 185 185 … … 187 187 188 188 pmReadout *readout = cell->readouts->data[i]; 189 pmReadoutWritePSFmodel (readout, view, file );189 pmReadoutWritePSFmodel (readout, view, file, config); 190 190 } 191 191 return true; … … 193 193 194 194 // read in all readout-level Objects files for this cell 195 bool pmReadoutWritePSFmodel (pmReadout *readout, const pmFPAview *view, pmFPAfile *file )195 bool pmReadoutWritePSFmodel (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 196 196 { 197 197 bool status; 198 198 char *filename; 199 char *realname; 199 200 200 201 pmPSF *psf = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.PSF"); … … 203 204 case PM_FPA_FILE_PSF: 204 205 filename = pmFPAfileNameFromRule (file->filerule, file, view); 206 realname = pmConfigConvertFilename (filename, config); 207 205 208 psMetadata *psfData = pmPSFtoMetadata (NULL, psf); 206 psMetadataConfigWrite (psfData, filename);209 psMetadataConfigWrite (psfData, realname); 207 210 psFree (psfData); 211 psFree (realname); 208 212 psFree (filename); 209 213 return true; … … 218 222 219 223 220 bool pmFPAviewReadPSFmodel (const pmFPAview *view, pmFPAfile *file )224 bool pmFPAviewReadPSFmodel (const pmFPAview *view, pmFPAfile *file, pmConfig *config) 221 225 { 222 226 … … 224 228 225 229 if (view->chip == -1) { 226 pmFPAReadPSFmodel (fpa, view, file );230 pmFPAReadPSFmodel (fpa, view, file, config); 227 231 return true; 228 232 } … … 234 238 235 239 if (view->cell == -1) { 236 pmChipReadPSFmodel (chip, view, file );240 pmChipReadPSFmodel (chip, view, file, config); 237 241 return true; 238 242 } … … 244 248 245 249 if (view->readout == -1) { 246 pmCellReadPSFmodel (cell, view, file );250 pmCellReadPSFmodel (cell, view, file, config); 247 251 return true; 248 252 } … … 253 257 pmReadout *readout = cell->readouts->data[view->readout]; 254 258 255 pmReadoutReadPSFmodel (readout, view, file );259 pmReadoutReadPSFmodel (readout, view, file, config); 256 260 return true; 257 261 } 258 262 259 263 // read in all chip-level PSFmodel files for this FPA 260 bool pmFPAReadPSFmodel (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file )264 bool pmFPAReadPSFmodel (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 261 265 { 262 266 … … 264 268 265 269 pmChip *chip = fpa->chips->data[i]; 266 pmChipReadPSFmodel (chip, view, file );270 pmChipReadPSFmodel (chip, view, file, config); 267 271 } 268 272 return true; … … 270 274 271 275 // read in all cell-level PSFmodel files for this chip 272 bool pmChipReadPSFmodel (pmChip *chip, const pmFPAview *view, pmFPAfile *file )276 bool pmChipReadPSFmodel (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 273 277 { 274 278 … … 276 280 277 281 pmCell *cell = chip->cells->data[i]; 278 pmCellReadPSFmodel (cell, view, file );282 pmCellReadPSFmodel (cell, view, file, config); 279 283 } 280 284 return true; … … 282 286 283 287 // read in all readout-level PSFmodel files for this cell 284 bool pmCellReadPSFmodel (pmCell *cell, const pmFPAview *view, pmFPAfile *file )288 bool pmCellReadPSFmodel (pmCell *cell, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 285 289 { 286 290 … … 288 292 289 293 pmReadout *readout = cell->readouts->data[i]; 290 pmReadoutReadPSFmodel (readout, view, file );294 pmReadoutReadPSFmodel (readout, view, file, config); 291 295 } 292 296 return true; … … 294 298 295 299 // read in all readout-level Objects files for this cell 296 bool pmReadoutReadPSFmodel (pmReadout *readout, const pmFPAview *view, pmFPAfile *file )300 bool pmReadoutReadPSFmodel (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 297 301 { 298 302 299 303 unsigned int Nfail; 300 304 char *filename; 305 char *realname; 301 306 302 307 switch (file->type) { 303 308 case PM_FPA_FILE_PSF: 304 309 filename = pmFPAfileNameFromRule (file->filerule, file, view); 305 306 psMetadata *psfData = psMetadataConfigRead(NULL, &Nfail, filename, FALSE); 310 realname = pmConfigConvertFilename (filename, config); 311 312 psMetadata *psfData = psMetadataConfigRead(NULL, &Nfail, realname, FALSE); 307 313 pmPSF *psf = pmPSFfromMetadata (psfData); 308 314 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_UNKNOWN, "psphot psf", psf); … … 310 316 psFree (psf); 311 317 psFree (psfData); 318 psFree (realname); 312 319 psFree (filename); 313 320 -
trunk/psModules/src/objects/pmPSF_IO.h
r9539 r10421 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-1 0-13 21:15:45$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-12-03 18:48:10 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 18 psMetadata *pmPSFtoMetadata (psMetadata *metadata, pmPSF *psf); 19 19 pmPSF *pmPSFfromMetadata (psMetadata *metadata); 20 bool pmFPAviewWritePSFmodel (const pmFPAview *view, pmFPAfile *file );21 bool pmFPAWritePSFmodel (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file );22 bool pmChipWritePSFmodel (pmChip *chip, const pmFPAview *view, pmFPAfile *file );23 bool pmCellWritePSFmodel (pmCell *cell, const pmFPAview *view, pmFPAfile *file );24 bool pmReadoutWritePSFmodel (pmReadout *readout, const pmFPAview *view, pmFPAfile *file );20 bool pmFPAviewWritePSFmodel (const pmFPAview *view, pmFPAfile *file, pmConfig *config); 21 bool pmFPAWritePSFmodel (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 22 bool pmChipWritePSFmodel (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 23 bool pmCellWritePSFmodel (pmCell *cell, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 24 bool pmReadoutWritePSFmodel (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 25 25 26 bool pmFPAviewReadPSFmodel (const pmFPAview *view, pmFPAfile *file );27 bool pmFPAReadPSFmodel (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file );28 bool pmChipReadPSFmodel (pmChip *chip, const pmFPAview *view, pmFPAfile *file );29 bool pmCellReadPSFmodel (pmCell *cell, const pmFPAview *view, pmFPAfile *file );30 bool pmReadoutReadPSFmodel (pmReadout *readout, const pmFPAview *view, pmFPAfile *file );26 bool pmFPAviewReadPSFmodel (const pmFPAview *view, pmFPAfile *file, pmConfig *config); 27 bool pmFPAReadPSFmodel (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 28 bool pmChipReadPSFmodel (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 29 bool pmCellReadPSFmodel (pmCell *cell, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 30 bool pmReadoutReadPSFmodel (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 31 31 32 32 # endif -
trunk/psModules/src/objects/pmSourceIO.c
r9560 r10421 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-1 0-14 00:53:56$5 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-12-03 18:48:10 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 60 60 61 61 // Given a FITS file pointer, write the table of object data 62 bool pmFPAviewWriteObjects (const pmFPAview *view, pmFPAfile *file )62 bool pmFPAviewWriteObjects (const pmFPAview *view, pmFPAfile *file, pmConfig *config) 63 63 { 64 64 … … 66 66 67 67 if (view->chip == -1) { 68 if (!pmFPAWriteObjects (fpa, view, file )) {68 if (!pmFPAWriteObjects (fpa, view, file, config)) { 69 69 psError(PS_ERR_IO, false, "Failed to write objects from fpa"); 70 70 return false; … … 80 80 81 81 if (view->cell == -1) { 82 if (!pmChipWriteObjects (chip, view, file )) {82 if (!pmChipWriteObjects (chip, view, file, config)) { 83 83 psError(PS_ERR_IO, false, "Failed to write objects from chip"); 84 84 return false; … … 95 95 96 96 if (view->readout == -1) { 97 if (!pmCellWriteObjects (cell, view, file )) {97 if (!pmCellWriteObjects (cell, view, file, config)) { 98 98 psError(PS_ERR_IO, false, "Failed to write objects from cell"); 99 99 return false; … … 110 110 pmReadout *readout = cell->readouts->data[view->readout]; 111 111 112 if (!pmReadoutWriteObjects (readout, view, file )) {112 if (!pmReadoutWriteObjects (readout, view, file, config)) { 113 113 psError(PS_ERR_IO, false, "Failed to write objects from readout %d", view->readout); 114 114 return false; … … 119 119 120 120 // read in all chip-level Objects files for this FPA 121 bool pmFPAWriteObjects (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file )121 bool pmFPAWriteObjects (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 122 122 { 123 123 … … 125 125 126 126 pmChip *chip = fpa->chips->data[i]; 127 if (!pmChipWriteObjects (chip, view, file )) {127 if (!pmChipWriteObjects (chip, view, file, config)) { 128 128 psError(PS_ERR_IO, false, "Failed to write %dth chip", i); 129 129 return false; … … 134 134 135 135 // read in all cell-level Objects files for this chip 136 bool pmChipWriteObjects (pmChip *chip, const pmFPAview *view, pmFPAfile *file )136 bool pmChipWriteObjects (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 137 137 { 138 138 … … 140 140 141 141 pmCell *cell = chip->cells->data[i]; 142 if (!pmCellWriteObjects (cell, view, file )) {142 if (!pmCellWriteObjects (cell, view, file, config)) { 143 143 psError(PS_ERR_IO, false, "Failed to write %dth cell", i); 144 144 return false; … … 149 149 150 150 // read in all readout-level Objects files for this cell 151 bool pmCellWriteObjects (pmCell *cell, const pmFPAview *view, pmFPAfile *file )151 bool pmCellWriteObjects (pmCell *cell, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 152 152 { 153 153 … … 155 155 156 156 pmReadout *readout = cell->readouts->data[i]; 157 if (!pmReadoutWriteObjects (readout, view, file )) {157 if (!pmReadoutWriteObjects (readout, view, file, config)) { 158 158 psError(PS_ERR_IO, false, "Failed to write %dth readout", i); 159 159 return false; … … 164 164 165 165 // read in all readout-level Objects files for this cell 166 bool pmReadoutWriteObjects (pmReadout *readout, const pmFPAview *view, pmFPAfile *file )166 bool pmReadoutWriteObjects (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 167 167 { 168 168 169 169 bool status; 170 char *realname; 170 171 char *filename; 171 172 char *dataname; … … 183 184 case PM_FPA_FILE_RAW: 184 185 filename = pmFPAfileNameFromRule (file->filerule, file, view); 185 pmSourcesWriteRAW (sources, filename); 186 realname = pmConfigConvertFilename (filename, config); 187 pmSourcesWriteRAW (sources, realname); 188 psFree (realname); 186 189 psFree (filename); 187 190 break; … … 189 192 case PM_FPA_FILE_OBJ: 190 193 filename = pmFPAfileNameFromRule (file->filerule, file, view); 191 pmSourcesWriteOBJ (sources, filename); 194 realname = pmConfigConvertFilename (filename, config); 195 pmSourcesWriteOBJ (sources, realname); 196 psFree (realname); 192 197 psFree (filename); 193 198 break; … … 195 200 case PM_FPA_FILE_SX: 196 201 filename = pmFPAfileNameFromRule (file->filerule, file, view); 197 pmSourcesWriteSX (sources, filename); 202 realname = pmConfigConvertFilename (filename, config); 203 pmSourcesWriteSX (sources, realname); 204 psFree (realname); 198 205 psFree (filename); 199 206 break; … … 203 210 hdu = pmFPAviewThisHDU (view, file->fpa); 204 211 filename = pmFPAfileNameFromRule (file->filerule, file, view); 212 realname = pmConfigConvertFilename (filename, config); 205 213 206 214 // copy the header to an output header, add the output header data … … 219 227 } 220 228 221 bool status = pmSourcesWriteCMP (sources, filename, outhead);229 bool status = pmSourcesWriteCMP (sources, realname, outhead); 222 230 psFree (outhead); 231 psFree (realname); 223 232 psFree (filename); 224 233 … … 310 319 311 320 // Given a FITS file pointer, read the table of object data 312 bool pmFPAviewReadObjects (const pmFPAview *view, pmFPAfile *file )321 bool pmFPAviewReadObjects (const pmFPAview *view, pmFPAfile *file, pmConfig *config) 313 322 { 314 323 pmFPA *fpa = file->fpa; 315 324 316 325 if (view->chip == -1) { 317 pmFPAReadObjects (fpa, view, file );326 pmFPAReadObjects (fpa, view, file, config); 318 327 return true; 319 328 } … … 325 334 326 335 if (view->cell == -1) { 327 pmChipReadObjects (chip, view, file );336 pmChipReadObjects (chip, view, file, config); 328 337 return true; 329 338 } … … 335 344 336 345 if (view->readout == -1) { 337 pmCellReadObjects (cell, view, file );346 pmCellReadObjects (cell, view, file, config); 338 347 return true; 339 348 } … … 344 353 pmReadout *readout = cell->readouts->data[view->readout]; 345 354 346 pmReadoutReadObjects (readout, view, file );355 pmReadoutReadObjects (readout, view, file, config); 347 356 return true; 348 357 } 349 358 350 359 // read in all chip-level Objects files for this FPA 351 bool pmFPAReadObjects (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file )360 bool pmFPAReadObjects (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 352 361 { 353 362 for (int i = 0; i < fpa->chips->n; i++) { 354 363 pmChip *chip = fpa->chips->data[i]; 355 pmChipReadObjects (chip, view, file );364 pmChipReadObjects (chip, view, file, config); 356 365 } 357 366 return true; … … 359 368 360 369 // read in all cell-level Objects files for this chip 361 bool pmChipReadObjects (pmChip *chip, const pmFPAview *view, pmFPAfile *file )370 bool pmChipReadObjects (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 362 371 { 363 372 for (int i = 0; i < chip->cells->n; i++) { 364 373 pmCell *cell = chip->cells->data[i]; 365 pmCellReadObjects (cell, view, file );374 pmCellReadObjects (cell, view, file, config); 366 375 } 367 376 return true; … … 369 378 370 379 // read in all readout-level Objects files for this cell 371 bool pmCellReadObjects (pmCell *cell, const pmFPAview *view, pmFPAfile *file )380 bool pmCellReadObjects (pmCell *cell, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 372 381 { 373 382 // determine the number of readouts: … … 384 393 for (int i = 0; i < cell->readouts->n; i++) { 385 394 pmReadout *readout = cell->readouts->data[i]; 386 pmReadoutReadObjects (readout, view, file );395 pmReadoutReadObjects (readout, view, file, config); 387 396 cell->data_exists = true; 388 397 } … … 391 400 392 401 // read in all readout-level Objects files for this cell 393 bool pmReadoutReadObjects (pmReadout *readout, const pmFPAview *view, pmFPAfile *file )402 bool pmReadoutReadObjects (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, pmConfig *config) 394 403 { 395 404 … … 427 436 psMemIncrRefCounter (file->filename); 428 437 } 429 file->fits = psFitsOpen (file->filename, "r"); 438 439 psString realname = pmConfigConvertFilename (file->filename, config); 440 441 file->fits = psFitsOpen (realname, "r"); 430 442 if (hdu->header != NULL) { 431 443 psFree (hdu->header); … … 435 447 file->fits = NULL; 436 448 437 sources = pmSourcesReadCMP (file->filename, hdu->header); 449 sources = pmSourcesReadCMP (realname, hdu->header); 450 psFree (realname); 438 451 break; 439 452 -
trunk/psModules/src/objects/pmSourceIO.h
r10182 r10421 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-1 1-24 20:57:26$5 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-12-03 18:48:10 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 30 30 bool pmPeaksWriteText (psArray *peaks, char *filename); 31 31 32 bool pmFPAviewReadObjects (const pmFPAview *view, pmFPAfile *file );33 bool pmFPAReadObjects (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file );34 bool pmChipReadObjects (pmChip *chip, const pmFPAview *view, pmFPAfile *file );35 bool pmCellReadObjects (pmCell *cell, const pmFPAview *view, pmFPAfile *file );36 bool pmReadoutReadObjects (pmReadout *readout, const pmFPAview *view, pmFPAfile *file );32 bool pmFPAviewReadObjects (const pmFPAview *view, pmFPAfile *file, pmConfig *config); 33 bool pmFPAReadObjects (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 34 bool pmChipReadObjects (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 35 bool pmCellReadObjects (pmCell *cell, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 36 bool pmReadoutReadObjects (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 37 37 38 bool pmFPAviewWriteObjects (const pmFPAview *view, pmFPAfile *file );39 bool pmFPAWriteObjects (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file );40 bool pmChipWriteObjects (pmChip *chip, const pmFPAview *view, pmFPAfile *file );41 bool pmCellWriteObjects (pmCell *cell, const pmFPAview *view, pmFPAfile *file );42 bool pmReadoutWriteObjects (pmReadout *readout, const pmFPAview *view, pmFPAfile *file );38 bool pmFPAviewWriteObjects (const pmFPAview *view, pmFPAfile *file, pmConfig *config); 39 bool pmFPAWriteObjects (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 40 bool pmChipWriteObjects (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 41 bool pmCellWriteObjects (pmCell *cell, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 42 bool pmReadoutWriteObjects (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, pmConfig *config); 43 43 44 44 # endif /* PM_SOURCE_IO_H */ -
trunk/psModules/src/objects/pmSourceIO_RAW.c
r10182 r10421 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-1 1-24 20:57:26$5 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-12-03 18:48:10 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 67 67 f = fopen (filename, "w"); 68 68 if (f == NULL) { 69 psLogMsg (__func__, 3, "can't open output file for PSF s: %s\n", filename);69 psLogMsg (__func__, 3, "can't open output file for PSF sources: %s\n", filename); 70 70 return false; 71 71 } … … 126 126 f = fopen (filename, "w"); 127 127 if (f == NULL) { 128 psLogMsg ("pmModelWriteEXTs", 3, "can't open output file for moments%s\n", filename);128 psLogMsg ("pmModelWriteEXTs", 3, "can't open output file for EXT sources: %s\n", filename); 129 129 return false; 130 130 } … … 185 185 f = fopen (filename, "w"); 186 186 if (f == NULL) { 187 psLogMsg ("DumpObjects", 3, "can't open output file for moments%s\n", filename);187 psLogMsg ("DumpObjects", 3, "can't open output file for NULL sources: %s\n", filename); 188 188 return false; 189 189 } … … 230 230 f = fopen (filename, "w"); 231 231 if (f == NULL) { 232 psLogMsg ("pmMomentsWriteText", 3, "can't open output file for moments %s\n", filename);232 psLogMsg ("pmMomentsWriteText", 3, "can't open output file for moments: %s\n", filename); 233 233 return false; 234 234 }
Note:
See TracChangeset
for help on using the changeset viewer.
