- Posts: 13
Tilt equal to Latitude
- Tom Hardy
- Topic Author
Less
More
05 Jan 2017 11:18 #5067
by Tom Hardy
Tilt equal to Latitude was created by Tom Hardy
Instead of the per default way of specifying the value of the tilt for a certain location as in
nsrdb.nrel.gov/api-instructions
:
# Set tilt of system in degrees
ssc.data_set_number(dat, 'tilt', 25)
I would like to automatically assign to the value of the tilt, the value of the latitude for each location. The sam-sdk-2016-3-14-r3 / ssc_guide.pdf (page 39) specifies than, for Python, it should be written like:
ssc.data_set_number(dat, 'tilt_eq_lat', 1)
Yet, when including the former line in this example ( nsrdb.nrel.gov/api-instructions ), it gives an error:
--> df = np.array(ssc.data_get_array(dat, 'gen'))
ValueError: Length of values does not match length of index
Should it be specified, however, in another way?
# Set tilt of system in degrees
ssc.data_set_number(dat, 'tilt', 25)
I would like to automatically assign to the value of the tilt, the value of the latitude for each location. The sam-sdk-2016-3-14-r3 / ssc_guide.pdf (page 39) specifies than, for Python, it should be written like:
ssc.data_set_number(dat, 'tilt_eq_lat', 1)
Yet, when including the former line in this example ( nsrdb.nrel.gov/api-instructions ), it gives an error:
--> df = np.array(ssc.data_get_array(dat, 'gen'))
ValueError: Length of values does not match length of index
Should it be specified, however, in another way?
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
05 Jan 2017 13:11 #5068
by pgilman
Replied by pgilman on topic Tilt equal to Latitude
Dear Tom,
The example in the SSC Guide is based on the pvwattsv1 compute module. For the pvwattsv5 module, the input variable
is not available. You can use the SDKtool Module Browser to explore the variables of the different compute modules.
If you want to set the tilt angle equal to the latitude value from the weather file, you can do that in your Python code by reading the latitude value from the weather file, and then setting the value of the tilt variable to that value.
Best regards,
Paul.
The example in the SSC Guide is based on the pvwattsv1 compute module. For the pvwattsv5 module, the input variable
Code:
tilt_eq_lat
If you want to set the tilt angle equal to the latitude value from the weather file, you can do that in your Python code by reading the latitude value from the weather file, and then setting the value of the tilt variable to that value.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman