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

Export Variable to CSV measure - year error

asked 2017-11-26 03:03:49 -0600

Yael gravatar image

Hi, I've used the measure "Export Variable to CSV" in order to convert 3 variables to CSV files. I ran my simulation for one day only, 16 May 2016. However, the 3 CSV files show me the results for 16 May 2009. How can this be solved? Thanks!

edit retag flag offensive close merge delete


what is set in your Weather file and design days tab. Is it calendar year? Which weather file are you using?

Avi gravatar image Avi  ( 2017-11-26 10:03:38 -0600 )edit

On the weather tab the year is 2016, the epw weather file is taken from Energyplus website ( for Tel-Aviv) and is for year 1999.

Yael gravatar image Yael  ( 2017-11-27 05:19:47 -0600 )edit

I believe that it is a minor bug that does not have much impact on the results. Just make sure that the day of the week is to one you were looking for. Alternatively you could select the day of the week that start the year.

Avi gravatar image Avi  ( 2017-11-27 06:03:30 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-11-27 06:25:10 -0600

Avi gravatar image

updated 2017-11-27 06:45:34 -0600

The Export Variable to CSV" measure uses the weather file run period for the exported time series. Here is the part of the measure that does that:

# get the weather file run period (as opposed to design day run period)
ann_env_pd = nil
sqlFile.availableEnvPeriods.each do |env_pd|
  env_type = sqlFile.environmentType(env_pd)
  if env_type.is_initialized
    if env_type.get =="WeatherRunPeriod")
      ann_env_pd = env_pd

The Tel Aviv weather file though contain a lot of 1999 entries appears to be of 2006. I assume that from the fact that it start on sunday January first as opposed to Friday January first as was in 1999. Here is the part from the EPW file:

DATA PERIODS,1,1,Data,Sunday,1/ 1,12/31

Anyway as I commented above, to my best judgment you can use that data safely as far as you make sure that the day of the week is the one you selected so the right schedules will be chosen for the simulation.

edit flag offensive delete link more


Thank you very much!

Yael gravatar image Yael  ( 2017-11-27 09:46:05 -0600 )edit

Your Answer

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

Add Answer


Question Tools

1 follower


Asked: 2017-11-26 03:03:49 -0600

Seen: 164 times

Last updated: Nov 27 '17