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
164
165
166
167
|
-- HelioViewer Database Structure --
-- last update: 06-25-2008 --
--
-- Create schema esahelio_svdb0
--
CREATE DATABASE IF NOT EXISTS esahelio_svdb0;
USE esahelio_svdb0;
--
-- Create tables
--
--
-- Table structure for table `image`
--
CREATE TABLE `esahelio_svdb0`.`image` (
`id` int(10) unsigned NOT NULL auto_increment,
`measurementId` int(10) unsigned NOT NULL default '0',
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
`filetype` varchar(4) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9198 DEFAULT CHARSET=utf8;
--
-- Table structure for table `tile`
--
DROP TABLE IF EXISTS `tile`;
CREATE TABLE IF NOT EXISTS `tile` (
`imageId` int(11) NOT NULL default '0',
`x` int(11) NOT NULL default '0',
`y` int(11) NOT NULL default '0',
`zoom` int(11) NOT NULL default '0',
`url` varchar(255) default NULL,
`tile` blob,
PRIMARY KEY (`imageId`,`x`,`y`,`zoom`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `detector` (
`id` int(10) unsigned NOT NULL auto_increment,
`abbreviation` varchar(4) NOT NULL default '',
`name` varchar(255) default NULL,
`instrumentId` int(10) unsigned NOT NULL default '0',
`imgSunRatio` float(6,3) default NULL,
`lowestRegularZoomLevel` tinyint(4) default NULL,
`opacityGroupId` int(10) unsigned NOT NULL default '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
--
-- Dumping data for table `detector`
--
INSERT INTO `detector` VALUES(11, 'MDI', 'MDI', 8, NULL, NULL, 1);
INSERT INTO `detector` VALUES(12, '0C3', '0C3', 9, NULL, NULL, 3);
INSERT INTO `detector` VALUES(13, '0C2', '0C2', 9, NULL, NULL, 2);
INSERT INTO `detector` VALUES(14, 'EIT', 'EIT', 10, NULL, NULL, 1);
-- --------------------------------------------------------
--
-- Table structure for table `instrument`
--
CREATE TABLE `instrument` (
`id` int(10) unsigned NOT NULL auto_increment,
`abbreviation` varchar(4) NOT NULL default '',
`name` varchar(255) default NULL,
`observatoryId` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
--
-- Dumping data for table `instrument`
--
INSERT INTO `instrument` VALUES(8, 'MDI', 'MDI', 3);
INSERT INTO `instrument` VALUES(9, 'LAS', 'LAS', 3);
INSERT INTO `instrument` VALUES(10, 'EIT', 'EIT', 3);
-- --------------------------------------------------------
--
-- Table structure for table `measurement`
--
CREATE TABLE `measurement` (
`id` int(10) unsigned NOT NULL auto_increment,
`measurementTypeId` int(10) unsigned NOT NULL default '0',
`detectorId` int(10) unsigned NOT NULL default '0',
`name` varchar(255) default NULL,
`abbreviation` varchar(4) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=25 ;
--
-- Dumping data for table `measurement`
--
INSERT INTO `measurement` VALUES(17, 0, 11, 'mag', 'mag');
INSERT INTO `measurement` VALUES(18, 0, 11, 'int', 'int');
INSERT INTO `measurement` VALUES(19, 0, 12, '0WL', '0WL');
INSERT INTO `measurement` VALUES(20, 0, 13, '0WL', '0WL');
INSERT INTO `measurement` VALUES(21, 1, 14, '195', '195');
INSERT INTO `measurement` VALUES(22, 1, 14, '171', '171');
INSERT INTO `measurement` VALUES(23, 1, 14, '304', '304');
INSERT INTO `measurement` VALUES(24, 1, 14, '284', '284');
-- --------------------------------------------------------
--
-- Table structure for table `measurementType`
--
CREATE TABLE `measurementType` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`unit` varchar(255) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `measurementType`
--
INSERT INTO `measurementType` VALUES(0, 'measurement', NULL);
INSERT INTO `measurementType` VALUES(1, 'wavelength', 'nm');
-- --------------------------------------------------------
--
-- Table structure for table `observatory`
--
CREATE TABLE `observatory` (
`id` int(10) unsigned NOT NULL auto_increment,
`abbreviation` varchar(4) NOT NULL default '',
`name` varchar(255) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `observatory`
--
INSERT INTO `observatory` VALUES(3, 'soho', 'soho');
-- --------------------------------------------------------
--
-- Table structure for table `opacityGroup`
--
CREATE TABLE `opacityGroup` (
`id` int(10) unsigned NOT NULL auto_increment,
`description` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `opacityGroup`
--
INSERT INTO `opacityGroup` VALUES(1, 'Full Disc Image');
INSERT INTO `opacityGroup` VALUES(2, 'Coronagraph Image, in the range of LASCO C2');
INSERT INTO `opacityGroup` VALUES(3, 'Coronagraph Image, in the range of LASCO C3');
|