File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 11import logging
2+ from pathlib import Path
3+ from typing import Literal
4+
25import numpy
6+ from numpy .typing import NDArray
37
48from .constants import GEOSPATIAL_PROJECTION , GEOSPATIAL_BOUNDS
59
@@ -71,9 +75,14 @@ def large_image_write(results, output_path):
7175 logger .info (f'Wrote GeoTIFF to { output_path } .' )
7276
7377
74- def write_multiframe_geotiff (results , output_folder , writer = 'rasterio' ):
78+ def write_multiframe_geotiff (
79+ * ,
80+ flood_results : NDArray [numpy .float32 ],
81+ output_folder : Path ,
82+ writer : Literal ['rasterio' , 'large_image' ] = 'rasterio' ,
83+ ) -> None :
7584 output_path = output_folder / 'flood_simulation.tif'
7685 if writer == 'rasterio' :
77- rasterio_write (results , output_path )
86+ rasterio_write (flood_results , output_path )
7887 elif writer == 'large_image' :
79- large_image_write (results , output_path )
88+ large_image_write (flood_results , output_path )
You can’t perform that action at this time.
0 commit comments