Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
4

weatherFile.site.climateZones issues

asked 2016-07-10 10:28:11 -0500

I am trying to map ASHRAE climate zones to BuildingAmerica climate zones in a reporting measure. I was thinking of doing this using:

wf = model.weatherFile.get
site = wf.site.get
czs = site.climateZones.get
cz0 = csz.getClimateZone(0)
czval = cz0.value

Except czval always comes up "". Other cz0 fields like year and document are fine. Any ideas? For the time being, I am resorting to substring searches in the weather file path string.

Related question: why does site.climateZones consistently have two entries? Not really a problem, just strange.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2016-07-11 05:29:20 -0500

updated 2016-07-11 05:40:39 -0500

site.climateZoneshas two entries because there's the ASHRAE and the CEC Climate zone (see image)

Your czval ends up being empty because this has actually nothing to do with the weather file itself, these are set by the user (and you probably haven't done it): they are the "Measure Tags" you find on the "Site" page of OpenStudio:

image description

Source: ClimateZones.hpp. There's a todo that you could tackle :)

edit flag offensive delete link more

Comments

I guess that's what I get for only working via the SDK. Thanks.

__AmirRoth__'s avatar __AmirRoth__  ( 2016-07-11 11:23:52 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2016-07-10 10:28:11 -0500

Seen: 143 times

Last updated: Jul 11 '16