Skip To Content


Available with Spatial Analyst license.


Defines the summer solstice/equinox/winter solstice days as the time period to perform solar caclulations.


This object can be used in the following tools: Area Solar Radiation, Points Solar Radiation, and Solar Radiation Graphics.

The TimeSpecialDays class has no parameters.


 TimeSpecialDays ()

Code sample

TimeSpecialDays example 1 (Python window)

Demonstrates how to create a TimeSpecialDays class and use it in the AreaSolarRadiation tool within the Python window.

import arcpy
from arcpy import env
from import *
env.workspace = "C:/sapyexamples/data"
outAreaSolar = AreaSolarRadiation("solar_dem", "", 200, TimeSpecialDays())"C:/sapyexamples/output/areasolartsd")
TimeSpecialDays example 2 (stand-alone script)

Calculates the incoming solar radiation with the AreaSolarRadiation tool using the TimeSpecialDays class.

# Name:
# Description: Execute AreaSolarRadiation using the TimeSpecialDays object
# Requirements: Spatial Analyst Extension

# Import system modules
import arcpy
from arcpy import env
from import *

# Set environment settings
env.workspace = "C:/sapyexamples/data"

# Set local variables
inRaster = "solar_dem"

# Create TimeSpecialDays Object
myTimeSpecialDay = TimeSpecialDays()

# Execute AreaSolarRadiation
outAreaSolar = AreaSolarRadiation(inRaster, "", 200, myTimeSpecialDay, 14,
                                  0.5, "NOINTERVAL", 1, "FROM_DEM", 32, 8, 8,
                                  "UNIFORM_SKY", 0.3, 0.5)

# Save the output"C:/sapyexamples/output/areasolartsd2")

Related topics