-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetupDB.sql
More file actions
164 lines (146 loc) · 5.57 KB
/
Copy pathsetupDB.sql
File metadata and controls
164 lines (146 loc) · 5.57 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
-- Copyright 2025 Christopher Rura
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
-- http://www.apache.org/licenses/LICENSE-2.0
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
CREATE TABLE IF NOT EXISTS qraft_input_variables (
qraft_parameters_id INTEGER PRIMARY KEY,
d_phi REAL,
d_rho REAL,
XYCenter_x REAL,
XYCenter_y REAL,
rot_angle REAL,
phi_shift REAL,
smooth_xy INT,
smooth_phi_rho_lower INT,
smooth_phi_rho_upper INT,
detr_phi INT,
rho_range_lower REAL,
rho_range_upper REAL,
n_rho INT,
p_range_lower REAL,
p_range_upper REAL,
n_p INT,
n_nodes_min INT,
intensity_removal_coefficient REAL,
unique(d_phi, d_rho, XYCenter_x, XYCenter_y, rot_angle, phi_shift, smooth_xy, smooth_phi_rho_lower, smooth_phi_rho_upper, detr_phi, rho_range_lower, rho_range_upper, n_rho, p_range_lower, p_range_upper, n_p, n_nodes_min, intensity_removal_coefficient));
CREATE TABLE IF NOT EXISTS forward_input_variables (
forward_parameters_id INTEGER PRIMARY KEY,
crln_obs,
crlt_obs,
occlt,
r_sun_range,
unique(crln_obs, crlt_obs, occlt, r_sun_range));
DROP TABLE IF EXISTS central_tendency_stats_cor1_new;
CREATE TABLE IF NOT EXISTS central_tendency_stats_cor1_new(
id INTEGER PRIMARY KEY,
data_type,
data_source,
date,
mean,
median,
standard_deviation,
confidence_interval,
n,
Gaussian_JSD,
Gaussian_KLD,
kurtosis,
skewness,
qraft_parameters_id INTEGER,
forward_input_data_id INTEGER,
FOREIGN KEY(qraft_parameters_id) REFERENCES qraft_input_variables(qraft_parameters_id),
FOREIGN KEY(forward_input_data_id) REFERENCES forward_input_variables(forward_input_data_id));
CREATE TABLE IF NOT EXISTS central_tendency_stats_cor1_all(
id INTEGER PRIMARY KEY,
data_type,
data_source,
date,
mean,
median,
standard_deviation,
confidence_interval,
n,
Gaussian_JSD,
Gaussian_KLD,
kurtosis,
skewness,
qraft_parameters_id INTEGER,
forward_input_data_id INTEGER,
FOREIGN KEY(qraft_parameters_id) REFERENCES qraft_input_variables(qraft_parameters_id),
FOREIGN KEY(forward_input_data_id) REFERENCES forward_input_variables(forward_input_data_id),
unique(data_type, data_source, date, mean, median, confidence_interval, n, qraft_parameters_id, forward_input_data_id));
DROP TABLE IF EXISTS central_tendency_stats_kcor_new;
CREATE TABLE IF NOT EXISTS central_tendency_stats_kcor_new(
id INTEGER PRIMARY KEY,
data_type,
data_source,
date,
mean,
median,
standard_deviation,
confidence_interval,
n,
Gaussian_JSD,
Gaussian_KLD,
kurtosis,
skewness,
qraft_parameters_id INTEGER,
forward_input_data_id INTEGER,
FOREIGN KEY(qraft_parameters_id) REFERENCES qraft_input_variables(qraft_parameters_id),
FOREIGN KEY(forward_input_data_id) REFERENCES forward_input_variables(forward_input_data_id));
CREATE TABLE IF NOT EXISTS central_tendency_stats_kcor_all(
id INTEGER PRIMARY KEY,
data_type,
data_source,
date,
mean,
median,
standard_deviation,
confidence_interval,
n,
Gaussian_JSD,
Gaussian_KLD,
kurtosis,
skewness,
qraft_parameters_id INTEGER,
forward_input_data_id INTEGER,
FOREIGN KEY(qraft_parameters_id) REFERENCES qraft_input_variables(qraft_parameters_id),
FOREIGN KEY(forward_input_data_id) REFERENCES forward_input_variables(forward_input_data_id),
unique(data_type, data_source, date, mean, median, confidence_interval, n, qraft_parameters_id, forward_input_data_id));
DROP TABLE IF EXISTS tukey_hsd_stats_cor1;
CREATE TABLE IF NOT EXISTS tukey_hsd_stats_cor1(
id INTEGER PRIMARY KEY,
group1,
group2,
mean_diff,
p_adj,
lower_bound_ci,
upper_bound_ci,
reject boolean,
KLD,
JSD,
group_1_central_tendency_stats_cor1_id INTEGER,
group_2_central_tendency_stats_cor1_id INTEGER,
FOREIGN KEY(group_1_central_tendency_stats_cor1_id) REFERENCES central_tendency_stats_cor1_new(id),
FOREIGN KEY(group_2_central_tendency_stats_cor1_id) REFERENCES central_tendency_stats_cor1_new(id));
DROP TABLE IF EXISTS tukey_hsd_stats_kcor;
CREATE TABLE IF NOT EXISTS tukey_hsd_stats_kcor(
id INTEGER PRIMARY KEY,
group1,
group2,
mean_diff,
p_adj,
lower_bound_ci,
upper_bound_ci,
reject boolean,
KLD,
JSD,
group_1_central_tendency_stats_kcor_id INTEGER,
group_2_central_tendency_stats_kcor_id INTEGER,
FOREIGN KEY(group_1_central_tendency_stats_kcor_id) REFERENCES central_tendency_stats_kcor_new(id),
FOREIGN KEY(group_2_central_tendency_stats_kcor_id) REFERENCES central_tendency_stats_kcor_new(id));