Changeset 28860
- Timestamp:
- Aug 6, 2010, 3:12:05 PM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100621/psModules/src/objects
- Files:
-
- 1 added
- 12 edited
-
Makefile.am (modified) (1 diff)
-
pmSource.c (modified) (1 diff)
-
pmSourceIO.c (modified) (2 diffs)
-
pmSourceIO.h (modified) (2 diffs)
-
pmSourceIO_CMF_PS1_DV1.c (modified) (1 diff)
-
pmSourceIO_CMF_PS1_DV2.c (added)
-
pmSourceIO_CMF_PS1_SV1.c (modified) (1 diff)
-
pmSourceIO_CMF_PS1_V1.c (modified) (1 diff)
-
pmSourceIO_CMF_PS1_V2.c (modified) (1 diff)
-
pmSourceIO_CMF_PS1_V3.c (modified) (1 diff)
-
pmSourceIO_PS1_CAL_0.c (modified) (1 diff)
-
pmSourceIO_PS1_DEV_0.c (modified) (1 diff)
-
pmSourceIO_PS1_DEV_1.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/psModules/src/objects/Makefile.am
r28692 r28860 46 46 pmSourceIO_CMF_PS1_SV1.c \ 47 47 pmSourceIO_CMF_PS1_DV1.c \ 48 pmSourceIO_CMF_PS1_DV2.c \ 48 49 pmSourceIO_MatchedRefs.c \ 49 50 pmSourcePlots.c \ -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSource.c
r28781 r28860 122 122 source->type = PM_SOURCE_TYPE_UNKNOWN; 123 123 source->mode = PM_SOURCE_MODE_DEFAULT; 124 source->mode2 = PM_SOURCE_MODE_DEFAULT; 124 125 source->tmpFlags = 0; 125 126 source->extpars = NULL; -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceIO.c
r28643 r28860 552 552 PM_SOURCES_WRITE("PS1_SV1", CMF_PS1_SV1); 553 553 PM_SOURCES_WRITE("PS1_DV1", CMF_PS1_DV1); 554 PM_SOURCES_WRITE("PS1_DV2", CMF_PS1_DV2); 554 555 555 556 psFree (outhead); … … 1006 1007 sources = pmSourcesRead_CMF_PS1_DV1 (file->fits, hdu->header); 1007 1008 } 1009 if (!strcmp (exttype, "PS1_DV2")) { 1010 sources = pmSourcesRead_CMF_PS1_DV2 (file->fits, hdu->header); 1011 } 1008 1012 1009 1013 if (!pmReadoutReadDetEff(file->fits, readout, deteffname)) { -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceIO.h
r28643 r28860 63 63 bool pmSourcesWrite_CMF_PS1_DV1_XFIT(psFits *fits, pmReadout *readout, psArray *sources, psMetadata *imageHeader, char *extname); 64 64 65 bool pmSourcesWrite_CMF_PS1_DV2(psFits *fits, pmReadout *readout, psArray *sources, psMetadata *imageHeader, psMetadata *tableHeader, char *extname, psMetadata *recipe); 66 bool pmSourcesWrite_CMF_PS1_DV2_XSRC(psFits *fits, pmReadout *readout, psArray *sources, psMetadata *imageHeader, char *extname, psMetadata *recipe); 67 bool pmSourcesWrite_CMF_PS1_DV2_XFIT(psFits *fits, pmReadout *readout, psArray *sources, psMetadata *imageHeader, char *extname); 68 65 69 psArray *pmSourcesReadCMP (char *filename, psMetadata *header); 66 70 … … 73 77 psArray *pmSourcesRead_CMF_PS1_SV1 (psFits *fits, psMetadata *header); 74 78 psArray *pmSourcesRead_CMF_PS1_DV1 (psFits *fits, psMetadata *header); 79 psArray *pmSourcesRead_CMF_PS1_DV2 (psFits *fits, psMetadata *header); 75 80 76 81 bool pmSourcesWritePSFs (psArray *sources, char *filename); -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceIO_CMF_PS1_DV1.c
r28643 r28860 332 332 source->peak = pmPeakAlloc(PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], peakFlux, PM_PEAK_LONE); 333 333 source->peak->flux = peakFlux; 334 source->peak->xf = PAR[PM_PAR_XPOS]; // more accurate position 335 source->peak->yf = PAR[PM_PAR_YPOS]; // more accurate position 334 336 source->peak->dx = dPAR[PM_PAR_XPOS]; 335 337 source->peak->dy = dPAR[PM_PAR_YPOS]; 336 source->peak->SN = sqrt(source->peak->flux); // XXX a proxy: various functions sort by peak S/N 338 if (isfinite (source->errMag) && (source->errMag > 0.0)) { 339 source->peak->SN = 1.0 / source->errMag; 340 } else { 341 source->peak->SN = sqrt(source->peak->flux); // an alternate proxy: various functions sort by peak S/N 342 } 337 343 338 344 source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF"); -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceIO_CMF_PS1_SV1.c
r28643 r28860 361 361 source->peak = pmPeakAlloc(PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], peakFlux, PM_PEAK_LONE); 362 362 source->peak->flux = peakFlux; 363 source->peak->xf = PAR[PM_PAR_XPOS]; // more accurate position 364 source->peak->yf = PAR[PM_PAR_YPOS]; // more accurate position 363 365 source->peak->dx = dPAR[PM_PAR_XPOS]; 364 366 source->peak->dy = dPAR[PM_PAR_YPOS]; 365 source->peak->SN = sqrt(source->peak->flux); // XXX a proxy: various functions sort by peak S/N 367 if (isfinite (source->errMag) && (source->errMag > 0.0)) { 368 source->peak->SN = 1.0 / source->errMag; 369 } else { 370 source->peak->SN = sqrt(source->peak->flux); // an alternate proxy: various functions sort by peak S/N 371 } 366 372 367 373 source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF"); -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceIO_CMF_PS1_V1.c
r28643 r28860 318 318 source->peak = pmPeakAlloc(PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], peakFlux, PM_PEAK_LONE); 319 319 source->peak->flux = peakFlux; 320 source->peak->xf = PAR[PM_PAR_XPOS]; // more accurate position 321 source->peak->yf = PAR[PM_PAR_YPOS]; // more accurate position 320 322 source->peak->dx = dPAR[PM_PAR_XPOS]; 321 323 source->peak->dy = dPAR[PM_PAR_YPOS]; 324 if (isfinite (source->errMag) && (source->errMag > 0.0)) { 325 source->peak->SN = 1.0 / source->errMag; 326 } else { 327 source->peak->SN = sqrt(source->peak->flux); // an alternate proxy: various functions sort by peak S/N 328 } 322 329 323 330 source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF"); -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceIO_CMF_PS1_V2.c
r28643 r28860 323 323 source->peak = pmPeakAlloc(PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], peakFlux, PM_PEAK_LONE); 324 324 source->peak->flux = peakFlux; 325 source->peak->xf = PAR[PM_PAR_XPOS]; // more accurate position 326 source->peak->yf = PAR[PM_PAR_YPOS]; // more accurate position 325 327 source->peak->dx = dPAR[PM_PAR_XPOS]; 326 328 source->peak->dy = dPAR[PM_PAR_YPOS]; 327 source->peak->SN = sqrt(source->peak->flux); // XXX a proxy: various functions sort by peak S/N 329 if (isfinite (source->errMag) && (source->errMag > 0.0)) { 330 source->peak->SN = 1.0 / source->errMag; 331 } else { 332 source->peak->SN = sqrt(source->peak->flux); // an alternate proxy: various functions sort by peak S/N 333 } 328 334 329 335 source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF"); -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceIO_CMF_PS1_V3.c
r28643 r28860 354 354 source->peak->dx = dPAR[PM_PAR_XPOS]; 355 355 source->peak->dy = dPAR[PM_PAR_YPOS]; 356 source->peak->SN = sqrt(source->peak->flux); // XXX a proxy: various functions sort by peak S/N 356 source->peak->xf = PAR[PM_PAR_XPOS]; // more accurate position 357 source->peak->yf = PAR[PM_PAR_YPOS]; // more accurate position 358 if (isfinite (source->errMag) && (source->errMag > 0.0)) { 359 source->peak->SN = 1.0 / source->errMag; 360 } else { 361 source->peak->SN = sqrt(source->peak->flux); // an alternate proxy: various functions sort by peak S/N 362 } 357 363 358 364 source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF"); -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceIO_PS1_CAL_0.c
r28643 r28860 297 297 source->peak->dx = dPAR[PM_PAR_XPOS]; 298 298 source->peak->dy = dPAR[PM_PAR_YPOS]; 299 source->peak->xf = PAR[PM_PAR_XPOS]; // more accurate position 300 source->peak->yf = PAR[PM_PAR_YPOS]; // more accurate position 299 301 300 302 source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF"); -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceIO_PS1_DEV_0.c
r28643 r28860 223 223 source->peak->dx = dPAR[PM_PAR_XPOS]; 224 224 source->peak->dy = dPAR[PM_PAR_YPOS]; 225 source->peak->xf = PAR[PM_PAR_XPOS]; // more accurate position 226 source->peak->yf = PAR[PM_PAR_YPOS]; // more accurate position 225 227 226 228 source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF"); -
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceIO_PS1_DEV_1.c
r28643 r28860 266 266 source->peak->dx = dPAR[PM_PAR_XPOS]; 267 267 source->peak->dy = dPAR[PM_PAR_YPOS]; 268 source->peak->xf = PAR[PM_PAR_XPOS]; // more accurate position 269 source->peak->yf = PAR[PM_PAR_YPOS]; // more accurate position 268 270 269 271 source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF");
Note:
See TracChangeset
for help on using the changeset viewer.
