Changeset 25027 for branches/pap/psModules/src/objects/pmSourceIO.c
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/psModules
- Property svn:mergeinfo deleted
-
branches/pap/psModules/src/objects/pmSourceIO.c
r22699 r25027 496 496 status = pmSourcesWrite_CMF_PS1_V1 (file->fits, readout, sources, file->header, outhead, dataname); 497 497 } 498 if (!strcmp (exttype, "PS1_V2")) { 499 status = pmSourcesWrite_CMF_PS1_V2 (file->fits, readout, sources, file->header, outhead, dataname); 500 } 498 501 if (xsrcname) { 499 502 if (!strcmp (exttype, "PS1_DEV_1")) { … … 506 509 status = pmSourcesWrite_CMF_PS1_V1_XSRC (file->fits, sources, xsrcname, recipe); 507 510 } 511 if (!strcmp (exttype, "PS1_V2")) { 512 status = pmSourcesWrite_CMF_PS1_V2_XSRC (file->fits, sources, xsrcname, recipe); 513 } 508 514 } 509 515 if (xfitname) { … … 517 523 status = pmSourcesWrite_CMF_PS1_V1_XFIT (file->fits, sources, xfitname); 518 524 } 525 if (!strcmp (exttype, "PS1_V2")) { 526 status = pmSourcesWrite_CMF_PS1_V2_XFIT (file->fits, sources, xfitname); 527 } 519 528 } 520 529 if (!status) { … … 562 571 563 572 // not needed if only one chip 564 if (file->fpa->chips->n == 1) return true; 565 573 if (file->fpa->chips->n == 1) { 574 pmSourceIO_WriteMatchedRefs (file->fits, file->fpa, config); 575 return true; 576 } 566 577 567 578 // find the FPA phu … … 667 678 psFree (outhead); 668 679 680 pmSourceIO_WriteMatchedRefs (file->fits, file->fpa, config); 669 681 return true; 670 682 } … … 679 691 680 692 pmFPA *fpa = file->fpa; 693 694 pmSourceIO_ReadMatchedRefs (file->fits, fpa, config); 681 695 682 696 if (view->chip == -1) { … … 941 955 sources = pmSourcesRead_CMF_PS1_V1 (file->fits, hdu->header); 942 956 } 957 if (!strcmp (exttype, "PS1_V2")) { 958 sources = pmSourcesRead_CMF_PS1_V2 (file->fits, hdu->header); 959 } 943 960 } 944 961 … … 1053 1070 } 1054 1071 1072
Note:
See TracChangeset
for help on using the changeset viewer.
