nctoolkit.DataSet.strip_variables

DataSet.strip_variables(self, vars=None)

Remove any variables, such as bnds etc., from variables. This should probably only be done at the end of a processing chain before converting to a dataframe etc., as it is stripping away critical info for netCDF operations.

Parameters

vars (str or list) – individual or list of variables to select and strip. All variables will be stripped if this is not defined.