Changeset 24401
- Timestamp:
- Jun 14, 2009, 2:18:26 PM (17 years ago)
- Location:
- trunk/psModules/src/objects
- Files:
-
- 1 added
- 4 edited
-
Makefile.am (modified) (1 diff)
-
pmSourceIO.c (modified) (4 diffs)
-
pmSourceIO.h (modified) (2 diffs)
-
pmSourceIO_CMF_PS1_V1.c (modified) (1 diff)
-
pmSourceIO_CMF_PS1_V2.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/Makefile.am
r23990 r24401 38 38 pmSourceIO_PS1_CAL_0.c \ 39 39 pmSourceIO_CMF_PS1_V1.c \ 40 pmSourceIO_CMF_PS1_V2.c \ 40 41 pmSourceIO_MatchedRefs.c \ 41 42 pmSourcePlots.c \ -
trunk/psModules/src/objects/pmSourceIO.c
r23990 r24401 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) { … … 944 953 sources = pmSourcesRead_CMF_PS1_V1 (file->fits, hdu->header); 945 954 } 955 if (!strcmp (exttype, "PS1_V2")) { 956 sources = pmSourcesRead_CMF_PS1_V2 (file->fits, hdu->header); 957 } 946 958 } 947 959 -
trunk/psModules/src/objects/pmSourceIO.h
r23990 r24401 39 39 bool pmSourcesWrite_CMF_PS1_V1_XFIT (psFits *fits, psArray *sources, char *extname); 40 40 41 bool pmSourcesWrite_CMF_PS1_V2 (psFits *fits, pmReadout *readout, psArray *sources, psMetadata *imageHeader, psMetadata *tableHeader, char *extname); 42 bool pmSourcesWrite_CMF_PS1_V2_XSRC (psFits *fits, psArray *sources, char *extname, psMetadata *recipe); 43 bool pmSourcesWrite_CMF_PS1_V2_XFIT (psFits *fits, psArray *sources, char *extname); 44 41 45 bool pmSource_CMF_WritePHU (const pmFPAview *view, pmFPAfile *file, pmConfig *config); 42 46 … … 48 52 psArray *pmSourcesRead_PS1_CAL_0 (psFits *fits, psMetadata *header); 49 53 psArray *pmSourcesRead_CMF_PS1_V1 (psFits *fits, psMetadata *header); 54 psArray *pmSourcesRead_CMF_PS1_V2 (psFits *fits, psMetadata *header); 50 55 51 56 bool pmSourcesWritePSFs (psArray *sources, char *filename); -
trunk/psModules/src/objects/pmSourceIO_CMF_PS1_V1.c
r24251 r24401 160 160 psMetadataAdd (row, PS_LIST_TAIL, "X_PSF_SIG", PS_DATA_F32, "Sigma in PSF x coordinate", xErr); // XXX this is only measured for non-linear fits 161 161 psMetadataAdd (row, PS_LIST_TAIL, "Y_PSF_SIG", PS_DATA_F32, "Sigma in PSF y coordinate", yErr); // XXX this is only measured for non-linear fits 162 psMetadataAdd (row, PS_LIST_TAIL, "RA_PSF", PS_DATA_F 64, "PSF RA coordinate (degrees)", ptSky.r*PS_DEG_RAD);163 psMetadataAdd (row, PS_LIST_TAIL, "DEC_PSF", PS_DATA_F 64, "PSF DEC coordinate (degrees)", ptSky.d*PS_DEG_RAD);162 psMetadataAdd (row, PS_LIST_TAIL, "RA_PSF", PS_DATA_F32, "PSF RA coordinate (degrees)", ptSky.r*PS_DEG_RAD); 163 psMetadataAdd (row, PS_LIST_TAIL, "DEC_PSF", PS_DATA_F32, "PSF DEC coordinate (degrees)", ptSky.d*PS_DEG_RAD); 164 164 psMetadataAdd (row, PS_LIST_TAIL, "POSANGLE", PS_DATA_F32, "position angle at source (degrees)", posAngle*PS_DEG_RAD); 165 165 psMetadataAdd (row, PS_LIST_TAIL, "PLTSCALE", PS_DATA_F32, "plate scale at source (arcsec/pixel)", pltScale*PS_DEG_RAD*3600.0);
Note:
See TracChangeset
for help on using the changeset viewer.
