Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
All notable changes to this project will be documented in this file.
We follow the [Semantic Versioning 2.0.0](http://semver.org/) format.


## v4.5.7.1 - 2024-09-13 - [PR#1246](https://github.com/NOAA-OWP/inundation-mapping/pull/1246)

Indents the mosaicking block so that `inundate_mosaic_wrapper.py` mosaics both inundation extents and depths.

### Changes

- `tools/inundate_mosaic_wrapper.py`: Moves mosaicking inside `for` loop.

<br/><br/>


## v4.5.7.0 - 2024-09-13 - [PR#1267](https://github.com/NOAA-OWP/inundation-mapping/pull/1267)

`pyogrio` seems to have a difficulty writing files when all values in a column are null (None or nan). The workaround here is to use `fiona` for writing files where `pyogrio` is explicitly set in geopandas (gpd) by `gpd.options.io_engine = "pyogrio"`.
Expand Down
28 changes: 14 additions & 14 deletions tools/inundate_mosaic_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,20 @@ def produce_mosaicked_inundation(
if depths_raster is not None:
mosaic_output = depths_raster

if mosaic_output is not None:
# Call Mosaic_inundation
mosaic_file_path = Mosaic_inundation(
map_file.copy(),
mosaic_attribute=mosaic_attribute,
mosaic_output=mosaic_output,
mask=mask,
unit_attribute_name=unit_attribute_name,
nodata=elev_raster_ndv,
remove_inputs=remove_intermediate,
verbose=verbose,
is_mosaic_for_branches=is_mosaic_for_branches,
inundation_polygon=inundation_polygon,
)
if mosaic_output is not None:
# Call Mosaic_inundation
mosaic_file_path = Mosaic_inundation(
map_file.copy(),
mosaic_attribute=mosaic_attribute,
mosaic_output=mosaic_output,
mask=mask,
unit_attribute_name=unit_attribute_name,
nodata=elev_raster_ndv,
remove_inputs=remove_intermediate,
verbose=verbose,
is_mosaic_for_branches=is_mosaic_for_branches,
inundation_polygon=inundation_polygon,
)

fh.vprint("Mosaicking complete.", verbose)

Expand Down
Loading