Changeset 38699
- Timestamp:
- Sep 3, 2015, 6:18:08 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/relastro/src/FitChip.c
r37807 r38699 81 81 } 82 82 83 if (VERBOSE2) fprintf (stderr, "using %d for %s\n", order_use, image[0].name); 83 if (VERBOSE2) { 84 fprintf (stderr, "using %d for %s\n", order_use, image[0].name); 85 } 84 86 85 87 // when fitting the map, first fit a linear model (below? change Npolyterms to -1) … … 92 94 for (i = 0; i < Nmatch; i++) { 93 95 if (raw[i].mask) continue; 94 fit_add (fit, raw[i].X, raw[i].Y, ref[i].L, ref[i].M, r aw[i].dPos);96 fit_add (fit, raw[i].X, raw[i].Y, ref[i].L, ref[i].M, ref[i].dPos); 95 97 } 96 98 … … 310 312 int i, N; 311 313 312 float *x, *y, *dX, *dY ;314 float *x, *y, *dX, *dY, *dP; 313 315 ALLOCATE (x, float, Npts); 314 316 ALLOCATE (y, float, Npts); 315 317 ALLOCATE (dX, float, Npts); 316 318 ALLOCATE (dY, float, Npts); 319 ALLOCATE (dP, float, Npts); 317 320 318 321 N = 0; … … 323 326 dX[N] = ref[i].X - raw[i].X; 324 327 dY[N] = ref[i].Y - raw[i].Y; 328 dP[N] = ref[i].dPos; 325 329 N++; 326 330 } … … 329 333 // (L,M) = f(X',Y') : (X',Y') = (X,Y) + (dX,dY) 330 334 331 AstromOffsetMapFit (map, x, y, dX, N, TRUE);332 AstromOffsetMapFit (map, x, y, dY, N, FALSE);335 AstromOffsetMapFit (map, x, y, dX, dP, N, TRUE); 336 AstromOffsetMapFit (map, x, y, dY, dP, N, FALSE); 333 337 334 338 AstromOffsetMapRepair (map, TRUE); … … 339 343 free (dX); 340 344 free (dY); 345 free (dP); 341 346 342 347 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.
