- URL:
- https://<root>/<serviceName>/RasterAnalysisTools/GPServer/RasterSolarRadiation
- Methods:
GET- Version Introduced:
- 12.2
Description
The Raster task calculates the amount of incoming solar energy (insolation) received for every cell in a DEM or digital surface model, producing a continuous raster surface of solar radiation values (kWh/m^2) across a landscape. It supports analysis for both the Earth and Moon.
Example applications of Raster include the following:
- Identify the best locations for solar farms, rooftop solar installations
- Evaluate how terrain, buildings, and shadows affect solar exposure.
- Analyze the effects for agriculture, wildfire risk, or snowmelt timing and watershed processes.
- Analyze power availability for solar powered rovers and landers on the moon.
Request parameters
The following table lists the parameters with syntax and details for each:
| Parameter | Details |
|---|---|
| The input surface raster. Syntax: This parameter can be specified as a portal item ID, a URL to a raster image service layer, a cloud raster dataset, or a shared raster dataset. Examples: |
| The name of the output image service that will be created. The output raster representing the total amount of solar radiation received per unit area across the input surface. The output has units of kilowatt hours per square meter (kWh/m2). The name of the output image service that will be created. You can specify the name, or you can create an empty service using Portal Admin Sharing API and use the return JSON object as input to this parameter. Syntax: A JSON object describes the name of the output or the output raster. Output name example: Output raster examples: |
| The start date and time for the analysis. Syntax: A Unix timestamp in milliseconds or a date formatted using ISO 8601. Example: |
| The end date and time for the analysis. Syntax: A Unix timestamp in milliseconds or a date formatted using ISO 8601. Example: |
| The layer that defines the area or locations where the analysis will occur. Syntax: This parameter can have either a raster input or a feature input. For raster input, this parameter can be specified as a portal item ID, a URL to a raster image service layer, a cloud raster dataset, or a shared raster dataset. For feature input, this parameter can be specified as either a URL to a feature service layer or a feature collection. Raster input examples: Feature input examples: |
| The input slope raster that will be used when calculating the output solar radiation. If this input is not specified, the tool will calculate slope values internally from the input surface raster. Providing this value will improve performance, especially if the tool will be run repeatedly or when analyzing larger datasets. Syntax: This parameter can be specified as a portal item ID, a URL to a raster image service layer, a cloud raster dataset, or a shared raster dataset. Examples: |
| The input aspect raster that will be used when calculating the output solar radiation. If this input is not specified, the tool will calculate aspect values internally from the input surface raster. Providing this value will improve performance, especially if the tool will be run repeatedly or when analyzing larger datasets. Syntax: This parameter can be specified as a portal item ID, a URL to a raster image service layer, a cloud raster dataset, or a shared raster dataset. Examples: |
| The name of the output raster representing the direct incoming solar radiation value for each location. The name of the output image service that will be created. You can specify the name, or you can create an empty service using Portal Admin Sharing API and use the return JSON object as input to this parameter. Syntax: A JSON object describes the name of the output or the output raster. Output name example: Output raster examples: |
| The name of the output raster representing the incoming solar radiation that is diffused by the sky, layers of atmosphere, and other surroundings. The name of the output image service that will be created. You can specify the name, or you can create an empty service using Portal Admin Sharing API and use the return JSON object as input to this parameter. Syntax: A JSON object describes the name of the output or the output raster. Output name example: Output raster examples: |
| The name of the output raster representing the output raster representing the duration of direct incoming solar radiation. The output has units of hours. The name of the output image service that will be created. You can specify the name, or you can create an empty service using Portal Admin Sharing API and use the return JSON object as input to this parameter. Syntax: A JSON object describes the name of the output or the output raster. Output name example: Output raster examples: |
| The time zone that will be used for the start and end time. The default is coordinated universal time (UTC). Example: |
| Specifies whether the input time configuration will be adjusted for daylight saving time. If set as This parameter is not applicable for analysis on the Moon. Syntax: An enumerated string value Values: |
| Specifies whether to calculate a single total insolation value or radiation values at regular intervals. Using intervals creates a multidimensional raster output. If set as Syntax: An enumerated string value Values: |
| Specifies the time unit that will be used for calculating solar radiation values over the entire time configuration. Note that the Syntax: An enumerated string value Values: |
| The value of the duration or time between intervals. The default values for the available interval units are listed below:
Syntax: A numerical value. Example: |
| The output will be calculated over this distance from the target cell center. It determines the neighborhood size. The default value is the input raster cell size, resulting in a 3 by 3 neighborhood. Syntax: A linear unit specifying the distance and units. Supported units: Example: |
| Specifies whether the Syntax: An enumerated string value Values: |
| Specifies the type of diffuse radiation model that will be used. When set as Syntax: An enumerated string value Values: |
| The proportion of global normal radiation flux that is diffuse. Values range from 0 to 1. Set this value according to atmospheric conditions. The default value is 0.3 for generally clear sky conditions. Syntax: A numerical value. Example: |
| The fraction of radiation that passes through the atmosphere (averaged overall wavelengths). Values range from 0 (no transmission) to 1 (all transmission). The default is 0.5 for a generally clear sky. Syntax: A numerical value. Example: |
| The resolution that will be used to generate the H3 hexagonal grid cells used for internal calculations. A lower grid level value creates fewer, larger sun map areas and decreases tool run time. A higher grid level creates more smaller sun maps improving the accuracy of the result. Valid values of the sun map grid level for Earth range from 5 to 7. For the Moon, the valid value range is from 4 to 6. Default Grid Level: Determined by the input surface raster. For Earth, the default is Level 6 when the analysis cell size is ≤ 4 m, otherwise Level 5. For the Moon, the default is Level 6. Syntax: A numerical value. Example: |
| The analysis target device allow you to choose where and how you want to process your data. You can process your data using the computer central processing unit (CPU) or the graphics processing unit (GPU). When set as Syntax: An enumerated string value Values: |
|
Contains additional settings that affect task processing. This task has the following settings:
|
|
The response format. The default response format is Values: |
Response
When you submit a request, the task assigns a unique job ID for the transaction.
{
"jobId": "<unique job identifier>",
"jobStatus": "<job status>"
}After the initial request is submitted, you can use the job to periodically check the status of the job and messages as described in Checking job status. Once the job has successfully completed, you use the job to retrieve the results. To track the status, you can make a request of the following form:
https://<raster analysis tools url>/RasterSolarRadiation/jobs/<jobId>When the status of the job request is esri , you can access the results of the analysis by making a request of the following form:
https://<raster analysis tools url>/RasterSolarRadiation/jobs/<jobId>/results/<output parameters>Example usage
The following is a sample request URL for Raster :
https://services.myserver.com/arcgis/rest/services/System/RasterAnalysisTools/GPServer/RasterSolarRadiation/submitJobJSON Response syntax
The response returns the output, output, output and output output parameters, which have properties for parameter name, data type, and value. The content of value is always the item of the output raster dataset and the image service URL.
{
"paramName": <parameter name>,
"dataType": "GPString",
"value": {
"itemId": <item Id>,
"url": <URL>
}
}JSON Response example
{
"paramName": "outputSolarRadiationRaster",
"dataType": "GPString",
"value": {
"itemId": "f121390b85ef419790479fc75b493efd",
"url": "https://<server name>/arcgis/rest/services/Hosted/<service name>/ImageServer"
}
}