Changeset 17197
- Timestamp:
- Mar 28, 2008, 3:29:15 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/load2mass_as_rawdata.c
r16904 r17197 95 95 if (VERBOSE) fprintf (stderr, "scan %d stars (%10.6f - %10.6f, %10.6f - %10.6f) .. ", Ntstars, Rmin, Rmax, Dmin, Dmax); 96 96 97 // sort the tstars by RA 98 get2mass_sortStars (tstars, Ntstars); 97 99 98 100 // scan through the stars, loading the containing catalogs … … 101 103 if (tstars[i].flag) continue; 102 104 105 // scan forward until we read the UserPatch 106 if (tstars[i].R < UserPatch.Rmin) continue; 107 if (tstars[i].R > UserPatch.Rmax) break; 108 if (tstars[i].D < UserPatch.Dmin) continue; 109 if (tstars[i].D > UserPatch.Dmax) continue; 110 103 111 // collect stars in a new output catalog 104 112 Nstars = 0; 105 113 NSTARS = 3000; 106 114 ALLOCATE (stars, Stars, NSTARS); 107 115 108 116 // identify the relevant catalog 109 117 skylist = SkyRegionByPoint (skytable, -1, tstars[i].R, tstars[i].D); … … 116 124 // check if in skyregion 117 125 if (tstars[j].R < region[0].Rmin) continue; 118 if (tstars[j].R > region[0].Rmax) continue;126 if (tstars[j].R > region[0].Rmax) break; 119 127 if (tstars[j].D < region[0].Dmin) continue; 120 128 if (tstars[j].D > region[0].Dmax) continue; … … 122 130 // check if in UserPatch 123 131 if (tstars[j].R < UserPatch.Rmin) continue; 124 if (tstars[j].R > UserPatch.Rmax) continue;132 if (tstars[j].R > UserPatch.Rmax) break; 125 133 if (tstars[j].D < UserPatch.Dmin) continue; 126 134 if (tstars[j].D > UserPatch.Dmax) continue;
Note:
See TracChangeset
for help on using the changeset viewer.
