We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1816bc commit 100d682Copy full SHA for 100d682
stackstac/ops.py
@@ -202,7 +202,9 @@ def mosaic(
202
if np.isnan(nodata) and arr.dtype.kind in "biu":
203
# Try to catch usage errors forgetting to set `nodata=`
204
raise ValueError(
205
- f"Cannot use {nodata=} when mosaicing a {arr.dtype} array, since {nodata} cannot exist in the array."
+ "You've probably forgotten to pass a custom `nodata=` argument. "
206
+ f"Cannot use {nodata=} (the default) when mosaicing a {arr.dtype} array, "
207
+ f"since {nodata} cannot exist in that dtype. "
208
)
209
210
func = (
0 commit comments