hydromodpy.core.io.crs#
CRS helpers built on pyproj and rasterio.
Centralises coordinate transforms, UTM detection, and polygon-based
filtering so downstream modules never have to reach into pyproj
directly. The PROJ database bootstrap that used to live inline in
hydromodpy/__init__.py is planned to migrate here in a later phase.
Functions
|
Apply unit conversions for precipitation, temperature, radiation. |
|
Keep only coordinates that fall within the shapefile polygon. |
|
Return (lon, lat) centroid of the first geometry in gdf. |
|
Reproject WGS-84 coordinates to the local UTM zone. |
|
Reproject a shapefile to utm_crs (e.g. |
|
Select the nearest grid point in ds. |
|
Mask ds to keep only points inside the gdf polygon. |
|
Convert all DEM pixel coordinates from from_crs to to_crs. |