- Posts: 4
Hourly Shading file for computation of production numbers(KWh)
- Muhammad Farhan
- Topic Author
Less
More
18 Dec 2015 04:29 #3979
by Muhammad Farhan
Hourly Shading file for computation of production numbers(KWh) was created by Muhammad Farhan
I am using the SAM SDK for finding the production numbers using our own calculated Solar Access. Then problem that i am facing right now is that the production number are different on SAM tool and SAM SDK using the same weather file and same data. I would like to know that the way your are following for the computation of solar Access (both monthly and Annually) using the hourly based shade CSV. Because when i am putting my solar Access in your SDK then the results are pretty close when the solar access is greater then 90% and the difference between production numbers increases as solar access < 90% using the SAM SDK and SAM tool.
Is there any way to put our own hourly based shade CSV file in your SDK? as we do in SAM tool.
or any API for this!
Best Regards,
Farhan
Is there any way to put our own hourly based shade CSV file in your SDK? as we do in SAM tool.
or any API for this!
Best Regards,
Farhan
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
18 Dec 2015 10:27 #3980
by pgilman
Replied by pgilman on topic Hourly Shading file for computation of production numbers(KWh)
Dear Farhan,
First, please make sure that you are using the same version of SSC in your API calls that SAM is using. To see the SSC version number for SAM, open the Help browser and click About.
It is possible that the inputs in SAM are not identical to the inputs in your code. You can press the Shift-F5 key in SAM to generate an LK script that lists all of the SSC input variables and their values.
You can use the
variable to read your own shading data. For example, if you have an 8760 column of beam shading losses stored in a variable called
for Subarray 2, you would assign it as follows (in LK script):
Similarly, you can assign month-by-hour shading factors to
, and azimuth-by-altitude losses to
. Note that the number suffix to
determines which subarray the shading losses apply to.
Best regards,
Paul.
First, please make sure that you are using the same version of SSC in your API calls that SAM is using. To see the SSC version number for SAM, open the Help browser and click About.
It is possible that the inputs in SAM are not identical to the inputs in your code. You can press the Shift-F5 key in SAM to generate an LK script that lists all of the SSC input variables and their values.
You can use the
Code:
subarray1_shading
Code:
shading_losses
Code:
var( 'subarray2_shading:hourly' , shading_losses )
Similarly, you can assign month-by-hour shading factors to
Code:
subarray1_shading:mxh
Code:
subarray1shading:azal
Code:
subarray
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- Muhammad Farhan
- Topic Author
Less
More
- Posts: 4
20 Dec 2015 23:39 #3981
by Muhammad Farhan
Replied by Muhammad Farhan on topic Hourly Shading file for computation of production numbers(KWh)
thanks Paul for your reply.
I am working on php (ubuntu 64 bit) and i am using the pvwattsv5 module for my project.
I am adding a single line to my code and i have seen no impact on production number after adding or removing this line.
line: "sscphp_data_set_number($dat,"shading:hourly", [ 0, 0, 0, 0, 0, 100, 100, 100, 100, 75, 0, 0,...,75, 100, 100, 0, 0, 0, 0 ]);"
Best Regards,
Farhan
I am working on php (ubuntu 64 bit) and i am using the pvwattsv5 module for my project.
I am adding a single line to my code and i have seen no impact on production number after adding or removing this line.
line: "sscphp_data_set_number($dat,"shading:hourly", [ 0, 0, 0, 0, 0, 100, 100, 100, 100, 75, 0, 0,...,75, 100, 100, 0, 0, 0, 0 ]);"
Best Regards,
Farhan
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
04 Jan 2016 11:11 #3982
by pgilman
Replied by pgilman on topic Hourly Shading file for computation of production numbers(KWh)
Dear Farhan,
Have you been able to change the values of other SSC variables in your PHP script? The
variable is a one-dimensional array of 8760 percentage values, so if you correctly assign the values, you should see a difference in outputs like
and
.
Best regards,
Paul.
Have you been able to change the values of other SSC variables in your PHP script? The
Code:
shading:hourly
Code:
gen
Code:
annual_energy
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
04 Jan 2016 14:57 #3983
by pgilman
Replied by pgilman on topic Hourly Shading file for computation of production numbers(KWh)
Also, because the
variable is an array, you should use the
function instead of the
function to assign it a value.
Best regards,
Paul.
Code:
shading:hourly
Code:
sscphp_data_set_array()
Code:
sscphp_data_set_number()
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- Muhammad Farhan
- Topic Author
Less
More
- Posts: 4
07 Jan 2016 04:52 #3984
by Muhammad Farhan
Replied by Muhammad Farhan on topic Hourly Shading file for computation of production numbers(KWh)
Thank you paul for your reply,
I have already implemented this feature.
I have other questions as well.
Can you give me your email? so that i will discuss it with you.
I have already implemented this feature.
I have other questions as well.
Can you give me your email? so that i will discuss it with you.
Please Log in or Create an account to join the conversation.
Moderators: pgilman