Can the sun position azimuth and elevation be set with Python?

1755
5
Jump to solution
10-05-2016 01:43 AM
BrianMcAuslan
New Contributor III

Title says it all.   Thx

Edit

Note I'm not trying to calculate these values I want to assign them to the city engine environment settings. Idea is to set up a script as below.

assign sun position
set position by bookmark
snapshot
layer off.
layer on
snapshot
etc

set position bookmark
etc

Set new sun position
etc

Cheers

0 Kudos
1 Solution

Accepted Solutions
ThomasFuchs
Esri Regular Contributor

Hello Brian,

Sorry to inform you, that the sun can't be set via python.

The CityEngine team is aware of this missing feature.

I've added your request.

View solution in original post

5 Replies
DanPatterson_Retired
MVP Esteemed Contributor

@nothing builtin but there are tons of libraries

Pysolar: staring directly at the sun since 2007 — Pysolar 0.7 documentation 

sunpos 1.1 : Python Package Index 

astral 0.7.4 : Python Package Index 

I could provide more, but I assume you have ruled out using externals

0 Kudos
BrianMcAuslan
New Contributor III

Hi Dan, thanks for your reply.  I'm not trying to calculate these values I want to assign them to the city engine environment settings.  Idea is to set up a script as below.   

assign sun position

set position by bookmark

snapshot

layer off.

layer on

snapshot

etc

set position bookmark

etc

Set new sun position

etc

Cheers

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

ok... I don't know what CE has for python methods and functions or properties, but certainly not within arcmap and arcpy.  I hate to send you back to troll through the help documentation but... The only mention of 'azimuth' was under 'light' for setting light source... but not direct mention of python

0 Kudos
ThomasFuchs
Esri Regular Contributor

Hello Brian,

Sorry to inform you, that the sun can't be set via python.

The CityEngine team is aware of this missing feature.

I've added your request.

BrianMcAuslan
New Contributor III

Thanks for your replies. 

0 Kudos