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

Export Variable to CSV measure - year error

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

Yael's avatar

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

Comments

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

Avi's avatar Avi  ( 2017-11-26 10:03:38 -0500 )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's avatar Yael  ( 2017-11-27 05:19:47 -0500 )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's avatar Avi  ( 2017-11-27 06:03:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

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

Avi's avatar

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

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 == OpenStudio::EnvironmentType.new("WeatherRunPeriod")
      ann_env_pd = env_pd
      break
    end
  end
end

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
1999,1,1,1,60,2520______________*_____________*_*___*_*_*,7.1,6.5,96,101880,9999,9999,298,0,0,0,

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

Comments

Thank you very much!

Yael's avatar Yael  ( 2017-11-27 09:46:05 -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: 2017-11-26 03:03:49 -0500

Seen: 237 times

Last updated: Nov 27 '17