src/pys5p/l1b_patch.py
def offset(self) -> None:
        """
        Patch SWIR offset correction.

        Patched dataset: 'radiance' ('radiance_error' and 'radiance_noise'?)

        Requires (naive approach):
        * reverse applied radiance calibration
        * reverse applied stray-light correction
        * reverse applied PRNU correction
        * reverse applied dark-flux correction
        * reverse applied offset correction
        * apply (alternative) offset correction
        * apply (alternative) dark-flux correction
        * apply (alternative) PRNU correction
        * apply (alternative) stray-light correction
        * apply (alternative) radiance calibration

        Parameters
        ----------
        None

        Returns
        -------
        Nothing
        """
        if not self.l1b_patched.is_file():
            shutil.copy(self.l1b_product, self.l1b_patched)

        # read original data
        with L1BioRAD(self.l1b_product) as l1b:
            band = l1b.select('STANDARD_MODE')
            data = l1b.get_msm_data('radiance')

        # read required CKD's

        # patch dataset 'radiance'

        # write patched dataset to new product
        with L1BioRAD(self.l1b_patched, readwrite=True) as l1b:
            res = l1b.select('STANDARD_MODE')
            if res != band:
                raise ValueError(_MSG_ERR_IO_BAND_)
            l1b.set_msm_data('radiance', data)

        Patch SWIR offset correction.

        Patched dataset: 'radiance' ('radiance_error' and 'radiance_noise'?)

        Requires (naive approach):
        * reverse applied radiance calibration
        * reverse applied stray-light correction
        * reverse applied PRNU correction
        * reverse applied dark-flux correction
        * reverse applied offset correction
        * apply (alternative) offset correction
        * apply (alternative) dark-flux correction
        * apply (alternative) PRNU correction
        * apply (alternative) stray-light correction
        * apply (alternative) radiance calibration

        Parameters
        ----------
        None

        Returns
        -------
        Nothing
        
Patch SWIR offset correction.

Requires (naive approach):
reverse applied radiance calibration
reverse applied stray-light correction
reverse applied PRNU correction
reverse applied dark-flux correction
reverse applied offset correction
apply (alternative) offset correction
apply (alternative) dark-flux correction
apply (alternative) PRNU correction
apply (alternative) stray-light correction
apply (alternative) radiance calibration

Parameters

None

Returns

Nothing
Patch SWIR offset correction . Requires ( naive approach ) : reverse applied radiance calibration reverse applied stray - light correction reverse applied PRNU correction reverse applied dark - flux correction reverse applied offset correction apply ( alternative ) offset correction apply ( alternative ) dark - flux correction apply ( alternative ) PRNU correction apply ( alternative ) stray - light correction apply ( alternative ) radiance calibration Parameters None Returns Nothing
def offset(self) -> None:
        if not self.l1b_patched.is_file():
            shutil.copy(self.l1b_product, self.l1b_patched)
        with L1BioRAD(self.l1b_product) as l1b:
            band = l1b.select('STANDARD_MODE')
            data = l1b.get_msm_data('radiance')
        with L1BioRAD(self.l1b_patched, readwrite=True) as l1b:
            res = l1b.select('STANDARD_MODE')
            if res != band:
                raise ValueError(_MSG_ERR_IO_BAND_)
            l1b.set_msm_data('radiance', data)
def offset ( self ) -> None : if not self . l1b_patched . is_file ( ) : shutil . copy ( self . l1b_product , self . l1b_patched ) with L1BioRAD ( self . l1b_product ) as l1b : band = l1b . select ( 'STANDARD_MODE' ) data = l1b . get_msm_data ( 'radiance' ) with L1BioRAD ( self . l1b_patched , readwrite = True ) as l1b : res = l1b . select ( 'STANDARD_MODE' ) if res != band : raise ValueError ( _MSG_ERR_IO_BAND_ ) l1b . set_msm_data ( 'radiance' , data )
Patch SWIR offset correction.
Patch SWIR offset correction .
"""
        Patch SWIR offset correction.

        Patched dataset: 'radiance' ('radiance_error' and 'radiance_noise'?)

        Requires (naive approach):
        * reverse applied radiance calibration
        * reverse applied stray-light correction
        * reverse applied PRNU correction
        * reverse applied dark-flux correction
        * reverse applied offset correction
        * apply (alternative) offset correction
        * apply (alternative) dark-flux correction
        * apply (alternative) PRNU correction
        * apply (alternative) stray-light correction
        * apply (alternative) radiance calibration

        Parameters
        ----------
        None

        Returns
        -------
        Nothing
        """ # read original data # read required CKD's # patch dataset 'radiance' # write patched dataset to new product
self