Changeset 35309
- Timestamp:
- Mar 13, 2013, 5:16:35 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130307/Ohana/src
- Files:
-
- 3 edited
-
libdvo/src/dbExtractAverages.c (modified) (2 diffs)
-
libkapa/src/KapaOpen.c (modified) (5 diffs)
-
relastro/src/UpdateObjects.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307/Ohana/src/libdvo/src/dbExtractAverages.c
r34844 r35309 141 141 value.Flt = average[0].ChiSqPar; 142 142 break; 143 144 // XXX case AVE_PM_GROUPS: 145 // XXX value.Int = GetProperMotionGroups (average, measure); 146 // XXX break; 143 147 144 148 case AVE_TMEAN: … … 278 282 } 279 283 284 // XXX int GetProperMotionGroups (Average *average, Measure *measure) { 285 // XXX // need the times, excluding ignored detections 286 // XXX // sort the images 287 // XXX for (i = 0; i < Ntimes - 1; i++) { 288 // XXX if (time[i+1] - time[i] < TRANGE) Ngroup ++; 289 // XXX } 290 // XXX return Ngroup; 291 // XXX } 292 // XXX -
branches/eam_branches/ipp-20130307/Ohana/src/libkapa/src/KapaOpen.c
r35237 r35309 4 4 # define MY_PORT_MAX 2520 5 5 # define MY_WAIT 100000 6 # define DEBUG 06 # define DEBUG 1 7 7 8 8 static int Nvalid = 0; … … 121 121 122 122 accepted: 123 { 124 // we need to do some minimal handshake here. I will send out 125 // a 4 char message : KAPA 126 int Nout = write (BindSocket, "KAPA", 4); 127 if (Nout != 4) { 128 fprintf (stderr, "connection failed\n"); 129 close (BindSocket); 130 return (-1); 131 } 132 } 133 123 134 if (DEBUG) fprintf (stderr, "connection accepted\n"); 124 135 return (BindSocket); … … 205 216 } 206 217 218 // apparently, I can connect on someone else's port (eg GoogleTalkPlugin) 219 // do a simple handshake before we set !NONBLOCK: 220 char line[5]; 221 int Nout = read (InitSocket, line, 4); 222 if (Nout != 4) { 223 fprintf (stderr, "connection failed\n"); 224 close (InitSocket); 225 return (-1); 226 } 227 if (strncmp (line, "KAPA", 4)) { 228 fprintf (stderr, "connection to the wrong survey\n"); 229 close (InitSocket); 230 return (-1); 231 } 232 207 233 if (DEBUG) fprintf (stderr, "connected on port: %d\n", Address.sin_port); 208 234 if (DEBUG) fprintf (stderr, "connected\n"); … … 233 259 } 234 260 261 # if (0) 235 262 int pid = KapaLaunchCommand (line); 236 263 if (!pid) { … … 238 265 return (-1); 239 266 } 267 # else 268 int pid = 1; 269 # endif 240 270 241 271 # define NTRY 500 -
branches/eam_branches/ipp-20130307/Ohana/src/relastro/src/UpdateObjects.c
r35288 r35309 224 224 225 225 if ((mode == FIT_PM_ONLY) || (mode == FIT_PM_AND_PAR)) { 226 // project all of the R,D coordinates to a plane centered on this coordinate set226 // project all of the R,D coordinates to a plane centered on this coordinate. set 227 227 // the times to be relative to Tmean (this is required for parallax as well) 228 228 for (k = 0; k < N; k++) { … … 270 270 catalog[i].average[j].flags |= ID_STAR_FIT_PAR; 271 271 Npar ++; 272 } else { 273 // need to set mode = FIT_PM_ONLY if we do not fit for parallax 274 mode = FIT_PM_ONLY; 272 275 } 273 276 } … … 321 324 fit.uD); 322 325 323 // make sure that the fit succeeded326 // make sure that the fit succeeded 324 327 status = TRUE; 325 328 status &= finite(fit.Ro);
Note:
See TracChangeset
for help on using the changeset viewer.
