ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • ArcGIS Pro
  • ArcMap
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS for Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • ArcGIS Pro
  • ArcMap
Esri
English
  • English
  • Deutsch
  • Español
  • Français
  • 日本語
  • Русский
  • 简体中文
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

TimeWithinDay

La documentación de ArcGIS 10.5 se ha archivadod y ha dejado de actualizarse. El contenido y los enlaces pueden estar obsoletos. Consulte la documentación más reciente.

Disponible con una licencia de Spatial Analyst.

  • Resumen
  • Debate
  • Sintaxis
  • Propiedades
  • Muestra de código

Resumen

Defines a time period within one day to perform solar caclulations. A Julian Day, start time, and end time are specified.

Debate

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

When the startTime and the endTime are the same, instantaneous insolation will be calculated. When the startTime is before sunrise and the endTime is after sunset, insolation will be calculated for the whole day.

For within-day time configurations, the maximum range of time is one day (24 hours). Calculations will not be performed across days (for instance, from 12:00 p.m. to 12:00 p.m. the next day). The startTime must be less than the endTime.

For within-day time configurations, the start and end times are displayed as solar time (units: decimal hours). When converting local standard time to solar time, the program accounts for equation of time.

Sintaxis

 TimeWithinDay ({day}, {startTime}, {endTime})
ParámetroExplicaciónTipo de datos
day

The day is a Julian day value from 1 to 365.

(El valor predeterminado es 183 of the Julian calendar)

Long
startTime

The startTime is the first hour to be used in the analysis. The hour is represented with a number from 0 to 24.

(El valor predeterminado es 0)

Double
endTime

The endTime is the last hour to be used in the analysis. The hour is represented with a number from 0 to 24.

(El valor predeterminado es 24)

Double

Propiedades

PropiedadExplicaciónTipo de datos
day
(Lectura y escritura)

The day is a Julian day value from 1 to 365.

Long
startTime
(Lectura y escritura)

The startTime is the first hour to be used in the analysis. The hour is represented with a number from 0 to 24.

Double
endTime
(Lectura y escritura)

The endTime is the last hour to be used in the analysis. The hour is represented with a number from 0 to 24.

Double

Muestra de código

TimeWithinDay example 1 (Python window)

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

import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "C:/sapyexamples/data"
myTimeWithinDay = TimeWithinDay(264, 11, 14)
outAreaSolar = AreaSolarRadiation("solar_dem", "", "", myTimeWithinDay)
outAreaSolar.save("C:/sapyexamples/output/areasolartwd")
TimeWithinDay example 2 (stand-alone script)

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

# Name: TimeWithinDay_Ex_02.py
# Description: Execute AreaSolarRadiation using the TimeWithinDay object
# Requirements: Spatial Analyst Extension

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

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

# Set local variables
inRaster = "solar_dem"

# Create TimeWithinDay Object
day = 100
startTime = 0 
endTime = 24
myTimeWithinDay = TimeWithinDay(day, startTime, endTime)

# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("Spatial")

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

# Save the output 
outAreaSolar.save("C:/sapyexamples/output/areasolartwd2")

Temas relacionados

  • An overview of Spatial Analyst classes
  • An overview of the time classes
  • Comprender el análisis de radiación solar
  • Cómo se calcula la radiación solar

ArcGIS Desktop

  • Inicio
  • ArcGIS Pro
  • ArcMap
  • Documentación
  • Soporte

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS Platform
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog interno
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Copyright © 2018 Esri. | Privacidad | Legal