src/pys5p/ckd_io1.py
def wavelength(self, bands='78'):
        """
        Returns wavelength CKD

        Notes
        -----
        * SWIR row 257 is excluded.
        * The wavelength CKD has no error attached to it.
        """
        if len(bands) > 2:
            raise ValueError('read per band or channel, only')

        data_sel = None
        if '7' in bands or '8' in bands:
            data_sel = np.s_[:-1, :]
            long_name = 'SWIR wavelength CKD'
        elif '5' in bands or '6' in bands:
            long_name = 'NIR wavelength CKD'
        elif '3' in bands or '4' in bands:
            long_name = 'VIS wavelength CKD'
        else:
            long_name = 'UV wavelength CKD'

        ckd = None
        for band in bands:
            dsname = f'/BAND{band}/wavelength_map'
            if not ckd:
                ckd = S5Pmsm(self.fid[dsname],
                             datapoint=True, data_sel=data_sel)
                ckd.set_long_name(long_name)
            else:
                buff = S5Pmsm(self.fid[dsname],
                              datapoint=True, data_sel=data_sel)
                ckd.concatenate(buff, axis=1)

            ckd.set_fillvalue()

        return ckd

        Returns wavelength CKD

        Notes
        -----
        * SWIR row 257 is excluded.
        * The wavelength CKD has no error attached to it.
        
Returns wavelength CKD
Notes

SWIR row 257 is excluded.
The wavelength CKD has no error attached to it.
Returns wavelength CKD Notes SWIR row 257 is excluded . The wavelength CKD has no error attached to it .
def wavelength(self, bands='78'):
        if len(bands) > 2:
            raise ValueError('read per band or channel, only')
        data_sel = None
        if '7' in bands or '8' in bands:
            data_sel = np.s_[:-1, :]
            long_name = 'SWIR wavelength CKD'
        elif '5' in bands or '6' in bands:
            long_name = 'NIR wavelength CKD'
        elif '3' in bands or '4' in bands:
            long_name = 'VIS wavelength CKD'
        else:
            long_name = 'UV wavelength CKD'
        ckd = None
        for band in bands:
            dsname = f'/BAND{band}/wavelength_map'
            if not ckd:
                ckd = S5Pmsm(self.fid[dsname],
                             datapoint=True, data_sel=data_sel)
                ckd.set_long_name(long_name)
            else:
                buff = S5Pmsm(self.fid[dsname],
                              datapoint=True, data_sel=data_sel)
                ckd.concatenate(buff, axis=1)
            ckd.set_fillvalue()
        return ckd
def wavelength ( self , bands = '78' ) : if len ( bands ) > 2 : raise ValueError ( 'read per band or channel, only' ) data_sel = None if '7' in bands or '8' in bands : data_sel = np . s_ [ : - 1 , : ] long_name = 'SWIR wavelength CKD' elif '5' in bands or '6' in bands : long_name = 'NIR wavelength CKD' elif '3' in bands or '4' in bands : long_name = 'VIS wavelength CKD' else : long_name = 'UV wavelength CKD' ckd = None for band in bands : dsname = f'/BAND{band}/wavelength_map' if not ckd : ckd = S5Pmsm ( self . fid [ dsname ] , datapoint = True , data_sel = data_sel ) ckd . set_long_name ( long_name ) else : buff = S5Pmsm ( self . fid [ dsname ] , datapoint = True , data_sel = data_sel ) ckd . concatenate ( buff , axis = 1 ) ckd . set_fillvalue ( ) return ckd
Returns wavelength CKD
Notes
Returns wavelength CKD Notes
"""
        Returns wavelength CKD

        Notes
        -----
        * SWIR row 257 is excluded.
        * The wavelength CKD has no error attached to it.
        """
self
bands