diff --git a/pyproject.toml b/pyproject.toml index 3ed4cacb9de4683d26701a5b0ce77990f45d53b8..5c89a7cbdf1967724798337cfdb28439e8b66970 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,7 @@ dependencies = [ "earthaccess", "requests", "typer", + "python-magic", ] [project.urls] diff --git a/src/cso/cso_file.py b/src/cso/cso_file.py index 5bb4eda2051467dd10dcececca828a4d8177c711..0da54bd91cef0d1eb495d56638b38c78ea6b2cfe 100644 --- a/src/cso/cso_file.py +++ b/src/cso/cso_file.py @@ -53,6 +53,9 @@ # Set flag to avoid warnings when decoding time arrays from VIIRS files. # # 2025-09, Arjo Segers +# Let 'GetData' return all attributes rather than just 'units'. +# +# 2025-09, Arjo Segers # Improved speed of CSO_Listing.Selection method. # # 2025-10, Arjo Segers @@ -684,7 +687,7 @@ class CSO_File(object): def GetData(self, varname): """ - Return data values and units for named variable. + Return data values and attributes for named variable. """ # check ... @@ -703,7 +706,7 @@ class CSO_File(object): # endif # ok - return self.ds[varname].values, self.ds[varname].attrs["units"] + return self.ds[varname].values, self.ds[varname].attrs # enddef GetData