diff --git a/wetb/prepost/windIO.py b/wetb/prepost/windIO.py index 5bdcb5e0f90603e81f1a51e5981793883be9387e..6ba34a61d5f76d321cca54a5e30f6f41094473d3 100755 --- a/wetb/prepost/windIO.py +++ b/wetb/prepost/windIO.py @@ -1166,12 +1166,19 @@ class LoadResults(ReadHawc2): # ----------------------------------------------------------------- # WIND SPEED # WSP gl. coo.,Vx + # Free wind speed Vx, gl. coo, of gl. pos 0.00, 0.00, -6.00 LABEL elif self.ch_details[ch, 0].startswith('WSP gl.'): units = self.ch_details[ch, 1] direction = self.ch_details[ch, 0].split(',')[1] tmp = self.ch_details[ch, 2].split('pos')[1] x, y, z = tmp.split(',') x, y, z = x.strip(), y.strip(), z.strip() + tmp = z.split(' ') + sensortag = '' + if len(tmp) == 2: + z, sensortag = tmp + elif len(tmp) == 1: + z = tmp[0] # and tag it tag = 'windspeed-global-%s-%s-%s-%s' % (direction, x, y, z) @@ -1181,6 +1188,7 @@ class LoadResults(ReadHawc2): channelinfo['pos'] = (x, y, z) channelinfo['units'] = units channelinfo['chi'] = ch + channelinfo['sensortag'] = sensortag # WIND SPEED AT BLADE # 0: WSP Vx, glco, R= 61.5