First time here? Check our help page!
4

weatherFile.site.climateZones issues

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.

__AmirRoth__'s avatar
4.4k
__AmirRoth__
asked 2016-07-10 10:28:11 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

4

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 :)

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2016-07-11 05:29:20 -0500, updated 2016-07-11 05:40:39 -0500
edit flag offensive 0 remove flag delete link

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
add a comment see more comments