diff --git a/metobs_toolkit/dataset.py b/metobs_toolkit/dataset.py index b1a03a06..dd923cc0 100644 --- a/metobs_toolkit/dataset.py +++ b/metobs_toolkit/dataset.py @@ -397,6 +397,9 @@ def import_dataset(self, folder_path=None, filename='saved_dataset.pkl'): with open(full_path, 'rb') as inp: dataset = pickle.load(inp) + #convert metadf to a geodataframe (if coordinates are available) + dataset.metadf = metadf_to_gdf(dataset.metadf) + return dataset def add_new_observationtype(self, Obstype):