toasty.toast.toast_pixel_for_point(depth, lat, lon)[source]

Identify the pixel within a TOAST tile at a given depth that contains the given point.

depthnon-negative integer

The TOAST tile pyramid depth to drill down to. For any given depth, there exists a tile containing the input point. As the depth gets larger, the precision of the location gets more precise.


The latitude (declination) of the point, in radians.


The longitude (RA) of the point, in radians. This value must have already been normalied to lie within the range [0, 2pi] (inclusive on both ends.)

A tuple (tile, x, y). The tile is the Tile at the given depth
that best contains the specified point. The x and y values are
floating-point numbers giving the pixel location within the 256×256 tile.
The returned values are derived from a quadratic fit to the TOAST
coordinates of the pixels nearest the specified coordinates lat and lon.