(self)
Remove the offline weight file on disk.

        To save the time on re-computing weights, you can just keep the file,
        and set "reuse_weights=True" when initializing the regridder next time.
Remove the offline weight file on disk.
Remove the offline weight file on disk .
def clean_weight_file(self):
        """
        Remove the offline weight file on disk.

        To save the time on re-computing weights, you can just keep the file,
        and set "reuse_weights=True" when initializing the regridder next time.
        """
        if os.path.exists(self.filename):
            print("Remove file {}".format(self.filename))
            os.remove(self.filename)
        else:
            print("File {} is already removed.".format(self.filename))
def clean_weight_file ( self ) : if os . path . exists ( self . filename ) : print ( "Remove file {}" . format ( self . filename ) ) os . remove ( self . filename ) else : print ( "File {} is already removed." . format ( self . filename ) )