src/pys5p/s5p_msm.py
def transpose(self):
        """
        Transpose data and coordinates of an S5Pmsm object
        """
        if self.value.ndim <= 1:
            return self

        if self.error is not None:
            self.error = np.transpose(self.error)
        self.value = np.transpose(self.value)

        keys = []
        dims = []
        for ii in range(self.value.ndim):
            keys.append(self.coords._fields[ii])
            dims.append(self.coords[ii][:])
        tmp = keys[1]
        keys[1] = keys[0]
        keys[0] = tmp
        tmp = dims[1]
        dims[1] = dims[0]
        dims[0] = tmp
        coords_namedtuple = namedtuple('Coords', keys)
        self.coords = coords_namedtuple._make(dims)

        return self

        Transpose data and coordinates of an S5Pmsm object
        
Transpose data and coordinates of an S5Pmsm object
Transpose data and coordinates of an S5Pmsm object
def transpose(self):
        if self.value.ndim <= 1:
            return self
        if self.error is not None:
            self.error = np.transpose(self.error)
        self.value = np.transpose(self.value)
        keys = []
        dims = []
        for ii in range(self.value.ndim):
            keys.append(self.coords._fields[ii])
            dims.append(self.coords[ii][:])
        tmp = keys[1]
        keys[1] = keys[0]
        keys[0] = tmp
        tmp = dims[1]
        dims[1] = dims[0]
        dims[0] = tmp
        coords_namedtuple = namedtuple('Coords', keys)
        self.coords = coords_namedtuple._make(dims)
        return self
def transpose ( self ) : if self . value . ndim <= 1 : return self if self . error is not None : self . error = np . transpose ( self . error ) self . value = np . transpose ( self . value ) keys = [ ] dims = [ ] for ii in range ( self . value . ndim ) : keys . append ( self . coords . _fields [ ii ] ) dims . append ( self . coords [ ii ] [ : ] ) tmp = keys [ 1 ] keys [ 1 ] = keys [ 0 ] keys [ 0 ] = tmp tmp = dims [ 1 ] dims [ 1 ] = dims [ 0 ] dims [ 0 ] = tmp coords_namedtuple = namedtuple ( 'Coords' , keys ) self . coords = coords_namedtuple . _make ( dims ) return self
Transpose data and coordinates of an S5Pmsm object
Transpose data and coordinates of an S5Pmsm object
"""
        Transpose data and coordinates of an S5Pmsm object
        """
self