Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplication operator between raster and constant #46

Open
Jeongho-Han opened this issue Oct 26, 2022 · 0 comments
Open

Multiplication operator between raster and constant #46

Jeongho-Han opened this issue Oct 26, 2022 · 0 comments

Comments

@Jeongho-Han
Copy link

Jeongho-Han commented Oct 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants