get_gdt_from_minmax_values¶
-
museotoolbox.processing.
get_gdt_from_minmax_values
(max_value, min_value=0)[source]¶ Return the Gdal DataType according the minimum or the maximum value.
- Parameters
max_value (int or float.) – The maximum value needed.
min_value (int or float, optional (default=0)) – The minimum value needed.
- Returns
gdalDT – gdal datatype.
- Return type
int.
Examples
>>> get_gdt_from_minmax_values(260) 2 >>> get_gdt_from_minmax_values(16) 1 >>> get_gdt_from_minmax_values(16,-260) 3