xarray.Dataset.hyoga.assign#

Dataset.hyoga.assign(**standard_variables)#

Assign new variables by standard_name.

Parameters

standard_variables (mapping) – A mapping from netCDF Climate and Forecast compliant standard names (http://cfconventions.org/standard-names.html), to data arrays, or datasets or paths to files containing variables with the corresponding standard name.

Returns

dataset (Dataset) – A new dataset with the new variables added, replacing any existing variable with the same standard name. New variables are labelled according to their input (short) names, or standard names if short names are missing, with added trailing underscores in the event of duplicates.