src/pys5p/ckd_io1.py
def memory(self, bands='78') -> dict:
        """
        Returns memory CKD, SWIR only

        Note SWIR row 257 is excluded
        """
        if len(bands) > 2:
            raise ValueError('read per band or channel, only')
        if '7' not in bands and '8' not in bands:
            raise ValueError('Memory CKD only available for SWIR')

        long_name = 'SWIR memory CKD ({})'
        ckd_parms = ['mem_lin_neg_swir', 'mem_lin_pos_swir',
                     'mem_qua_neg_swir', 'mem_qua_pos_swir']
        ckd = {}
        for key in ckd_parms:
            for band in bands:
                if key not in ckd:
                    ckd[key] = S5Pmsm(self.fid[f'/BAND{band}/{key}'],
                                      datapoint=True, data_sel=np.s_[:-1, :])
                    ckd[key].set_long_name(long_name.format(key))
                else:
                    buff = S5Pmsm(self.fid[f'/BAND{band}/{key}'],
                                  datapoint=True, data_sel=np.s_[:-1, :])
                    ckd[key].concatenate(buff, axis=1)

            ckd[key].set_fillvalue()
            ckd[key].fill_as_nan()

        return ckd

        Returns memory CKD, SWIR only

        Note SWIR row 257 is excluded
        
Returns memory CKD, SWIR only
Note SWIR row 257 is excluded
Returns memory CKD SWIR only Note SWIR row 257 is excluded
def memory(self, bands='78') -> dict:
        if len(bands) > 2:
            raise ValueError('read per band or channel, only')
        if '7' not in bands and '8' not in bands:
            raise ValueError('Memory CKD only available for SWIR')
        long_name = 'SWIR memory CKD ({})'
        ckd_parms = ['mem_lin_neg_swir', 'mem_lin_pos_swir',
                     'mem_qua_neg_swir', 'mem_qua_pos_swir']
        ckd = {}
        for key in ckd_parms:
            for band in bands:
                if key not in ckd:
                    ckd[key] = S5Pmsm(self.fid[f'/BAND{band}/{key}'],
                                      datapoint=True, data_sel=np.s_[:-1, :])
                    ckd[key].set_long_name(long_name.format(key))
                else:
                    buff = S5Pmsm(self.fid[f'/BAND{band}/{key}'],
                                  datapoint=True, data_sel=np.s_[:-1, :])
                    ckd[key].concatenate(buff, axis=1)
            ckd[key].set_fillvalue()
            ckd[key].fill_as_nan()
        return ckd
def memory ( self , bands = '78' ) -> dict : if len ( bands ) > 2 : raise ValueError ( 'read per band or channel, only' ) if '7' not in bands and '8' not in bands : raise ValueError ( 'Memory CKD only available for SWIR' ) long_name = 'SWIR memory CKD ({})' ckd_parms = [ 'mem_lin_neg_swir' , 'mem_lin_pos_swir' , 'mem_qua_neg_swir' , 'mem_qua_pos_swir' ] ckd = { } for key in ckd_parms : for band in bands : if key not in ckd : ckd [ key ] = S5Pmsm ( self . fid [ f'/BAND{band}/{key}' ] , datapoint = True , data_sel = np . s_ [ : - 1 , : ] ) ckd [ key ] . set_long_name ( long_name . format ( key ) ) else : buff = S5Pmsm ( self . fid [ f'/BAND{band}/{key}' ] , datapoint = True , data_sel = np . s_ [ : - 1 , : ] ) ckd [ key ] . concatenate ( buff , axis = 1 ) ckd [ key ] . set_fillvalue ( ) ckd [ key ] . fill_as_nan ( ) return ckd
Returns memory CKD, SWIR only
Note SWIR row 257 is excluded
Returns memory CKD SWIR only Note SWIR row 257 is excluded
"""
        Returns memory CKD, SWIR only

        Note SWIR row 257 is excluded
        """
self
bands