src/pys5p/s5p_msm.py
def __from_ndarray(self, data, data_sel):
        """
        initialize S5Pmsm object from a ndarray
        """
        # copy dataset values (and error) to object
        if data_sel is None:
            self.value = np.squeeze(data)
        else:
            self.value = np.squeeze(data[data_sel])

        # define coordinates
        dims = [np.arange(sz) for sz in self.value.shape]
        try:
            self.set_coords(dims, coords_name=None)
        except Exception as exc:
            raise RuntimeError('failed to set the coordinates') from exc

        initialize S5Pmsm object from a ndarray
        
initialize S5Pmsm object from a ndarray
initialize S5Pmsm object from a ndarray
def __from_ndarray(self, data, data_sel):
        if data_sel is None:
            self.value = np.squeeze(data)
        else:
            self.value = np.squeeze(data[data_sel])
        dims = [np.arange(sz) for sz in self.value.shape]
        try:
            self.set_coords(dims, coords_name=None)
        except Exception as exc:
            raise RuntimeError('failed to set the coordinates') from exc
def __from_ndarray ( self , data , data_sel ) : if data_sel is None : self . value = np . squeeze ( data ) else : self . value = np . squeeze ( data [ data_sel ] ) dims = [ np . arange ( sz ) for sz in self . value . shape ] try : self . set_coords ( dims , coords_name = None ) except Exception as exc : raise RuntimeError ( 'failed to set the coordinates' ) from exc
initialize S5Pmsm object from a ndarray
initialize S5Pmsm object from a ndarray
"""
        initialize S5Pmsm object from a ndarray
        """ # copy dataset values (and error) to object # define coordinates
self
data
data_sel