nctoolkit.DataSet.multiply

DataSet.multiply(self, x=None, var=None)

Multiply a dataset This will multiply a dataset by a constant, another dataset or a NetCDF file. :param x: An int, float, single file dataset or netcdf file to multiply the dataset by.

If multiplying by a dataset or single file there must only be a single variable in it, unless var is supplied. The grids must be the same.

Parameters

var (str) – A variable in the x to multiply the dataset by