src/pys5p/lv2_io.py
def __h5_attr(self, attr_name, ds_name):
        """
        read attributes from operational products using hdf5
        """
        if ds_name is not None:
            dset = self.fid[f'/PRODUCT/{ds_name}']
            if attr_name not in dset.attrs.keys():
                return None

            attr = dset.attrs[attr_name]
        else:
            if attr_name not in self.fid.attrs:
                return None

            attr = self.fid.attrs[attr_name]

        if isinstance(attr, bytes):
            return attr.decode('ascii')

        return attr

        read attributes from operational products using hdf5
        
read attributes from operational products using hdf5
read attributes from operational products using hdf5
def __h5_attr(self, attr_name, ds_name):
        if ds_name is not None:
            dset = self.fid[f'/PRODUCT/{ds_name}']
            if attr_name not in dset.attrs.keys():
                return None
            attr = dset.attrs[attr_name]
        else:
            if attr_name not in self.fid.attrs:
                return None
            attr = self.fid.attrs[attr_name]
        if isinstance(attr, bytes):
            return attr.decode('ascii')
        return attr
def __h5_attr ( self , attr_name , ds_name ) : if ds_name is not None : dset = self . fid [ f'/PRODUCT/{ds_name}' ] if attr_name not in dset . attrs . keys ( ) : return None attr = dset . attrs [ attr_name ] else : if attr_name not in self . fid . attrs : return None attr = self . fid . attrs [ attr_name ] if isinstance ( attr , bytes ) : return attr . decode ( 'ascii' ) return attr
read attributes from operational products using hdf5
read attributes from operational products using hdf5
"""
        read attributes from operational products using hdf5
        """
self
attr_name
ds_name