pyinterp.geohash.transform#
- pyinterp.geohash.transform(hash: object, precision: int = 1) object#
Transform geohash codes between different precision levels.
Changes the precision of the given geohash codes. If the target precision is higher than the current precision, the result contains a zoom in; otherwise it contains a zoom out.
- Parameters:
hash – Array of GeoHash codes (numpy string array).
precision – Target accuracy level. Defaults to 1.
- Returns:
Array of GeoHash codes at the new precision level (numpy string array).
- Raises:
ValueError – If the given precision is not within [1, 12].