rnet.coordinates.idw_query#
- rnet.coordinates.idw_query(points, crs, *paths, r=0.001, p=2, return_xy=False)#
Query elevations of two-dimensional points via IDW interpolation.
- Parameters
- points
ndarray, shape (N, 2) Points whose elevations are queried.
- crsint
EPSG code of CRS in which point coordinates are represented.
- *pathsstr
Path(s) to TIF file(s) storing elevation data.
- rfloat, optional
Search radius for nearby points in degrees. The default is 0.001.
- pint, optional
Power setting for IDW interpolation. The default is 2.
- return_xybool, optional
If True, \((x, y, z)\) coordinates are returned. Otherwise, only \(z\)-coordinates are returned. The default is False.
- points
- Returns
- elevations
ndarray, shape (N,) Array of elevations where
elevations[i]is the elevation atpoints[i].
- elevations