xray.Dataset.identical

Dataset.identical(other)

Two Datasets are identical if they have the same variables and all variables are identical (with the same attributes), and they also have the same global attributes.