Coverage for python/lsst/sims/utils/treeUtils.py : 71%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" This file contains coordinate transformation methods and utilities for converting an ra,dec coordinate set to cartesian coordinates and to grid id using a spatial tree. """
""" Build KD tree on simDataRA/Dec and set radius (via setRad) for matching.
Parameters ---------- ra, dec = RA and Dec values (in radians). leafsize = the number of Ra/Dec pointings in each leaf node. """ raise ValueError('Expecting RA and Dec values to be in radians.') except TypeError: tree = kdTree(data, leafsize=leafsize) else: raise ValueError('ra and dec should have length greater than 0.')
|