def __init__(self, dataset_path): self.dataset_path = dataset_path try: self.dataset = xr.open_dataset(self.dataset_path) except OSError: print('File not found.') exit()