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?