get_nodata_value#
- get_nodata_value(dtype) int [source]#
Get default nodata value:
if dtype == np.uint8: nodata = UINT8_NODATA elif dtype == np.int8: nodata = INT8_NODATA elif dtype in [np.uint16, np.uint32, np.int32, np.int64, np.uint64, int]: nodata = UINT16_NODATA elif dtype in [np.int16, np.float32, np.float64, float]: nodata = FLOAT_NODATA
- Parameters:
dtype – Dtype for the wanted nodata. Best if numpy’s dtype.
- Returns:
Nodata value
- Return type: