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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "rasters"
version = "1.5.4"
version = "1.5.5"
description = "raster processing toolkit"
readme = "README.md"
authors = [
Expand Down
6 changes: 4 additions & 2 deletions rasters/mosaic.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import annotations

import warnings
from typing import Iterator, Union, TYPE_CHECKING

import numpy as np
Expand Down Expand Up @@ -42,7 +42,9 @@ def mosaic(images: Iterator[Union[Raster, str]], geometry: RasterGeometry) -> Ra
metadata = image.metadata

# Overlay the image onto the mosaic using the 'where' function
mosaic = where(np.isnan(mosaic), image.to_geometry(geometry), mosaic)
with warnings.catch_warnings():
warnings.simplefilter("ignore")
mosaic = where(np.isnan(mosaic), image.to_geometry(geometry), mosaic)

mosaic = mosaic.astype(dtype) # Set the data type of the mosaic
mosaic = Raster(mosaic, geometry=geometry, nodata=nodata, metadata=metadata) # Create the final Raster
Expand Down
2 changes: 1 addition & 1 deletion rasters/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.4
1.5.5