Skip to content

Commit

Permalink
cache pixels_to_coords
Browse files Browse the repository at this point in the history
  • Loading branch information
jensdebruijn committed Dec 6, 2024
1 parent 66c3135 commit fddb84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion honeybees/library/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def pixel_to_coord(px: int, py: int, gt: tuple) -> Tuple[float, float]:
raise ValueError("Cannot convert rotated maps")


@njit(parallel=True)
@njit(cache=True, parallel=True)
def pixels_to_coords(pixels: np.ndarray, gt: tuple) -> np.ndarray:
"""Converts pixels (x, y) to coordinates (lon, lat) for given geotransformation.
Uses the upper left corner of the pixels. To use the centers, add 0.5 to input pixels.
Expand Down

0 comments on commit fddb84e

Please # to comment.