hydromodpy.data.adapters.asc_to_geotiff#

Convert Esri ASCII grids (.asc) to Cloud Optimized GeoTIFF.

Also passes through native GeoTIFF inputs (.tif/.tiff) with a validation step that ensures they carry a CRS. COG-specific tiling is applied when rasterio is available; otherwise the input is copied verbatim and the caller decides whether to proceed.

Functions

convert_asc_to_geotiff(src, dest)

Convert an ASC or GeoTIFF raster to a COG-style GeoTIFF.

Exceptions

RasterConversionError([message, sim_id, run_id])

Raised when a raster file cannot be converted to COG.