hydromodpy.data.common.geo_helpers#
Spatial helpers: bbox, haversine, nearest station, mask filtering.
Functions
|
True if outer bbox fully contains inner. |
|
Short deterministic hash of a bounding box for filenames. |
|
Expand bbox by radius_km in all directions (approximate, WGS84). |
|
Keep locations inside bbox. |
|
Keep locations that fall inside a shapely geometry (spatial join). |
|
Extract (xmin, ymin, xmax, ymax) from a shapely geometry. |
|
Great-circle distance in km (WGS84). |
|
Load a spatial mask from vector (SHP/GPKG/GeoJSON) or raster (TIF). |
|
Load a spatial mask and reproject to WGS84 (EPSG:4326). |
|
Return closest location to (x, y). |