nctoolkit.DataSet.set_longnames#
- DataSet.set_longnames(name_dict=None, **kwargs)#
Set the long names of variables
- Parameters:
name_dict (dict) – Dictionary with key, value pairs representing the variable names and their long names
kwargs (*) – Alternative method for setting units
Examples
Set the long name of the variable tas to “Temperature” using the dictionary approach: >>> ds.set_longnames(name_dict={“tas”: “Temperature”}) Alternatively, use the kwargs approach: >>> ds.set_longnames(tas=”Temperature”)