- Posts: 8
Time Zones to adjust for hourly weather data
- mikeroberts
- Topic Author
Less
More
17 Sep 2017 22:26 #5724
by mikeroberts
Time Zones to adjust for hourly weather data was created by mikeroberts
Hi Paul,
I'm creating real year weather files to use for modelling PV systems at a number of sites in Australia. I'm using hourly satellite irradiance data from the Bureau of Meteorology, along with hourly temp and windspeed from BOM Automatic Weather Stations.
I'm using the SAM SDK to calculate DHI for the weather file, but am having some difficulty trying to use timezones to correct for the fact that the irradiance data is recorded at a number of minutes past the hour.
The Satellite data gives GHI and DNI, tagged with the hour (hh:00) but the actual time the reading was taken varies with latitude. As an example, I have a site where the readings are taken 49 minutes after the hour.
I am using the SAM SDK to calculate DHI by supplying the GHI and DNI data to the
module, called from within python, with
set to 1 and using the Perez sky model. As I have
and
set to zero, the
returned should give me DHI.
The timezone here is UTC + 10.
My understanding is that if in the absence of minute data (or if the minute column is set to zero) SAM would assume the GHI and DNI readings I am sending are taken at 30 minutes past the hour. In order to correct this,I am adjusting the timezone
, but am not sure what value to use. I have tried
(49 minutes is 0.82 of an hour) and
(19 minutes or 0.32 past the half-hour).
Both are giving strange results, in particular a bad fit between DHI and GHI on very cloudy days and a dip and spike in DHI towards the end of the day. In fact, for these days, I get more 'normal' looking results using
or thereabouts, but I don't understand why. I suspect I'm missing something obvious.
I've attached a few files with different values for tz.
Is this approach of shifting the timezone the correct one? And if so, what value should I be using?
Thanks for your help.
I'm creating real year weather files to use for modelling PV systems at a number of sites in Australia. I'm using hourly satellite irradiance data from the Bureau of Meteorology, along with hourly temp and windspeed from BOM Automatic Weather Stations.
I'm using the SAM SDK to calculate DHI for the weather file, but am having some difficulty trying to use timezones to correct for the fact that the irradiance data is recorded at a number of minutes past the hour.
The Satellite data gives GHI and DNI, tagged with the hour (hh:00) but the actual time the reading was taken varies with latitude. As an example, I have a site where the readings are taken 49 minutes after the hour.
I am using the SAM SDK to calculate DHI by supplying the GHI and DNI data to the
Code:
irradproc
Code:
irrad_mode
Code:
tilt
Code:
azimuth
Code:
poa_skydiff
The timezone here is UTC + 10.
My understanding is that if in the absence of minute data (or if the minute column is set to zero) SAM would assume the GHI and DNI readings I am sending are taken at 30 minutes past the hour. In order to correct this,I am adjusting the timezone
Code:
tz
Code:
tz = 10.82
Code:
tz = 10.32
Both are giving strange results, in particular a bad fit between DHI and GHI on very cloudy days and a dip and spike in DHI towards the end of the day. In fact, for these days, I get more 'normal' looking results using
Code:
tz = 9.3
I've attached a few files with different values for tz.
Is this approach of shifting the timezone the correct one? And if so, what value should I be using?
Thanks for your help.
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5423
18 Sep 2017 16:44 #5725
by pgilman
Replied by pgilman on topic Time Zones to adjust for hourly weather data
Hi Mike,
Have you tried adding a minute column to the data? You could set its value for all hours to either 19 or 49 minutes. If you did that, you could keep the correct time zone, and then the irradiance data would be calculated using sun angles for the correct minute of the hour.
Best regards,
Paul.
Have you tried adding a minute column to the data? You could set its value for all hours to either 19 or 49 minutes. If you did that, you could keep the correct time zone, and then the irradiance data would be calculated using sun angles for the correct minute of the hour.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- mikeroberts
- Topic Author
Less
More
- Posts: 8
19 Sep 2017 22:42 #5726
by mikeroberts
Replied by mikeroberts on topic Time Zones to adjust for hourly weather data
Thanks Paul.
Yes, using minutes set to 49 seems to work.
I'm not sure why i didn't try this myself instead of doing a workaround. (Doh!)
But, out of curiosity, I'm interested to know why the work around didn't work.... i.e. why is 00:49 with TZ=10, different to 00:00 with TZ=10.83 ??
Yes, using minutes set to 49 seems to work.
I'm not sure why i didn't try this myself instead of doing a workaround. (Doh!)
But, out of curiosity, I'm interested to know why the work around didn't work.... i.e. why is 00:49 with TZ=10, different to 00:00 with TZ=10.83 ??
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5423
20 Sep 2017 14:45 #5727
by pgilman
Replied by pgilman on topic Time Zones to adjust for hourly weather data
Hi Mike,
I'd have to look more carefully at this to answer your question, but now that SAM is open source, I can point you to the relevant code. SAM's Detailed Photovoltaic model uses the sunpos() function in lib_irradproc.cpp to calculate the sun position. You can see how it uses the time zone in those equations by searching the following file for "tz" -- for example see Line 152:
github.com/NREL/ssc/blob/develop/shared/lib_irradproc.cpp
Best regards,
Paul.
I'd have to look more carefully at this to answer your question, but now that SAM is open source, I can point you to the relevant code. SAM's Detailed Photovoltaic model uses the sunpos() function in lib_irradproc.cpp to calculate the sun position. You can see how it uses the time zone in those equations by searching the following file for "tz" -- for example see Line 152:
github.com/NREL/ssc/blob/develop/shared/lib_irradproc.cpp
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- deepblue
Less
More
- Posts: 1
16 Jan 2018 22:54 #5728
by deepblue
Replied by deepblue on topic Time Zones to adjust for hourly weather data
Hi Mike,
I'm also interested in using SAM to model the PV systems around Australia; can you describe your method to import the data published by the Bureau of Meteorology into SAM?
I'm still learning how to create the right weather files for SAM.
Thanks!
I'm also interested in using SAM to model the PV systems around Australia; can you describe your method to import the data published by the Bureau of Meteorology into SAM?
I'm still learning how to create the right weather files for SAM.
Thanks!
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5423
17 Jan 2018 09:34 #5729
by pgilman
Replied by pgilman on topic Time Zones to adjust for hourly weather data
Hello,
The new PVGIS Version 5 website offers data for most of the world:
re.jrc.ec.europa.eu/pvg_tools/en/tools.html#TMY
You can download TMY files in EPW format to use with SAM. We are working to integrate this into SAM, so stay tuned for that in a future version.
Also, please see the Weather Data page for a list of other sources of data:
sam.nrel.gov/weather
Best regards,
Paul.
The new PVGIS Version 5 website offers data for most of the world:
re.jrc.ec.europa.eu/pvg_tools/en/tools.html#TMY
You can download TMY files in EPW format to use with SAM. We are working to integrate this into SAM, so stay tuned for that in a future version.
Also, please see the Weather Data page for a list of other sources of data:
sam.nrel.gov/weather
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman