Open-Source-Spatial-Clean-Cooking-Tool / OnStove

This repository contain the general code for the Open Source Spatial Clean Cooking Tool OnStove
MIT License
7 stars 8 forks source link

When normalizing a `RasterLayer` the `nodata` value of the original data gets affected #379

Open camiloramirezgo opened 1 year ago

camiloramirezgo commented 1 year ago

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()