Pyspatialml icon indicating copy to clipboard operation
Pyspatialml copied to clipboard

Multiplication operator between raster and constant

Open Jeongho-Han opened this issue 2 years ago • 0 comments

Hi @stevenpawley, I really appreciate this nice library. I found multiplication between rasters works. but is there any way to multiply a raster (RasterLayer object) by a constant? Because I got a raster predicted by the machine learning model that I trained, but I need to multiply that raster by a scale factor.

for example, type(ras1): pyspatialml.rasterlayer.RasterLayer ras2 = ras1 * 0.25

Jeongho-Han avatar Oct 26 '22 19:10 Jeongho-Han