diff --git a/app/raster_utils.py b/app/raster_utils.py index e6083ef7..8e02084e 100644 --- a/app/raster_utils.py +++ b/app/raster_utils.py @@ -42,5 +42,8 @@ def export_raster_index(input, expression, output): index_band[index_band>1e+30] = -9999 index_band[index_band<-1e+30] = -9999 + # Make sure this is float32 + arr = arr.astype(np.float32) + with rasterio.open(output, 'w', **profile) as dst: dst.write(arr)