nctoolkit.DataSet.set_precision

DataSet.set_precision(x)

Set the precision in a dataset

Parameters:

x (str) – The precision. One of ‘I8’, ‘I16’, ‘I32’, ‘F32’, ‘F64’.

Examples

Set the precision to 32 bit: >>> ds.set_precision(“F32”)