From e9991ee077809407b924bb6d2941c28b1e8a1d05 Mon Sep 17 00:00:00 2001 From: Arjo Segers Date: Thu, 19 Feb 2026 12:50:14 +0100 Subject: [PATCH 1/2] Added python-magic package to dependencies. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 3ed4cac..5c89a7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,7 @@ dependencies = [ "earthaccess", "requests", "typer", + "python-magic", ] [project.urls] -- GitLab From 1e10307eabf581856e93688506c8c66e459ddb11 Mon Sep 17 00:00:00 2001 From: Arjo Segers Date: Thu, 19 Feb 2026 12:50:57 +0100 Subject: [PATCH 2/2] Let GetData return all attributes rather than just the units string. --- src/cso/cso_file.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cso/cso_file.py b/src/cso/cso_file.py index 5bb4eda..0da54bd 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 -- GitLab