Statistics

URL:
https://<imageservice-url>/statistics
Methods:
GET
Required Capability:
Image
Version Introduced:
10.8.1

Description

The statistics resource returns statistics of the image. This image service resource is available if the image service uses ArcObjects11 or ArcObjectsRasterRendering as the service provider. You can provide arguments to the statistics operation as query parameters defined in the parameters table below.

Request parameters

ParameterDescription

variable

For an image service that has multidimensional information, this parameter can be used to request statistics for each variable. If not specified, it will return statistics for the whole image service. Eligible variable names can be queried from Multidimensional Info image service resource.

renderingRule

Specifies the rendering rule for how the requested image should be rendered.

In the context of accessing image service statistics resource, this parameter is used to retrieve statistic information in the attached predefined raster function templates (inside a Statistics function).

f

The response format. The default response format is html .

Values: html | json | pjson

Example usage

Below is a sample request URL that demonstrates how to return statistics of the water_temp variable from an image service with multidimensional data.

1
https://machine.domain.com/webadaptor/rest/services/mynetcdf/ImageServer/statistics?variable=water_temp&f=html

JSON Response syntax

1
2
3
4
5
6
7
8
{
  "statistics": [
    <statistics1>,
    <statistics2>,
    <statistics3>,
    ...
  ]
}

JSON Response example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "statistics": [
    {
      "min": 0.23699906468391418,
      "max": 29.722000122070312,
      "mean": 10.716446480378226,
      "standardDeviation": 7.5067798535721115,
      "median": 29.722000122070312,
      "mode": 0.46825397493792514,
      "skipX": 1,
      "skipY": 1,
      "count": 0
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close