Reading 2mass-hp37.fits... Got 13211465 stars Sweep 1: 773033 stars Sweep 2: 766466 stars Sweep 3: 750052 stars Sweep 4: 720647 stars Sweep 5: 680347 stars Sweep 6: 633606 stars Sweep 7: 585823 stars Sweep 8: 540729 stars Sweep 9: 500473 stars Sweep 10: 465344 stars Sweep 11: 434976 stars Sweep 12: 408274 stars Sweep 13: 385052 stars Sweep 14: 364371 stars Sweep 15: 345442 stars Sweep 16: 327656 stars Sweep 17: 310440 stars Sweep 18: 293631 stars Sweep 19: 276866 stars Sweep 20: 259755 stars Total: 9822983 stars Writing output... Reading star kdtree /tmp/tmp.skdt.o7WBBM ... Will write to quad file /tmp/tmp.quad.DmewWK and code file /tmp/tmp.code.6bdrhJ Nside=1760. Nside^2=3097600. Number of healpixes=37171200. Healpix side length ~ 1.99883 arcmin. Star tree contains 9822983 objects. Healpix radius 84.8031 arcsec, quad scale 84 arcsec, total 170.491 arcsec Scanning 9822983 input stars... Will check 773033 healpixes. Pass 1 of 16. Trying 773033 healpixes. ............................................................................... Made 772818 quads (out of 773033 healpixes) this pass. Made 772818 quads so far. Merging quads... Pass 2 of 16. Trying 773033 healpixes. ............................................................................... Made 772615 quads (out of 773033 healpixes) this pass. Made 1545433 quads so far. Merging quads... Pass 3 of 16. Trying 773033 healpixes. ............................................................................... Made 772378 quads (out of 773033 healpixes) this pass. Made 2317811 quads so far. Merging quads... Pass 4 of 16. Trying 773033 healpixes. ............................................................................... Made 771258 quads (out of 773033 healpixes) this pass. Made 3089069 quads so far. Merging quads... Pass 5 of 16. Trying 773033 healpixes. ............................................................................... Made 766718 quads (out of 773033 healpixes) this pass. Made 3855787 quads so far. Merging quads... Pass 6 of 16. Trying 773033 healpixes. ............................................................................... Made 757222 quads (out of 773033 healpixes) this pass. Made 4613009 quads so far. Merging quads... Pass 7 of 16. Trying 773033 healpixes. ............................................................................... Made 742915 quads (out of 773033 healpixes) this pass. Made 5355924 quads so far. Merging quads... Pass 8 of 16. Trying 773033 healpixes. ............................................................................... Made 723464 quads (out of 773033 healpixes) this pass. Made 6079388 quads so far. Merging quads... Pass 9 of 16. Trying 773033 healpixes. ............................................................................... Made 698296 quads (out of 773033 healpixes) this pass. Made 6777684 quads so far. Merging quads... Pass 10 of 16. Trying 773033 healpixes. ............................................................................... Made 668658 quads (out of 773033 healpixes) this pass. Made 7446342 quads so far. Merging quads... Pass 11 of 16. Trying 773033 healpixes. ............................................................................... Made 638127 quads (out of 773033 healpixes) this pass. Made 8084469 quads so far. Merging quads... Pass 12 of 16. Trying 773033 healpixes. ............................................................................... Made 608874 quads (out of 773033 healpixes) this pass. Made 8693343 quads so far. Merging quads... Pass 13 of 16. Trying 773033 healpixes. ............................................................................... Made 581097 quads (out of 773033 healpixes) this pass. Made 9274440 quads so far. Merging quads... Pass 14 of 16. Trying 773033 healpixes. ............................................................................... Made 555281 quads (out of 773033 healpixes) this pass. Made 9829721 quads so far. Merging quads... Pass 15 of 16. Trying 773033 healpixes. ............................................................................... Made 531438 quads (out of 773033 healpixes) this pass. Made 10361159 quads so far. Merging quads... Pass 16 of 16. Trying 773033 healpixes. ............................................................................... Made 509315 quads (out of 773033 healpixes) this pass. Made 10870474 quads so far. Merging quads... Loosening reuse maximum to 9... Trying 1498054 healpixes. ............................................................................... Made 403861 quads (out of 1498054 healpixes) this pass. Loosening reuse maximum to 10... Trying 1094193 healpixes. ............................................................................... Made 301857 quads (out of 1094193 healpixes) this pass. Loosening reuse maximum to 11... Trying 792336 healpixes. ............................................................................... Made 234850 quads (out of 792336 healpixes) this pass. Loosening reuse maximum to 12... Trying 557486 healpixes. ............................................................................... Made 180301 quads (out of 557486 healpixes) this pass. Loosening reuse maximum to 13... Trying 377185 healpixes. ............................................................................... Made 132181 quads (out of 377185 healpixes) this pass. Loosening reuse maximum to 14... Trying 245004 healpixes. ............................................................................... Made 90390 quads (out of 245004 healpixes) this pass. Loosening reuse maximum to 15... Trying 154614 healpixes. ............................................................................... Made 57123 quads (out of 154614 healpixes) this pass. Loosening reuse maximum to 16... Trying 97491 healpixes. ............................................................................... Made 33546 quads (out of 97491 healpixes) this pass. Loosening reuse maximum to 17... Trying 63945 healpixes. ............................................................................... Made 18650 quads (out of 63945 healpixes) this pass. Loosening reuse maximum to 18... Trying 45295 healpixes. ............................................................................... Made 9741 quads (out of 45295 healpixes) this pass. Loosening reuse maximum to 19... Trying 35554 healpixes. ............................................................................... Made 4763 quads (out of 35554 healpixes) this pass. Loosening reuse maximum to 20... Trying 30791 healpixes. ............................................................................... Made 2294 quads (out of 30791 healpixes) this pass. Writing quads... Used 1725.08 s user, 2.84418 s system (1727.92 s total), 2406.59 s wall time since last check Done. codetree: building KD tree for /tmp/tmp.code.6bdrhJ will write KD tree file /tmp/tmp.ckdt.XFfR4m Reading codes... Read 12340031 codes. Building tree... Done Writing code KD tree to /tmp/tmp.ckdt.XFfR4m... Unpermute-stars... Unpermuting stars from /tmp/tmp.skdt.o7WBBM and /tmp/tmp.quad.DmewWK to /tmp/tmp.skdt2.VvrBat and /tmp/tmp.quad2.7Ykmgz Reading star tree from /tmp/tmp.skdt.o7WBBM ... Reading quadfile from /tmp/tmp.quad.DmewWK ... Writing quadfile to /tmp/tmp.quad2.7Ykmgz ... Writing quads... ............................................................................... Writing star kdtree to /tmp/tmp.skdt2.VvrBat ... Permuting tag-along table... Unpermute-quads... Unpermuting quads from /tmp/tmp.quad2.7Ykmgz and /tmp/tmp.ckdt.XFfR4m to /tmp/tmp.quad3.rrn3qU and /tmp/tmp.ckdt2.eVsHQe Reading code tree from /tmp/tmp.ckdt.XFfR4m ... Reading quads from /tmp/tmp.quad2.7Ykmgz ... Writing quads to /tmp/tmp.quad3.rrn3qU ... Writing code kdtree to /tmp/tmp.ckdt2.eVsHQe ... Merging /tmp/tmp.quad3.rrn3qU and /tmp/tmp.ckdt2.eVsHQe and /tmp/tmp.skdt2.VvrBat to index-130331000-37.fits Reading code tree from /tmp/tmp.ckdt2.eVsHQe ... Ok. Reading star tree from /tmp/tmp.skdt2.VvrBat ... Ok. Reading quads from /tmp/tmp.quad3.rrn3qU ... Ok.