- Posts: 13
Change Module Type
- Tom Hardy
- Topic Author
Less
More
05 Jan 2017 11:06 #5063
by Tom Hardy
Change Module Type was created by Tom Hardy
According to the manual in PVWatts V5, there are three options for module type: 1) Standard; 2) Premium; and 3) Thin film
If in this example ( nsrdb.nrel.gov/api-instructions ) we would like to change the module type from Standard to Premium, the manual says to write it like:
#ssc.data_set_number(dat, 'module_type', Premium)
Yet, when I add the former line when specifying the system configuration, the programs gives an error.
Thus, what should be the right way to specify a module type other than Standard?
If in this example ( nsrdb.nrel.gov/api-instructions ) we would like to change the module type from Standard to Premium, the manual says to write it like:
#ssc.data_set_number(dat, 'module_type', Premium)
Yet, when I add the former line when specifying the system configuration, the programs gives an error.
Thus, what should be the right way to specify a module type other than Standard?
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
05 Jan 2017 11:21 #5064
by pgilman
Replied by pgilman on topic Change Module Type
Dear Tom,
The
input variable for the pvwattsv5 module is a number, so you should assign it a value as follows (these examples are in Python, where the hash symbol (#) indicates a comment):
Best regards,
Paul.
The
Code:
module_type
Code:
# Standard (UPDATED 1/11/2017)
ssc.data_set_number(dat, 'module_type', 0)
Code:
# Premium (UPDATED 1/11/2017)
ssc.data_set_number(dat, 'module_type', 1)
Code:
# Thin film
ssc.data_set_number(dat, 'module_type', 2)
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- Tom Hardy
- Topic Author
Less
More
- Posts: 13
11 Jan 2017 01:28 #5065
by Tom Hardy
Replied by Tom Hardy on topic Change Module Type
Dear Paul,
I believe that for pvwattsv5 the module type values are, instead, as follows:
# Standard
ssc.data_set_number(dat, 'module_type', 0)
# Premium
ssc.data_set_number(dat, 'module_type', 1)
# Thin film
ssc.data_set_number(dat, 'module_type', 2)
Regards
I believe that for pvwattsv5 the module type values are, instead, as follows:
# Standard
ssc.data_set_number(dat, 'module_type', 0)
# Premium
ssc.data_set_number(dat, 'module_type', 1)
# Thin film
ssc.data_set_number(dat, 'module_type', 2)
Regards
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
11 Jan 2017 12:41 #5066
by pgilman
Replied by pgilman on topic Change Module Type
Hi Tom,
Yes, you are correct. The order in the array is the same as the order in the SAM user interface.
Sorry for my mistake.
Best regards,
Paul.
Yes, you are correct. The order in the array is the same as the order in the SAM user interface.
Sorry for my mistake.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman