Changeset 6859 for branches/rel10_ifa/psModules/src/astrom/pmFPAfile.c
- Timestamp:
- Apr 14, 2006, 11:43:59 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/astrom/pmFPAfile.c
r6850 r6859 11 11 #include "pmFPARead.h" 12 12 #include "pmFPAWrite.h" 13 #include "pmFPAviewObjectsIO.h" 13 #include "pmPeaks.h" 14 #include "pmMoments.h" 15 #include "pmModel.h" 16 #include "pmSource.h" 17 #include "pmSourceIO.h" 18 #include "pmGrowthCurve.h" 19 #include "pmPSF.h" 20 #include "pmPSF_IO.h" 21 #include "pmFPA_JPEG.h" 14 22 15 23 static void pmFPAfileFree (pmFPAfile *file) … … 173 181 if (!strcasecmp (type, "IMAGE")) { 174 182 file->type = PM_FPA_FILE_IMAGE; 183 } 184 if (!strcasecmp (type, "PSF")) { 185 file->type = PM_FPA_FILE_PSF; 186 } 187 if (!strcasecmp (type, "JPEG")) { 188 file->type = PM_FPA_FILE_JPEG; 175 189 } 176 190 } … … 294 308 case PM_FPA_FILE_CMP: 295 309 case PM_FPA_FILE_RAW: 310 case PM_FPA_FILE_PSF: 311 case PM_FPA_FILE_JPEG: 296 312 psTrace ("pmFPAfile", 5, "not opening %s (type: %d)\n", file->filename, file->type); 297 313 break; … … 339 355 break; 340 356 357 case PM_FPA_FILE_PSF: 358 pmFPAviewReadPSFmodel (view, file); 359 psTrace ("pmFPAfile", 5, "reading %s (type: %d)\n", file->filename, file->type); 360 break; 361 362 case PM_FPA_FILE_JPEG: 363 break; 364 341 365 default: 342 366 fprintf (stderr, "warning: type mismatch\n"); … … 378 402 break; 379 403 404 case PM_FPA_FILE_PSF: 405 pmFPAviewWritePSFmodel (view, file); 406 psTrace ("pmFPAfile", 5, "wrote PSF %s (fpa: %p)\n", file->filename, file->fpa); 407 break; 408 409 case PM_FPA_FILE_JPEG: 410 pmFPAviewWriteJPEG (view, file); 411 psTrace ("pmFPAfile", 5, "wrote PSF %s (fpa: %p)\n", file->filename, file->fpa); 412 break; 413 380 414 default: 381 415 fprintf (stderr, "warning: type mismatch\n"); … … 414 448 case PM_FPA_FILE_CMP: 415 449 case PM_FPA_FILE_CMF: 450 case PM_FPA_FILE_PSF: 451 case PM_FPA_FILE_JPEG: 416 452 break; 417 453 … … 453 489 case PM_FPA_FILE_OBJ: 454 490 case PM_FPA_FILE_CMP: 491 case PM_FPA_FILE_PSF: 492 case PM_FPA_FILE_JPEG: 455 493 break; 456 494 … … 775 813 // load the given filerule (from config->camera) and associate it with the fpa 776 814 // the output file is just a view to the file on config->files 815 // XXX the filenames placed on config->files should include the seq number 777 816 file = pmFPAfileDefine (config->files, config->camera, fpa, filename); 778 817 if (!file) {
Note:
See TracChangeset
for help on using the changeset viewer.
