ArcGIS API for JavaScript: grade_raster_estatistica (MapServer)
Built using the ArcGIS API for JavaScript