nctoolkit.DataSet.transmute

DataSet.transmute(self, operations=None)

Create new variables using mathematical expressions, and drop original variables

Parameters

operations (dict) – operations to apply. The keys are the new variables to generate. The values are the mathematical operations to carry out. Both must be strings.