diff --git a/monetio/sat/_mopitt_l3_mm.py b/monetio/sat/_mopitt_l3_mm.py index 1336ddd0..3f88a3d9 100644 --- a/monetio/sat/_mopitt_l3_mm.py +++ b/monetio/sat/_mopitt_l3_mm.py @@ -219,8 +219,8 @@ def open_dataset(files, varnames): files : str or Path or list Input file path(s). If :class:`str`, shell-style wildcards (e.g. ``*``) will be expanded. - varnames : list - The variables to load from the MOPITT file. + varnames : str or list of str + The variable(s) to load from the MOPITT file. Returns ------- @@ -233,6 +233,9 @@ def open_dataset(files, varnames): else: filelist = files # assume list + if isinstance(varnames, str): + varnames = [varnames] + datasets = [] for filename in filelist: print(filename)