Because of the logic in convert_data_type, it is impossible to convert to a celltype where the ud is 0. This is because the resulting check will always fail when no_data_value is 0:
if no_data_value:
This can be easily fixed by changing it to if no_data_value is not None:
Because of the logic in
convert_data_type
, it is impossible to convert to a celltype where theud
is 0. This is because the resulting check will always fail whenno_data_value
is 0:This can be easily fixed by changing it to
if no_data_value is not None: