TNO Intern

Commit 1e10307e authored by Arjo Segers's avatar Arjo Segers
Browse files

Let GetData return all attributes rather than just the units string.

parent e9991ee0
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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