- Timestamp:
- Nov 30, 2012, 10:06:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/src/dvo_convert_panstarrs_DEV_0.c
r34620 r34749 10 10 11 11 for (i = 0; i < Nvalues; i++) { 12 dvo_measure_init (&out[i]); 12 13 out[i].dR = in[i].dR; 13 14 out[i].dD = in[i].dD; … … 35 36 // magnitudes. Most uses of Mgal in the past were actually aperture (isophotal) mags 36 37 37 // changed or addedfor PS1_DEV_1 (2008.02.26)38 // changed for PS1_DEV_1 (2008.02.26) 38 39 out[i].psfQF = (in[i].psfQF == NAN_S_SHORT) ? NAN : in[i].psfQF; 39 40 out[i].dbFlags = in[i].flags; 40 41 out[i].detID = in[i].detID_lo; 41 42 out[i].imageID = in[i].imageID_lo; 42 out[i].psfChisq = 0; 43 out[i].crNsigma = 0; 44 out[i].extNsigma = 0; 45 46 // changed or added for PS1_DEV_2 43 44 // changed for PS1_DEV_2 47 45 out[i].Map = in[i].Mgal; 48 out[i].dMcal = 0; 49 50 // changed or added for PS1_V1 46 47 // changed for PS1_V1 51 48 out[i].photFlags = in[i].dophot << 16; 52 out[i].t_msec = 0;53 out[i].extID = 0;54 out[i].objID = 0;55 out[i].catID = 0;56 out[i].Mxx = 0.0;57 out[i].Mxy = 0.0;58 out[i].Myy = 0.0;59 out[i].posangle = 0;60 out[i].pltscale = 0;61 out[i].psfNdof = 0;62 out[i].psfNpix = 0;63 64 // added for PS1_V465 out[i].Mkron = NAN;66 out[i].dMkron = NAN;67 out[i].FluxPSF = NAN;68 out[i].dFluxPSF = NAN;69 out[i].FluxKron = NAN;70 out[i].dFluxKron = NAN;71 out[i].psfQFperf = NAN;72 49 } 73 50 return (out); … … 132 109 133 110 for (i = 0; i < Nvalues; i++) { 111 dvo_average_init (&out[i]); 112 134 113 out[i].R = in[i].R; 135 114 out[i].D = in[i].D; … … 145 124 out[i].catID = in[i].catID; 146 125 147 // changed or addedfor PS1_DEV_2126 // changed for PS1_DEV_2 148 127 out[i].Nmeasure = in[i].Nm; 149 128 out[i].Nmissing = in[i].Nn; 150 129 out[i].measureOffset = in[i].offset; 151 130 out[i].missingOffset = in[i].missing; 152 out[i].Nextend = 0; 153 out[i].extendOffset = 0; 154 155 // changed or added for PS1_V1 131 132 // changed for PS1_V1 156 133 out[i].flags = in[i].code; 157 out[i].ChiSqAve = NAN;158 out[i].ChiSqPM = NAN;159 out[i].ChiSqPar = NAN;160 out[i].Tmean = 0;161 out[i].Trange = 0;162 out[i].Npos = 0.0;163 out[i].extID = 0;164 165 // added in PS1_V3166 out[i].photFlagsUpper = 0;167 out[i].photFlagsLower = 0;168 169 // added for PS1_V4 (Xp dropped in V4 onward, was not really used anyway)170 out[i].psfQF = NAN;171 out[i].psfQFperf = NAN;172 out[i].stargal = NAN;173 134 } 174 135 return (out); … … 219 180 220 181 for (i = 0; i < Nvalues; i++) { 182 dvo_secfilt_init (&out[i]); 183 221 184 out[i].M = in[i].M; 222 185 out[i].dM = in[i].dM; … … 224 187 out[i].Ncode = in[i].Ncode; 225 188 out[i].Nused = in[i].Nused; 226 227 // changed or added for PS1_V1228 out[i].M_20 = 0;229 out[i].M_80 = 0;230 231 // changed or added for PS1_V2232 out[i].flags = 0;233 234 // added in PS1_V3235 out[i].Map = 0;236 out[i].Mstdev = 0;237 out[i].ubercalDist = 0;238 239 // added for PS1_V4240 out[i].Mkron = NAN;241 out[i].dMkron = NAN;242 out[i].FluxPSF = NAN;243 out[i].dFluxPSF = NAN;244 out[i].FluxKron = NAN;245 out[i].dFluxKron = NAN;246 out[i].stackDetectID = 0;247 189 } 248 190 return (out);
Note:
See TracChangeset
for help on using the changeset viewer.
