nctoolkit.DataSet.mutate

DataSet.mutate(self, operations=None)

Create new variables using mathematical expressions, and keep 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.