import arcpy import ephem julian_day = 165 # run solar calculation for all sites on this day; defaults used here arcpy.PointsSolarRadiation("elevation", "my_sites", "output_global_radiation", "", 35, 200, arcpy.sa.TimeWithinDay(julian_day, 0, 24)) # figure out sunrise and sunset. if the points are close together, do this # once for all sites, if they're geographically spread over a large area, you'll need # to make these calculations for each site. obs = ephem.Observer() obs.lat = ' 34' # obtained from my_sites obs.long = '-120.0' # obtained from my_sites obs.elev = 15 # extract from elevation raster at site location sunrise = obs.previous_rising(ephem.Sun()) # sunrise noon = obs.next_transit(ephem.Sun(), start=sunrise) # solar noon sunset = obs.next_setting(ephem.Sun()) # sunset # then, map those times to the T0...Tn time steps, which are by default in half-hour intervals. # output this result to a CSV or the like.
arcpy.PointsSolarRadiation("elevation", "my_sites",
arcpy.sa.PointsSolarRadiation("elevation", "my_sites",
Hi Shaun,Thanx for this great post (+1 for that). A small correction; the 'PointsSolarRadiation' is part of the sa module. So in the code change the line:arcpy.PointsSolarRadiation("elevation", "my_sites",for this:arcpy.sa.PointsSolarRadiation("elevation", "my_sites",Kind regards,Xander
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.