-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
55 lines (44 loc) · 2.33 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from helpers.basic_figures import *
from datetime import datetime
from helpers.first_sanity_checks import *
import pandas as pd
if __name__ == '__main__':
begin_date = datetime(2020, 1, 1, 00, 00)
end_date = datetime(2020, 12, 30, 23, 50)
s_begin_date = datetime(2021, 1, 1, 00, 00)
s_end_date = datetime(2021, 1, 7, 23, 50)
hcnt = 100
# 1 week data
# winddir_abs_comparison(begin_date, end_date)
# power_curve(begin_date, end_date, 300)
# winddir_relative_avg_for_all_turbine(begin_date, end_date, 300)
# winddir_relative_avg_hours(begin_date, end_date)
# winddir_relative_avg(begin_date,end_date, 300)
# winddir_abs_vs_windspeed(begin_date, end_date)
# hcnt_avg_run(begin_date, end_date, hcnt)
# turbine_yaw_avg_comprasion(begin_date, end_date)
# all_turbines_yaw_misaligment(begin_date, end_date)
# speed_to_relative_avg(begin_date, end_date, hcnt)
# turbine_yaw_avg_comprasion(begin_date, end_date)
# rpm_yaw_bins(begin_date, end_date, s_begin_date, s_end_date)
# yaw_misaligment_min_max(begin_date, end_date)
# below from here
# all_turbines_yaw_misaligment(begin_date, end_date)
#speed_to_relative_avg(begin_date, end_date, hcnt)
# df = pd.DataFrame(columns=['PCTimeStamp', 'Grd_Prod_Pwr_Avg', 'Amb_WindSpeed_Avg', 'HCnt_Avg_Run', 'Rtr_RPM_Avg', 'turbine_no'])
# df = power_curve_sanity_check(begin_date,end_date, hcnt, '_01')
# for i in range(2, 17):
# if i < 10:
# df = pd.concat((df, power_curve_sanity_check(begin_date,end_date, hcnt, ('_0' + str(i)))), axis=0)
# else:
# df = pd.concat((df, power_curve_sanity_check(begin_date,end_date, hcnt, ('_' + str(i)))), axis=0)
# print(str(i) + " finished")
# rpm_yaw_misalignment(begin_date, end_date, df)
run(begin_date, end_date,"speed_to_relative_avg", "power_curve_sanity_check", "rpm_yaw_misalignment",
"nac_temp_avg", "all_turbines_yaw_misaligment", hcnt=300)
run(begin_date, end_date, "all_turbines_yaw_misaligment", hcnt=300)
#run(begin_date, end_date, "all_turbines_yaw_misaligment", hcnt=300)
#run(begin_date, end_date, "nac_temp_avg", hcnt=300)
#run(begin_date, end_date, "speed_to_relative_avg", hcnt=300)
#run(begin_date, end_date, "power_curve_sanity_check", hcnt=300)
#rpm_yaw_misalignment(begin_date, end_date)