We will be performing a major infrastructure and web site ugprades on Friday, September 27th 8:00 am - 5:00 pm MST (UTC -7).

The website will be down during that time.

VBA get time zone from weather file

  • SAWallace
  • Topic Author
More
22 Jun 2020 14:47 #8335 by SAWallace
VBA get time zone from weather file was created by SAWallace
Having retrieved a 'p_data' object from a weather file, I get an invalid number instead of an integer like -7 or -8 when I use the code:

sscvb_data_get_number p_data, "ts_shift_hours", dTimeZoneOffset ' Get UTC time zone offset in hours

In VBA's Immediate window:

?dTimeZoneOffset
 1.06387313834624E-311 

Can someone tell me where I have erred?

Please Log in or Create an account to join the conversation.

  • pgilman
More
22 Jun 2020 16:21 #8337 by pgilman
Replied by pgilman on topic VBA get time zone from weather file
Hi Steven,

The variable ts_shift_hours is an output of the pvsamv1, pvwattsv5, pvwattsv7, and swh compute modules, so you should run one of those modules before attempting to read the variable's value.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum