Changeset 20363
- Timestamp:
- Oct 24, 2008, 2:52:39 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relphot/src/GridOps.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/src/GridOps.c
r20323 r20363 1 1 # include "relphot.h" 2 2 3 typedefenum {4 GRID_FITTED,5 GRID_FROZEN,6 GRID_REFERENCE,3 enum { 4 GRID_FITTED, 5 GRID_FROZEN, 6 GRID_REFERENCE, 7 7 }; 8 8 … … 235 235 mlist[i][Nlist[i]] = meas; 236 236 237 // for the moment, add up the total grid count 238 gridN[i]++; 239 237 240 Nlist[i] ++; 238 241 if (Nlist[i] == NLIST[i]) { … … 247 250 } 248 251 252 int showGridCount() { 253 254 int ix, iy, i; 255 256 for (iy = 0; iy < gridY; iy++) { 257 for (ix = 0; ix < gridX; ix++) { 258 i = ix + iy*gridX; 259 fprintf (stderr, "%3d ", gridN[i]); 260 } 261 fprintf (stderr, "\n"); 262 } 263 } 264 249 265 float getMgrid (int meas, int cat) { 250 266 … … 258 274 // during the grid annealing process, we skip over grid cells until they have enough 259 275 // valid stars to be fitted 260 if (gridV[i] == GRID_FROZEN) return (NAN); 276 if (gridV[i] == GRID_FROZEN) { 277 return (NAN); 278 } 261 279 262 280 value = gridM[i];
Note:
See TracChangeset
for help on using the changeset viewer.
