Numpy 2.0 support: `can_cast` not supported for python dtypes
This line is the only one that makes arosics
break on numpy 2.0:
https://git.gfz-potsdam.de/danschef/geoarray/-/blob/main/geoarray/baseclasses.py?ref_type=heads#L1218
TypeError: can_cast() does not support Python ints, floats, and complex because the result used to depend on the value.
It might be nice to replace the line before it with something like:
out_nodata = np.array(in_nodata).dtype.type(in_nodata) if in_nodata is not None else np.int(-9999)
per: https://stackoverflow.com/questions/61591619/converting-native-python-types-to-numpy-dtypes
Edited by Roelof van Dijk