Changeset 40581 for trunk/Ohana/src/opihi/dvo/skyregion.c
- Timestamp:
- Dec 10, 2018, 5:05:32 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/skyregion.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/skyregion.c
r40576 r40581 186 186 list->regions[Nout] = input->regions[0]; 187 187 list->filename[Nout] = input->filename[0]; 188 Nout ++; 188 189 189 190 for (int i = 0; i < input->Nregions; i++) { 190 if (list->regions[Nout][0].index == input->regions[i][0].index) continue; 191 Nout ++; 191 if (list->regions[Nout-1][0].index == input->regions[i][0].index) continue; 192 192 list->regions[Nout] = input->regions[i]; 193 193 list->filename[Nout] = input->filename[i]; 194 Nout ++; 194 195 } 195 196 list->Nregions = Nout; … … 249 250 // scan over the remaining points to find any that lie within these regions 250 251 // if we sorted the ra,dec inputs we could break out of this more quickly 251 for (int j = i + 1; j < Npts; j++) {252 for (int j = i + 1; FALSE && (j < Npts); j++) { 252 253 ra = RA->elements.Flt[j]; 253 254 dec = DEC->elements.Flt[j]; 254 for (int n = 0; !found[j] && (n < new->Nregions); n++) {255 for (int n = 0; n < new->Nregions; n++) { 255 256 if (ra < new[0].regions[n][0].Rmin) continue; 256 257 if (ra > new[0].regions[n][0].Rmax) continue;
Note:
See TracChangeset
for help on using the changeset viewer.
