src/pys5p/ckd_io1.py
def saturation(self, bands='78'):
        """
        Returns saturation values (pre-offset), SWIR only

        Notes
        -----
        * SWIR row 257 is excluded
        * The saturation CKD has no error attached to it (always zero)
        """
        if len(bands) > 2:
            raise ValueError('read per band or channel, only')
        if '7' not in bands and '8' not in bands:
            raise ValueError('saturation CKD is only available for SWIR')

        ckd = None
        long_name = 'SWIR saturation(pre-offset) CKD'
        ckd_file = (self.ckd_dir / 'OCAL'
                    / 'ckd.saturation_preoffset.detector4.nc')
        with h5py.File(ckd_file, 'r') as fid:
            for band in bands:
                dsname = f'/BAND{band}/saturation_preoffset'

                if not ckd:
                    ckd = S5Pmsm(fid[dsname], data_sel=np.s_[:-1, :])
                    ckd.set_long_name(long_name)
                else:
                    buff = S5Pmsm(fid[dsname], data_sel=np.s_[:-1, :])
                    ckd.concatenate(buff, axis=1)

        ckd.set_fillvalue()
        return ckd

        Returns saturation values (pre-offset), SWIR only

        Notes
        -----
        * SWIR row 257 is excluded
        * The saturation CKD has no error attached to it (always zero)
        
Returns saturation values (pre-offset), SWIR only
Notes

SWIR row 257 is excluded
The saturation CKD has no error attached to it (always zero)
Returns saturation values ( pre - offset ) SWIR only Notes SWIR row 257 is excluded The saturation CKD has no error attached to it ( always zero )
def saturation(self, bands='78'):
        if len(bands) > 2:
            raise ValueError('read per band or channel, only')
        if '7' not in bands and '8' not in bands:
            raise ValueError('saturation CKD is only available for SWIR')
        ckd = None
        long_name = 'SWIR saturation(pre-offset) CKD'
        ckd_file = (self.ckd_dir / 'OCAL'
                    / 'ckd.saturation_preoffset.detector4.nc')
        with h5py.File(ckd_file, 'r') as fid:
            for band in bands:
                dsname = f'/BAND{band}/saturation_preoffset'
                if not ckd:
                    ckd = S5Pmsm(fid[dsname], data_sel=np.s_[:-1, :])
                    ckd.set_long_name(long_name)
                else:
                    buff = S5Pmsm(fid[dsname], data_sel=np.s_[:-1, :])
                    ckd.concatenate(buff, axis=1)
        ckd.set_fillvalue()
        return ckd
def saturation ( self , bands = '78' ) : if len ( bands ) > 2 : raise ValueError ( 'read per band or channel, only' ) if '7' not in bands and '8' not in bands : raise ValueError ( 'saturation CKD is only available for SWIR' ) ckd = None long_name = 'SWIR saturation(pre-offset) CKD' ckd_file = ( self . ckd_dir / 'OCAL' / 'ckd.saturation_preoffset.detector4.nc' ) with h5py . File ( ckd_file , 'r' ) as fid : for band in bands : dsname = f'/BAND{band}/saturation_preoffset' if not ckd : ckd = S5Pmsm ( fid [ dsname ] , data_sel = np . s_ [ : - 1 , : ] ) ckd . set_long_name ( long_name ) else : buff = S5Pmsm ( fid [ dsname ] , data_sel = np . s_ [ : - 1 , : ] ) ckd . concatenate ( buff , axis = 1 ) ckd . set_fillvalue ( ) return ckd
Returns saturation values (pre-offset), SWIR only
Notes
Returns saturation values ( pre - offset ) SWIR only Notes
"""
        Returns saturation values (pre-offset), SWIR only

        Notes
        -----
        * SWIR row 257 is excluded
        * The saturation CKD has no error attached to it (always zero)
        """
self
bands