Skip to content

Commit 858ff60

Browse files
cmichelenstroferssolsonrpauly18hivanov-nrel
authored
WDRT (#141)
* Working version of Gaussian Copula * Create dedicated function for iso probs and quantiles * Contour plots worsk for single and multiple contours * Gumbel Copula. * Clayton Copula * Rosenblatt Copula * Guass and gumbel general copula * Add support for nonparametric gaussian, clayton, and gumbel copulas * Require statsmodel for nonparametric KDE copulas * Small changes * Fix bug in KDE log transformation * Adding docstrings * All doc strings updated * Add markers option to contours plotting * Add Copula tests comparing to WDRTresults * Fix x1, x2 pts bug in KDE contour, clean up * Example showing the calculation of all copla methods and comparing to WDRT results * Simplifications and lanuguage cleanup * Add statsmodel * Add testing data files * In plot envrionmental contors convert x1,x2 to values if a Series is passed * Docstring typo corrections * Corrected notebook description typos. * module and example for short-term extreme distributions * docstrings for short-term extreme functions * fixes #140 Speedup surface elevation calculation. * correction to surface_elevation * elevation * minor fixes based on review comments * add environmental_contours to init * Remove WDRT functionality * All WDRT contour functionality can be called from one function * Rework tests for new contour functions setup and location * Move all contour example into this file * Update to work with new structure. * Remove all commented out wdrt functions from resource * No changes made. Reverting back. * Have PCA method use general fit. Adds PCAmethod to fit method but can also accept the PCA dictionary. General Docstring Cleanup * Update discussion around the use of the copula method. * Remove copula stand alone notebook * minor formmating changes * Remove test bugs created from merge with origin * Import env contours into resource module and adjust test, examples, ect to function with tthe new structure * Uncommented tests * Remove reference to import the env contours module * fixing minor typo * Move env contours to _file and adjust package to handle new structure * Minor formatting cleanup * Cleanup unsed packages and variables * intial mler upload * formalize functions * add tests and example * sampling rate to averaging period * rename MLER example * working * merging * WDRT functions and examples finalized. Missing tests. * integrate mler into extreme * fixes tests? * fix tests * fix tests * fix full sea state example? * test contour samples * test sample full seastate * random seed * test long term extreme * expand MLER functionality * test short-term extremes * fix mler tests * MLER test error * mler fix 2 * update formats and asserts * further cleanup of countours.py for consistency, typos, and pep8 * run tests? * fix test? * change lists to np.array so they pass the assert statements * clean extreme.py for consistency, pep8 * points_per_interval should be int * typing in examples * full sea state example: make it easier to follow, add more explanation, and use consistent naming * contour example: make it easier to follow, add more explanation, and use consistent naming * Alias ste function and minor formatting. * naming convention * rename example * ste example * allow weights to be np.array * allow weights to be np.ndarray Co-authored-by: ssolson <[email protected]> Co-authored-by: ssolson <[email protected]> Co-authored-by: rpauly18 <[email protected]> Co-authored-by: hivanov-nrel <[email protected]>
1 parent efbc933 commit 858ff60

18 files changed

+221746
-1629
lines changed
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# RAO Surge data generated on 04-Feb-2016 22:15:15
2+
#
3+
# time period Amplitude Phase delay
4+
# (s) (m) (radians)
5+
0.40000000 0.00002386 0.00000000
6+
0.80000000 0.00026496 2.68410034
7+
1.20000000 0.00165594 -2.34224318
8+
1.60000000 0.00909131 -2.15236744
9+
2.00000000 0.03355187 1.41092110
10+
2.40000000 0.09909090 0.06075886
11+
2.80000000 0.24800822 -0.52041815
12+
3.20000000 0.49108314 -0.62057944
13+
3.60000000 0.71348838 -0.46770983
14+
4.00000000 0.84337895 -0.33794350
15+
4.40000000 0.90868073 -0.24012305
16+
4.80000000 0.94305734 -0.17547326
17+
5.20000000 0.96194492 -0.13284215
18+
5.60000000 0.97377511 -0.11084163
19+
6.00000000 0.98125014 -0.08032119
20+
6.40000000 0.98627419 -0.06864131
21+
6.80000000 0.98990614 -0.05326301
22+
7.20000000 0.99250281 -0.04822798
23+
7.60000000 0.99428219 -0.05115129
24+
8.00000000 0.99579295 -0.04254839
25+
8.40000000 0.99688441 -0.03864354
26+
8.80000000 0.99778229 -0.02102519
27+
9.20000000 0.99846373 -0.02380563
28+
9.60000000 0.99899242 -0.02892556
29+
10.00000000 0.99953059 -0.01857264
30+
10.40000000 0.99993188 -0.02726140
31+
10.80000000 1.00046201 -0.01985942
32+
11.20000000 1.00104501 -0.01351512
33+
11.60000000 1.00180675 -0.00820092
34+
12.00000000 1.00291901 -0.02099786
35+
12.40000000 1.00495064 -0.01716817
36+
12.80000000 1.00896684 -0.01362187
37+
13.20000000 1.01653059 -0.01059953
38+
13.60000000 1.02116944 -0.00818712
39+
14.00000000 1.01287262 -0.00606151
40+
14.40000000 1.00619778 -0.00423029
41+
14.80000000 1.00321355 -0.00249704
42+
15.20000000 1.00184689 -0.00103403
43+
15.60000000 1.00115063 0.00032788
44+
16.00000000 1.00076372 -0.01590306
45+
16.40000000 1.00053996 -0.01498581
46+
16.80000000 1.00038702 -0.01393112
47+
17.20000000 1.00029212 -0.01303140
48+
17.60000000 1.00022985 -0.01230423
49+
18.00000000 1.00019028 -0.01158704
50+
18.40000000 1.00016662 -0.01094013
51+
18.80000000 1.00015098 -0.01048945
52+
19.20000000 1.00014922 -0.00974384
53+
19.60000000 1.00015763 -0.00930511
54+
20.00000000 1.00017126 -0.00886050
55+
20.40000000 1.00020041 -0.00831246
56+
20.80000000 1.00025415 -0.00803651
57+
21.20000000 1.00037189 -0.00769186
58+
21.60000000 1.00064125 -0.00738060
59+
22.00000000 1.00131476 -0.00702950
60+
22.40000000 1.00240303 -0.00670698
61+
22.80000000 1.00156788 -0.00645152
62+
23.20000000 1.00067898 -0.00617786
63+
23.60000000 1.00034303 -0.00586380
64+
24.00000000 1.00021601 -0.00577871
65+
24.40000000 1.00016121 -0.00556831
66+
24.80000000 1.00012409 -0.00532226
67+
25.20000000 1.00010683 -0.00511879
68+
25.60000000 1.00009768 -0.00488969
69+
26.00000000 1.00008829 -0.00461447
70+
26.40000000 1.00008451 -0.00463368
71+
26.80000000 1.00008259 -0.00446464
72+
27.20000000 1.00008205 -0.00428314
73+
27.60000000 1.00008375 -0.00412158
74+
28.00000000 1.00008452 -0.00403800
75+
28.40000000 1.00008962 -0.00385612
76+
28.80000000 1.00009119 -0.00380994
77+
29.20000000 1.00009879 -0.00366848
78+
29.60000000 1.00010804 -0.00360539
79+
30.00000000 1.00012697 -0.00349532
80+
30.40000000 1.00016930 -0.00337670
81+
30.80000000 1.00026247 -0.00319450
82+
31.20000000 1.00052303 -0.00317612
83+
31.60000000 1.00061720 -0.00303459
84+
32.00000000 1.00031528 -0.00297870
85+
32.40000000 1.00017366 -0.00292925
86+
32.80000000 1.00012742 -0.00288703
87+
33.20000000 1.00011022 -0.00273113
88+
33.60000000 1.00010135 -0.00265508
89+
34.00000000 1.00009356 -0.00270413
90+
34.40000000 1.00009372 -0.00258101
91+
34.80000000 1.00009211 -0.00252452
92+
35.20000000 1.00008852 -0.00230070
93+
35.60000000 1.00008884 -0.00238035
94+
36.00000000 1.00008814 -0.00228654
95+
36.40000000 1.00008723 -0.00229220
96+
36.80000000 1.00009053 -0.00225419
97+
37.20000000 1.00009270 -0.00213258
98+
37.60000000 1.00009054 -0.00212614
99+
38.00000000 1.00009305 -0.00214515
100+
38.40000000 1.00009762 -0.00202692
101+
38.80000000 1.00010307 -0.00195831
102+
39.20000000 1.00010836 -0.00192659
103+
39.60000000 1.00012739 -0.00180835
104+
40.00000000 1.00018348 -0.00186429
105+
40.40000000 1.00028824 -0.00184970
106+
40.80000000 1.00025011 -0.00180841
107+
41.20000000 1.00015702 -0.00186750
108+
41.60000000 1.00012341 -0.00176442
109+
42.00000000 1.00010909 -0.00167991
110+
42.40000000 1.00009940 -0.00162840
111+
42.80000000 1.00009672 -0.00160527
112+
43.20000000 1.00009651 -0.00156191
113+
43.60000000 1.00009692 -0.00153973
114+
44.00000000 1.00009465 -0.00155022
115+
44.40000000 1.00009318 -0.00156577
116+
44.80000000 1.00009461 -0.00155976
117+
45.20000000 1.00009555 -0.00138546
118+
45.60000000 1.00009619 -0.00143010
119+
46.00000000 1.00009558 -0.00141165
120+
46.40000000 1.00009515 -0.00138765
121+
46.80000000 1.00009665 -0.00132575
122+
47.20000000 1.00009758 -0.00132318
123+
47.60000000 1.00010235 -0.00134466
124+
48.00000000 1.00010262 -0.00126602
125+
48.40000000 1.00010405 -0.00125664
126+
48.80000000 1.00011375 -0.00120398
127+
49.20000000 1.00014316 -0.00120255
128+
49.60000000 1.00019025 -0.00123614
129+
50.00000000 1.00016723 -0.00122972
130+
50.40000000 1.00012634 -0.00118289
131+
50.80000000 1.00010644 -0.00107789
132+
51.20000000 1.00010119 -0.00107387
133+
51.60000000 1.00009983 -0.00110043
134+
52.00000000 1.00010051 -0.00111727
135+
52.40000000 1.00010048 -0.00109102
136+
52.80000000 1.00010071 -0.00103613
137+
53.20000000 1.00009956 -0.00104076
138+
53.60000000 1.00009917 -0.00100802
139+
54.00000000 1.00009696 -0.00101271
140+
54.40000000 1.00009715 -0.00099418
141+
54.80000000 1.00009998 -0.00097447
142+
55.20000000 1.00010112 -0.00093250
143+
55.60000000 1.00010406 -0.00095739
144+
56.00000000 1.00010243 -0.00090654
145+
56.40000000 1.00010049 -0.00089560
146+
56.80000000 1.00010096 -0.00084583
147+
57.20000000 1.00010191 -0.00078631
148+
57.60000000 1.00010362 -0.00085680
149+
58.00000000 1.00011061 -0.00080654
150+
58.40000000 1.00012800 -0.00089564
151+
58.80000000 1.00014748 -0.00053341
152+
59.20000000 1.00012936 -0.00084292
153+
59.60000000 1.00010852 -0.00083235
154+
60.00000000 1.00010544 -0.00078326
155+
60.40000000 1.00010257 -0.00076464
156+
60.80000000 1.00010084 -0.00081699
157+
61.20000000 1.00010184 -0.00075178
158+
61.60000000 1.00010230 -0.00077119
159+
62.00000000 1.00010130 -0.00071742
160+
62.40000000 1.00010325 -0.00082120
161+
62.80000000 1.00010313 -0.00074586
162+
63.20000000 1.00010017 -0.00074095
163+
63.60000000 1.00010184 -0.00063936
164+
64.00000000 1.00010071 -0.00066572

0 commit comments

Comments
 (0)