Code underlying the publication: Wind pattern clustering of high frequent field measurements for dynamic wind farm flow control
doi: 10.4121/02cbb452-4900-4c0a-95ae-5bdb5ce42ed7
Code used to generate the wind direction time series used in the publication "Wind pattern clustering of high frequent field measurements for dynamic wind farm flow control" by M. Becker, D. Allaerts and J.W. van Wingerden (TORQUE conference 2024)
The TenneT_BSA_* files convert the raw data from the KNMI [1] into one file with all data at 119m height. This is equivalent to the hub-height of the DTU 10MW reference turbine. Note that there is a channels switch in the data. That's why there are two functions to read in the data.
The output dataset is given in the CombinedDataAt199m.csv file.
The two hpc06_trajectories_* files are then used to segment the data into time series of requested length. This code also contains the filtering and interpolation of the data. The output are two .csv files, one with wind direction trajectories and one with wind speed trajectories.
Two examples are given by WindDirTraj.csv and WindVelTraj.csv - they have been generated with a length of 30 data points and with an offset of 30 data points (no overlapping).
The code of hpc06_cluster_dir* can then be used to cluster the given data.
The remaining files are supplementary to plot data, to calculate distances in radial data etc. including the kmeans360.m function which is the modified function of the Matlab kmeans function which also works for radial data.
[1] https://dataplatform.knmi.nl/dataset/windlidar-nz-wp-platform-1s-1
- 2024-01-23 first online
- 2024-06-13 published, posted
DATA
- 1,760 bytesMD5:
77b028d012ea68a8c967710292d3c9f2
Readme - 635 bytesMD5:
1b2a4071a942140d95c531d9a07f32fc
ave360.m - 181 bytesMD5:
bfaad5237c7eb79d2c29d76981befcfc
calcCounts.m - 187 bytesMD5:
1e98ac1a486678722741e0e289636b2f
calcStd.m - 150 bytesMD5:
bc9dad9d8cb99224a6c5506c6b550361
calcStd360.m - 250,338,695 bytesMD5:
f9306ce07d7d31c4554794cb557beacf
CombinedDataAt119m.csv - 824 bytesMD5:
612f84fb5053330906ebdcfb47bff7a5
cos_sim360.m - 482 bytesMD5:
1cf1e838bcb7a89742a872d9e9288df5
diff360.m - 584 bytesMD5:
0078c4df814cffc98ed4dace8d459d85
diffDeg.m - 470 bytesMD5:
422be0476b81d43f7b2f9dab92209fc4
dist360.m - 749 bytesMD5:
6357fd3538653eb0bdaf352d142b86d7
generateTrajectories.m - 3,270 bytesMD5:
7db0da58276c2066235b8f372ffbb0a5
hpc06_cluster_Dir.m - 5,736 bytesMD5:
cedea6c17d918877d1140c26ffce51cf
hpc06_cluster_Dir_run.m - 5,868 bytesMD5:
9558db845660efc7b5d163cee84413f0
hpc06_trajectories_BSA.m - 1,358 bytesMD5:
22e02c067a2f6c3d5f1127f8ad7456f9
hpc06_trajectories_run_BSA.m - 570 bytesMD5:
eb1cf32f805ad3b6762014e0d5a53580
int360.m - 908 bytesMD5:
f17de2ce5379637567dea202d8c1920c
interp360.m - 36,129 bytesMD5:
eefd6b7c9f623e23e2bc7c15579122b7
kmeans360.m - 5,780 bytesMD5:
1ec6b60c1af2fda045fdbd36034ce5fe
knee_pt.m - 905 bytesMD5:
2ca0df3cc1fef5a5039ebdc5e7b31b55
labelClustersChange.m - 916 bytesMD5:
35a87b56ea9a1e6965c224e65eef483f
labelClustersChangeDeg.m - 1,883 bytesMD5:
24b86d7be5c7d5639832c17272fbf136
labelClustersChangeUV.m - 716 bytesMD5:
d4cd236d0a7bbe394362303993d01b09
plot_DirCluster.m - 2,560 bytesMD5:
612899ccadd251108305d244becc06f1
plot_DirClusterWindRose.m - 2,015 bytesMD5:
fdf0f48aa8c2f4b152dff54d7bb365bc
plot_hist.m - 916 bytesMD5:
88635e7eca9ea0d6a0a99623ee863e84
plot_mostLikelyDirClusters.m - 1,334 bytesMD5:
19f4c14b0cfb5c7830732d32cc7ec544
plot_mostLikelyDirClustersChange.m - 1,650 bytesMD5:
f502a2fc592c78509133c89c6f120da2
plot_someDirClusters.m - 5,362 bytesMD5:
25ad58c7c4ccd070906ec3c4e599152e
probabilityMatrix2Gephi.m - 324 bytesMD5:
6ba65211ff0781be05d42aeb0759ade5
probabilityMatrix_gen.m - 564 bytesMD5:
d773ede3cf7cf954a2bc75aee1cb3a82
probabilityMatrix_sort.m - 852 bytesMD5:
c06f66803bab5c3cdc8e00f049722b27
std360.m - 1,425 bytesMD5:
fb1410ec4ac6b5f39721a78c3249be65
TenneT_BSA_Combine_and_Interpolate_atHH.m - 3,841 bytesMD5:
3f168c5a46e57011c8535d35b7601de7
TenneT_BSA_WindAt119m.m - 3,775 bytesMD5:
a36ee6a3416c8bb8cc0be6eab2d80da1
TenneT_BSA_WindAt119m_2.m - 7,571 bytesMD5:
31e6e755f6ce44ed1005333a94be3dd1
TenneT_processCombinedData_HKN.m - 148 bytesMD5:
24e7b72f7aa1e70e25b99c13bc00efb4
test_diff360.m - 1,210 bytesMD5:
ebcb4d2c85be087e76cc796cc97d3d39
test_kmeans360.m - 255 bytesMD5:
df427434783ff16d42fce7cddbacbe4f
vec2data_sim360.m - 78,926,027 bytesMD5:
477f69d47d9e2ce6a8876c6a2c5e02d3
WindDirTraj.csv - 78,946,140 bytesMD5:
f7148f391ad1b577afd143d7b448299d
WindVelTraj.csv -
download all files (zip)
408,314,725 bytes unzipped