Aggregate Multidimensional Raster
- URL:https://<rasteranalysistools-url>/AggregateMultidimensionalRaster
- Related Resources: Add Image, Aggregate Miltidimensional Raster, Build Multidimensional Transpose, Calculate Density, Calculate Distance, Calculate Travel Cost, Classify, Classify Object Using Deep Learning, Classify Pixels Using Deep Learning, Convert Feature to Raster, Convert Raster Function Template, Convert Raster to Feature, Copy Raster, Cost Path as Polyline, Create Image Collection, Create Viewshed, Delete Image, Delete Image Collection, Detect Objects Using Deep Learning, Determine Optimum Travel Cost Network, Determine Travel Cost Paths to Destinations, Determine Travel Cost Path as Polyline, Export Training Data for Deep Learning, Fill, Find Argument Statistics, Flow Accumulation, Flow Direction, Flow Distance, Generate Multidimensional Anomaly, Generate Raster, Generate Trend Raster, Install Deep Learning Model, Interpolate Points, Linear Spectral Unmixing, List Deep Learning Model Info, Nibble, Predict Using Trend Raster, Query Deep Learning Model Info, Segment, Stream Link, Subset Multidimensional Raster, Summarize Raster Within, Train Classifier, Train Deep Learning Model,Uninstall Deep Learning Model, Watershed
- Version Introduced:10.8
Description

The AggregateMultidimensionalRaster task can be used to generate a .CRF multidimensional raster dataset and image service by aggregating existing multidimensional dataset variables along a dimension.
License:Request parameters
Parameter | Details |
|---|---|
| inputMultidimensionalRaster (Required) | The Portal Item ID, Image Service URL, cloud multidimensional raster dataset or shared multidimensional raster dataset. Syntax: JSON object describes the input multidimensional raster. At least one type of input needs to be provided in the JSON object. If multiple inputs are given, the itemid takes the priority. |
| outputName (Required) | Output hosted image service properties. If the hosted image service is already created, the portal item ID or service URL can be given to the service tool. The output path of the multidimensional raster dataset generated in the raster store will be used to update the existing service definition. The service tool can also generate new hosted image service with the given service properties. The output hosted image service is stored in raster store and shared on either the Raster Analysis Image Server or Image Hosting Image Server depending on the Enterprise configuration. Syntax: JSON object describes the output multidimensional raster. At least one type of input needs to be provided in the JSON object. If multiple inputs are given, the itemId takes priority. Note:Set image,metadata as image service capabilities to make sure the output image service can be recognized as multidimensional by other raster analysis tools. Example |
| dimension (Required) | The aggregation dimension. This is the dimension along which the variables will be aggregated. Syntax: A string representing the dimension name. Example |
| aggregationMethod (Optional) | Specifies the mathematical method that will be used to combine the aggregated slices in an interval.
When the aggregationMethod is set to CUSTOM, the aggregationFunction parameter must be specified. Syntax: A string representing the aggregation method. Example |
| variables (Optional) | The variable or variables that will be aggregated along the given dimension. If no variable is specified, all variables with the selected dimension will be aggregated. For example, to aggregate your daily temperature data into monthly average values, specify temperature as the variable to be aggregated. If you do not specify any variables and you have both daily temperature and daily precipitation variables, both variables will be aggregated into monthly averages and the output multidimensional raster will include both variables. Syntax: A string containing the variables. Multiple variables are separated by comma. Example |
| aggregationDefinition (Optional) | Specifies the dimension interval for which the data will be aggregated.
Syntax: A string of one of the keywords. Example |
| intervalKeyword (Optional; Required when aggregateDefinition is INTERVAL_KEYWORD) | Specifies the keyword interval that will be used when aggregating along the dimension. This parameter is required when the aggregationDefinition parameter is set to INTERVAL_KEYWORD, and the aggregation must be across time.
Syntax: A string of one of the keywords. Example |
| intervalValue (Optional; Required when aggregateDefinition is INTERVAL_VALUE) | The size of the interval that will be used for the aggregation. For example, to aggregate 30 years of monthly temperature data into 5-year increments, type 5 as the intervalValue, and specify intervalUnit as YEARS. Syntax: A string representing the internal value. Example |
| intervalUnit (Optional; Required when aggregateDefinition is INTERVAL_VALUE) | The unit that will be used for the interval value. This parameter is required when the dimension parameter is set to a time field. If you are aggregating over anything other than time, this parameter should be left empty and the unit for the interval value will match the variable unit of the input multidimensional raster data.
Syntax: A string of one of the keywords. Example |
| intervalRanges (Optional; Required when aggregateDefinition is INTERVAL_VALUE) | Interval ranges will be used to aggregate groups of values. The string consists of pairs of minimum and maximum range values. Note:The time dimension values should be in standard date format. Syntax: Two types of syntax are supported:
Example of one time interval range: Example of multiple time interval ranges: |
| aggregationFunction (Optional; Required when aggregationMethod is CUSTOM) | A custom raster function that will be used to compute the pixel values of the aggregated rasters. It can be created from a function chain or a custom Python raster function. The input is the entire JSON string of a raster function template, an .rft.xml file, an .rft.json file, or a raster function template item on portal. Example of a portal item: Example of XML or JSON file: Example of a JSON string: |
| ignoreNoData (Optional) | Specifies whether NoData values are ignored in the analysis.
Syntax: A Boolean value as either true or false. Example |
| context (Optional) | Contains additional settings that affect task execution. This task has the following settings:
Example |
| f | The response format. The default response format is html. Values: html | json |
Response
When you submit a request, the task assigns a unique job ID for the transaction.
Syntax:
{ "jobId": "<unique job identifier>", "jobStatus": "<job status>" }
After the initial request is submitted, you can use the jobId to periodically check the status of the job and messages as described in Checking job status. Once the job has successfully completed, use the jobId to retrieve the results. To track the status, you can make a request of the following form:
https://<analysis-url>/AggregateMultidimensionalRaster/jobs/<jobId>
Accessing results
When the status of the job request is esriJobSucceded, you can access the results of the analysis by making a request of the following form.
https://<rasteranalysis-url>/AggregateMultidimensionalRaster/jobs/<jobId>/results/outputMultidimensionalRaster?token=<your token>&f=json
Parameter | Description |
|---|---|
| outputMultidimensionalRaster | The output multidimensional raster itemId and URL Example: The result has properties for parameter name, data type, and value. The content of the value is always the output raster dataset's itemId and image service URL. |
