From 0be9f8b1424b979140a4146a8174df37ffce49a9 Mon Sep 17 00:00:00 2001 From: Paul Haesler Date: Tue, 9 Jul 2024 12:18:01 +1000 Subject: [PATCH] Typo. --- eodatasets3/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eodatasets3/images.py b/eodatasets3/images.py index b2d8b7ab..d86b0030 100644 --- a/eodatasets3/images.py +++ b/eodatasets3/images.py @@ -712,7 +712,7 @@ def write_from_ndarray( } # Ensure 'nan' is always tagged as nodata for floating point types if nodata is None: - nodata = float("nan") if numpy.issubdtype(img.dtype, numpy.floating) else 0 + nodata = float("nan") if numpy.issubdtype(array.dtype, numpy.floating) else 0 if nodata is not None: rio_args["nodata"] = nodata