The problem is that we do not create a copy of the meta dictionary before doing the normalization of the data, and then we update the nodata value for the normalized raster. This also affects the original data. We just need to create a copy with meta = self.meta.copy()
The problem is that we do not create a copy of the
meta
dictionary before doing the normalization of the data, and then we update thenodata
value for the normalized raster. This also affects the original data. We just need to create a copy withmeta = self.meta.copy()