Change Module Type

4 posts / 0 new
Last post
Tom Hardy
Change Module Type

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 (https://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?

Paul Gilman

Dear Tom,

The module_type 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):


# Standard (UPDATED 1/11/2017)
ssc.data_set_number(dat, 'module_type', 0)


# Premium (UPDATED 1/11/2017)
ssc.data_set_number(dat, 'module_type', 1)


# Thin film
ssc.data_set_number(dat, 'module_type', 2)

Best regards,
Paul.

Tom Hardy

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

Paul Gilman

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.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer