Changeset 6683 for trunk/Ohana/src/relphot
- Timestamp:
- Mar 26, 2006, 10:46:32 AM (20 years ago)
- Location:
- trunk/Ohana/src/relphot/src
- Files:
-
- 7 edited
-
ImageOps.c (modified) (1 diff)
-
MosaicOps.c (modified) (1 diff)
-
StarOps.c (modified) (9 diffs)
-
bcatalog.c (modified) (2 diffs)
-
plot_scatter.c (modified) (1 diff)
-
setExclusions.c (modified) (1 diff)
-
setMrelFinal.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/src/ImageOps.c
r5143 r6683 111 111 /* add this measurement to the grid cell for this chip */ 112 112 ave = measure[0].averef; 113 ra = catalog[cat].average[ave].R _PS- measure[0].dR_PS / 3600.0;114 dec = catalog[cat].average[ave].D _PS- measure[0].dD_PS / 3600.0;113 ra = catalog[cat].average[ave].R - measure[0].dR_PS / 3600.0; 114 dec = catalog[cat].average[ave].D - measure[0].dD_PS / 3600.0; 115 115 116 116 /* X,Y always positive-definite in range 0,0 - dX, dY */ -
trunk/Ohana/src/relphot/src/MosaicOps.c
r5143 r6683 591 591 592 592 ave = catalog[c].measure[m].averef; 593 xlist[N] = catalog[c].average[ave].R _PS- catalog[c].measure[m].dR_PS / 3600.0;594 ylist[N] = catalog[c].average[ave].D _PS- catalog[c].measure[m].dD_PS / 3600.0;593 xlist[N] = catalog[c].average[ave].R - catalog[c].measure[m].dR_PS / 3600.0; 594 ylist[N] = catalog[c].average[ave].D - catalog[c].measure[m].dD_PS / 3600.0; 595 595 N++; 596 596 } -
trunk/Ohana/src/relphot/src/StarOps.c
r5143 r6683 28 28 if (catalog[cat].average[ave].code & STAR_BAD) return (NO_MAG); 29 29 30 value = PhotPrimary ? catalog[cat].average[ave].M _PS: catalog[cat].secfilt[PhotNsec*ave+PhotSec].M_PS;30 value = PhotPrimary ? catalog[cat].average[ave].M : catalog[cat].secfilt[PhotNsec*ave+PhotSec].M_PS; 31 31 return (value); 32 32 } … … 66 66 67 67 if (PhotPrimary) { 68 catalog[i].average[j].M _PS= stats.mean;69 catalog[i].average[j].dM _PS= stats.sigma;68 catalog[i].average[j].M = stats.mean; 69 catalog[i].average[j].dM = stats.sigma; 70 70 catalog[i].average[j].Xm = (stats.Nmeas > 1) ? 100.0*log10(stats.chisq) : NO_MAG; 71 71 } else { … … 122 122 /* use sigma or error in dM for output? */ 123 123 if (PhotPrimary) { 124 catalog[i].average[j].M _PS= stats.mean;125 catalog[i].average[j].dM _PS= MAX (stats.sigma, stats.error);124 catalog[i].average[j].M = stats.mean; 125 catalog[i].average[j].dM = MAX (stats.sigma, stats.error); 126 126 catalog[i].average[j].Xm = (stats.Nmeas > 1) ? 100.0*log10(stats.chisq) : NO_MAG; 127 127 } else { … … 187 187 Chisq = pow (10.0, 0.01*Xm); 188 188 xlist[Ntot] = Chisq; 189 slist[Ntot] = PhotPrimary ? catalog[i].average[j].dM _PS: catalog[i].secfilt[PhotNsec*j+PhotSec].dM_PS;189 slist[Ntot] = PhotPrimary ? catalog[i].average[j].dM : catalog[i].secfilt[PhotNsec*j+PhotSec].dM_PS; 190 190 dlist[Ntot] = 1; 191 191 Ntot ++; … … 203 203 for (i = 0; i < Ncatalog; i++) { 204 204 for (j = 0; j < catalog[i].Naverage; j++) { 205 dM = PhotPrimary ? catalog[i].average[j].dM _PS: catalog[i].secfilt[PhotNsec*j+PhotSec].dM_PS;205 dM = PhotPrimary ? catalog[i].average[j].dM : catalog[i].secfilt[PhotNsec*j+PhotSec].dM_PS; 206 206 Xm = PhotPrimary ? catalog[i].average[j].Xm : catalog[i].secfilt[PhotNsec*j+PhotSec].Xm; 207 207 Chisq = pow (10.0, 0.01*Xm); … … 423 423 if (catalog[i].average[j].code & STAR_BAD) continue; 424 424 425 dM = PhotPrimary ? catalog[i].average[j].dM _PS: catalog[i].secfilt[PhotNsec*j+PhotSec].dM_PS;425 dM = PhotPrimary ? catalog[i].average[j].dM : catalog[i].secfilt[PhotNsec*j+PhotSec].dM_PS; 426 426 list[n] = dM; 427 427 dlist[n] = 1; … … 452 452 for (j = 0; j < catalog[i].Naverage; j++) { 453 453 if (catalog[i].average[j].code & STAR_BAD) continue; 454 dMrel = PhotPrimary ? catalog[i].average[j].dM _PS: catalog[i].secfilt[PhotNsec*j+PhotSec].dM_PS;454 dMrel = PhotPrimary ? catalog[i].average[j].dM : catalog[i].secfilt[PhotNsec*j+PhotSec].dM_PS; 455 455 bin = dMrel / 0.00025; 456 456 bin = MAX (0, MIN (NBIN-1, bin)); … … 483 483 for (j = 0; j < catalog[i].Naverage; j++) { 484 484 if (catalog[i].average[j].code & STAR_BAD) continue; 485 xlist[N] = PhotPrimary ? catalog[i].average[j].M _PS: catalog[i].secfilt[PhotNsec*j+PhotSec].M_PS;485 xlist[N] = PhotPrimary ? catalog[i].average[j].M : catalog[i].secfilt[PhotNsec*j+PhotSec].M_PS; 486 486 value = PhotPrimary ? catalog[i].average[j].Xm : catalog[i].secfilt[PhotNsec*j+PhotSec].Xm; 487 487 if (value == NO_MAG) continue; … … 517 517 for (i = 0; i < Ncatalog; i++) { 518 518 for (j = 0; j < catalog[i].Naverage; j++) { 519 xlist[N] = catalog[i].average[j].R _PS;520 ylist[N] = catalog[i].average[j].D _PS;519 xlist[N] = catalog[i].average[j].R; 520 ylist[N] = catalog[i].average[j].D; 521 521 N++; 522 522 } -
trunk/Ohana/src/relphot/src/bcatalog.c
r4865 r6683 18 18 for (i = 0; i < catalog[0].Naverage; i++) { 19 19 if (catalog[0].average[i].Nm < 2) continue; 20 if (catalog[0].average[i].R _PS< fullregion[0].RA[0]) continue;21 if (catalog[0].average[i].R _PS> fullregion[0].RA[1]) continue;22 if (catalog[0].average[i].D _PS< fullregion[0].DEC[0]) continue;23 if (catalog[0].average[i].D _PS> fullregion[0].DEC[1]) continue;20 if (catalog[0].average[i].R < fullregion[0].RA[0]) continue; 21 if (catalog[0].average[i].R > fullregion[0].RA[1]) continue; 22 if (catalog[0].average[i].D < fullregion[0].DEC[0]) continue; 23 if (catalog[0].average[i].D > fullregion[0].DEC[1]) continue; 24 24 25 25 /* start with all stars good */ … … 32 32 if (RESET) { 33 33 float *p; 34 p = (PhotPrimary) ? &subcatalog[0].average[Naverage].M _PS: &subcatalog[0].secfilt[PhotNsec*Naverage+PhotSec].M_PS;34 p = (PhotPrimary) ? &subcatalog[0].average[Naverage].M : &subcatalog[0].secfilt[PhotNsec*Naverage+PhotSec].M_PS; 35 35 *p = NO_MAG; 36 p = (PhotPrimary) ? &subcatalog[0].average[Naverage].dM _PS: &subcatalog[0].secfilt[PhotNsec*Naverage+PhotSec].dM_PS;36 p = (PhotPrimary) ? &subcatalog[0].average[Naverage].dM : &subcatalog[0].secfilt[PhotNsec*Naverage+PhotSec].dM_PS; 37 37 *p = NO_MAG; 38 38 subcatalog[0].average[Naverage].code &= ~ID_STAR_FEW; -
trunk/Ohana/src/relphot/src/plot_scatter.c
r5143 r6683 32 32 if ((Mgrid = getMgrid (m, i)) == NO_MAG) continue; 33 33 34 Mrel = PhotPrimary ? catalog[i].average[j].M _PS: catalog[i].secfilt[PhotNsec*j+PhotSec].M_PS;34 Mrel = PhotPrimary ? catalog[i].average[j].M : catalog[i].secfilt[PhotNsec*j+PhotSec].M_PS; 35 35 xlist[N] = Mrel; 36 36 ylist[N] = PhotSys (&catalog[i].measure[m], &catalog[i].average[j], &catalog[i].secfilt[j*PhotNsec]) - Mcal - Mmos - Mgrid - Mrel; -
trunk/Ohana/src/relphot/src/setExclusions.c
r4796 r6683 25 25 /* select measurements by mag limit */ 26 26 if (AreaSelect) { 27 r = catalog[i].average[j].R _PS+ catalog[i].measure[m].dR_PS / 3600.0;28 d = catalog[i].average[j].D _PS+ catalog[i].measure[m].dD_PS / 3600.0;27 r = catalog[i].average[j].R + catalog[i].measure[m].dR_PS / 3600.0; 28 d = catalog[i].average[j].D + catalog[i].measure[m].dD_PS / 3600.0; 29 29 if ((coords = getCoords (m, i)) == NULL) goto markbad; 30 30 RD_to_XY (&x, &y, r, d, coords); -
trunk/Ohana/src/relphot/src/setMrelFinal.c
r4865 r6683 11 11 12 12 for (i = 0; i < catalog[0].Naverage; i++) { 13 p = (PhotPrimary) ? &catalog[0].average[i].M _PS: &catalog[0].secfilt[PhotNsec*i+PhotSec].M_PS;13 p = (PhotPrimary) ? &catalog[0].average[i].M : &catalog[0].secfilt[PhotNsec*i+PhotSec].M_PS; 14 14 *p = NO_MAG; 15 p = (PhotPrimary) ? &catalog[0].average[i].dM _PS: &catalog[0].secfilt[PhotNsec*i+PhotSec].dM_PS;15 p = (PhotPrimary) ? &catalog[0].average[i].dM : &catalog[0].secfilt[PhotNsec*i+PhotSec].dM_PS; 16 16 *p = NO_MAG; 17 17 q = (PhotPrimary) ? &catalog[0].average[i].Xm : &catalog[0].secfilt[PhotNsec*i+PhotSec].Xm; … … 143 143 /* dophot types: 144 144 145 1 - star146 2 - galaxy147 3 - star148 4 - weak149 5 - edge150 7 - weak151 9 - weak152 10 - sat145 1 - star 146 2 - galaxy 147 3 - star 148 4 - weak 149 5 - edge 150 7 - weak 151 9 - weak 152 10 - sat 153 153 */ 154 154
Note:
See TracChangeset
for help on using the changeset viewer.
