diff --git a/pygmtsar/pygmtsar/IO.py b/pygmtsar/pygmtsar/IO.py index 5b7c84ef..5e6e4787 100644 --- a/pygmtsar/pygmtsar/IO.py +++ b/pygmtsar/pygmtsar/IO.py @@ -555,7 +555,7 @@ def save_model(self, model, name=None, caption='Saving 3D datacube', chunksize=N raise ValueError('Specify name for the output NetCDF file') # save to NetCDF file - model_filename = self.get_filenames(None, name, add_subswath=False) + model_filename = self.get_filename(name, add_subswath=False) if os.path.exists(model_filename): os.remove(model_filename) if isinstance(model, xr.DataArray):