Hello all,
I have two raster datasets (in arcgis image server) and I need to get an average of the two represented as one raster layer. It can be easily achieved in ArcMap by "Spatial Analyst-->Map Algebra-->Raster Calculator" using "(Float(raster1) + Float(raster2))/2". And ArcPy can also do this using arcpy.sa module. I am wondering if it can be done in ArcGIS JavaScript API (Version 3.18).
It seems that the 'Local' function in Class: RasterFunction can do this, but I don‘t know how to do it. Any help please.