def METHOD_NAME(self):
    with MemoryFile() as mem_file:
        raster = mem_file.open(driver = 'GTiff', height = self.raster.height, width = self.raster.width, count = self.raster.count, dtype = self.raster.dtypes[0], crs = self.raster.crs, transform = self.raster.transform, nodata = self.raster.nodata)
        for band in range(1, self.raster.count + 1):
            band_array = self.raster.read(band, masked = True)
            min = band_array.min()
            aligned = band_array - min
            raster.write(aligned, band)
        self.raster = raster