Changing TI of predefined Sites
I am trying to change the defined TI
in Hornsrev1
site which is a predefined wf in pywake. the default value is 0.1
while I want to change it using the **NMT **method. so I need to define new local TI for each ws
since TI will change by ws
. but the problem is that length of the array for predefined TI is 1 while if I want to use NMT and change TI, I need to change its length to 22 since WS is in the range [4,26] so I get an error. now I want to know how can I extend its length or add new TI values to predefined the site instead of defining it from scratch.
the following code is okay since I only changed TI for length=1 while 2nd one gives an error since length is larger than 1.
from py_wake.examples.data.hornsrev1 import Hornsrev1Site
from py_wake.examples.data.iea37 import IEA37Site
from py_wake.examples.data.ParqueFicticio import ParqueFicticioSite
import numpy as np
import matplotlib.pyplot as plt
site=Hornsrev1Site()
site.ds['TI']=0.4
from py_wake.examples.data.hornsrev1 import Hornsrev1Site
from py_wake.examples.data.iea37 import IEA37Site
from py_wake.examples.data.ParqueFicticio import ParqueFicticioSite
import numpy as np
import matplotlib.pyplot as plt
site=Hornsrev1Site()
site.ds['TI']=np.arange(6)