/dev/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/trunk

« back to all changes in this revision

Viewing changes to setups/asec/config.php.main

  • Committer: Suren A. Chilingaryan
  • Date: 2014-01-25 16:38:03 UTC
  • Revision ID: csa@dside.dyndns.org-20140125163803-mhmpyk4dpzz7qabw
Detach setups

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
$TITLE = "ASEC";
3
 
$MODULES = array("graph", "download", "wiki");
4
 
 
5
 
 
6
 
$READER_DB_ASEC = array(
7
 
        "asec" => array (
8
 
            "title" => _("ASEC"),
9
 
            "reader" => "IPEReader",
10
 
            "driver" => "mysql",
11
 
            "host" => "192.168.24.8",
12
 
            "port" => 3306,
13
 
            "user" => "read",
14
 
            "password" => "read",
15
 
            "database" => array("crd"),
16
 
            "charset" => "ISO8859-1",
17
 
            "timeout" => 200000,        // us
18
 
            "ping" => true,             // host and port should be specified
19
 
//          "disconnected" => true
20
 
        ),
21
 
        "asec_aragats" => array (
22
 
            "title" => _("ASEC-Aragats"),
23
 
            "reader" => "IPEReader",
24
 
            "driver" => "mysql",
25
 
            "host" => "192.168.24.8",
26
 
            "port" => 3306,
27
 
            "user" => "read",
28
 
            "password" => "read",
29
 
            "database" => array("crd"),
30
 
            "charset" => "ISO8859-1",
31
 
            "timeout" => 200000,        // us
32
 
            "ping" => true,             // host and port should be specified
33
 
        ),
34
 
        "asec_noramberd" => array (
35
 
            "title" => _("ASEC-NorAmberd"),
36
 
            "reader" => "IPEReader",
37
 
            "driver" => "mysql",
38
 
            "host" => "192.168.24.8",
39
 
            "port" => 3306,
40
 
            "user" => "read",
41
 
            "password" => "read",
42
 
            "database" => array("crd"),
43
 
            "charset" => "ISO8859-1",
44
 
            "timeout" => 200000,        // us
45
 
            "ping" => true,             // host and port should be specified
46
 
        ),
47
 
        "asec_yerevan" => array (
48
 
            "title" => _("ASEC-Yerevan"),
49
 
            "reader" => "IPEReader",
50
 
            "driver" => "mysql",
51
 
            "host" => "192.168.24.8",
52
 
            "port" => 3306,
53
 
            "user" => "read",
54
 
            "password" => "read",
55
 
            "database" => array("crd"),
56
 
            "charset" => "ISO8859-1",
57
 
            "timeout" => 200000,        // us
58
 
            "ping" => true,             // host and port should be specified
59
 
        ),
60
 
        "sevan" => array (
61
 
            "title" => _("SEVAN"),
62
 
            "reader" => "IPEReader",
63
 
            "driver" => "mysql",
64
 
            "host" => "192.168.24.8",
65
 
            "port" => 3306,
66
 
            "user" => "read",
67
 
            "password" => "read",
68
 
            "database" => array("crd"),
69
 
            "charset" => "ISO8859-1",
70
 
            "timeout" => 200000,        // us
71
 
            "ping" => true,             // host and port should be specified
72
 
        ),
73
 
        "nmdb" => array (
74
 
            "title" => _("NMDB"),
75
 
            "reader" => "IPEReader",
76
 
            "driver" => "mysql",
77
 
            "host" => "192.168.24.8",
78
 
            "port" => 3306,
79
 
            "user" => "read",
80
 
            "password" => "read",
81
 
            "database" => array("crd"),
82
 
            "charset" => "ISO8859-1",
83
 
            "timeout" => 200000,        // us
84
 
            "ping" => true,             // host and port should be specified
85
 
        ),
86
 
        "mirror" => array (
87
 
            "title" => _("Data for Mirrors"),
88
 
            "reader" => "IPEReader",
89
 
            "driver" => "mysql",
90
 
            "host" => "192.168.24.8",
91
 
            "port" => 3306,
92
 
            "user" => "read",
93
 
            "password" => "read",
94
 
            "database" => array("fzk_mirror"),
95
 
            "charset" => "ISO8859-1",
96
 
            "timeout" => 200000,        // us
97
 
            "ping" => true,             // host and port should be specified
98
 
        ),
99
 
        "other" => array (
100
 
            "title" => _("Data from Other Sources"),
101
 
            "reader" => "IPEReader",
102
 
            "driver" => "mysql",
103
 
            "host" => "192.168.24.8",
104
 
            "port" => 3306,
105
 
            "user" => "read",
106
 
            "password" => "read",
107
 
            "database" => array("other_sources"),
108
 
            "charset" => "ISO8859-1",
109
 
            "timeout" => 200000,        // us
110
 
            "ping" => true,             // host and port should be specified
111
 
        )
112
 
);
113
 
 
114
 
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_ASEC, $READER_DB);
115
 
else $READER_DB = $READER_DB_ASEC;
116
 
 
117
 
 
118
 
$OPTIONS["asec__crd"] = array(
119
 
/*          "groups" => array(
120
 
                "/^Data_011_EB1_DAR$/" => 'Data_011_EB1_DAR_[Energy_balance_station_1 DAR]',
121
 
                "/^Data_012_EB2_DAR$/" => 'Data_012_EB2_DAR_[Energy_balance_station_2 DAR]',
122
 
                "/^Data_012_EB2_DAX$/" => 'Data_012_EB2_DAX_[Energy_balance_station_2 DAX]'
123
 
 
124
 
            ),*/
125
 
            "tables" => array(
126
 
                "/^((.*)_view)$/" => array(
127
 
                    'gid' => '${1}',
128
 
                    'title' => '${2}'
129
 
                ),
130
 
            ),
131
 
            "columns" => array(
132
 
                "time" => "Time",
133
 
                "data" => "/^(arnm|nanm|asnt|ammm|maket|wh|nammm1|nammm2|sa|sna|sy|sm|sz|lemi|pres|stand|cube|efm|ld|sj|nai|ws|cu)/"
134
 
            ),
135
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
136
 
            "date_limit" => "1990-01-01 00:00:00",              //GMT
137
 
//          "time_format" => "U",
138
 
            "min_resolution" => 600,
139
 
            "ignore_subseconds" => true,
140
 
            "optimize_empty_cache" => true,
141
 
            "use_cache_timewindow" => true,
142
 
//          "use_cache_reader" => true,
143
 
//          "use_md5_postfix" => true,
144
 
            "trace_timings" => false,
145
 
            "channel_uids" => true,
146
 
            "monitor_timings" => array(
147
 
                "query_limit" => 500000,                /* us */
148
 
                "raise_exception" => true
149
 
            ),
150
 
            "item_table" => array(
151
 
                "table" => "CHANNEL_LIST",
152
 
                "id" => "name",
153
 
//              "gid" => "group",
154
 
                "properties" => array(
155
 
                    "name" => "title",
156
 
                    "axis" => "axis"
157
 
                )
158
 
            ),
159
 
            "mask_table" => array(
160
 
                "table" => "MASK_LIST",
161
 
                "id" => "id",
162
 
                "gid" => "gid",
163
 
                "properties" => array(
164
 
                    "name" => "mask_name",
165
 
                    "mask" => "channel_list"
166
 
                )
167
 
            ),
168
 
/*          "cache_config" => array(
169
 
                array("min" => 630720000, "res" => 604800),
170
 
                array("min" => 31536000, "res" => 43200)
171
 
            ),
172
 
            "data_filters" => array(
173
 
                "BADVALUEFilter" => array (
174
 
                    "badvalue" => -9000
175
 
                ),
176
 
            ),
177
 
*/
178
 
);
179
 
 
180
 
$OPTIONS["asec_aragats__crd"] = array(
181
 
            "tables" => array(
182
 
                "/^((.*)_Aragats)$/" => array(
183
 
                    'gid' => '${1}',
184
 
                    'title' => '${2}'
185
 
                ),
186
 
            ),
187
 
            "columns" => array(
188
 
                "time" => "Time",
189
 
                "data" => "/^(arnm|asnt|ammm|maket|sa|lemi|pres|stand|cube|efm|ld|nai|ws)/"
190
 
            ),
191
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
192
 
            "date_limit" => "1990-01-01 00:00:00",              //GMT
193
 
            "min_resolution" => 600,
194
 
            "ignore_subseconds" => true,
195
 
            "optimize_empty_cache" => true,
196
 
            "use_cache_timewindow" => true,
197
 
            "trace_timings" => false,
198
 
            "channel_uids" => true,
199
 
            "monitor_timings" => array(
200
 
                "query_limit" => 500000,                /* us */
201
 
                "raise_exception" => true
202
 
            ),
203
 
            "item_table" => array(
204
 
                "table" => "CHANNEL_LIST",
205
 
                "id" => "name",
206
 
                "properties" => array(
207
 
                    "name" => "title",
208
 
                    "axis" => "axis"
209
 
                )
210
 
            ),
211
 
            "mask_table" => array(
212
 
                "table" => "MASK_LIST",
213
 
                "id" => "id",
214
 
                "gid" => "gid",
215
 
                "properties" => array(
216
 
                    "name" => "mask_name",
217
 
                    "mask" => "channel_list"
218
 
                )
219
 
            ),
220
 
);
221
 
 
222
 
$OPTIONS["asec_noramberd__crd"] = array(
223
 
            "tables" => array(
224
 
                "/^((.*)_NorAmberd)$/" => array(
225
 
                    'gid' => '${1}',
226
 
                    'title' => '${2}'
227
 
                ),
228
 
            ),
229
 
            "columns" => array(
230
 
                "time" => "Time",
231
 
                "data" => "/^(nanm|wh|nammm1|nammm2|sna|lemi|pres|efm|ld|ws)/"
232
 
            ),
233
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
234
 
            "date_limit" => "1990-01-01 00:00:00",              //GMT
235
 
            "min_resolution" => 600,
236
 
            "ignore_subseconds" => true,
237
 
            "optimize_empty_cache" => true,
238
 
            "use_cache_timewindow" => true,
239
 
            "trace_timings" => false,
240
 
            "channel_uids" => true,
241
 
            "monitor_timings" => array(
242
 
                "query_limit" => 500000,                /* us */
243
 
                "raise_exception" => true
244
 
            ),
245
 
            "item_table" => array(
246
 
                "table" => "CHANNEL_LIST",
247
 
                "id" => "name",
248
 
                "properties" => array(
249
 
                    "name" => "title",
250
 
                    "axis" => "axis"
251
 
                )
252
 
            ),
253
 
            "mask_table" => array(
254
 
                "table" => "MASK_LIST",
255
 
                "id" => "id",
256
 
                "gid" => "gid",
257
 
                "properties" => array(
258
 
                    "name" => "mask_name",
259
 
                    "mask" => "channel_list"
260
 
                )
261
 
            ),
262
 
);
263
 
 
264
 
$OPTIONS["asec_yerevan__crd"] = array(
265
 
            "tables" => array(
266
 
                "/^((.*)_Yerevan)$/" => array(
267
 
                    'gid' => '${1}',
268
 
                    'title' => '${2}'
269
 
                ),
270
 
            ),
271
 
            "columns" => array(
272
 
                "time" => "Time",
273
 
                "data" => "/^(press|sy|cube|efm|ld)/"
274
 
            ),
275
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
276
 
            "date_limit" => "1990-01-01 00:00:00",              //GMT
277
 
            "min_resolution" => 600,
278
 
            "ignore_subseconds" => true,
279
 
            "optimize_empty_cache" => true,
280
 
            "use_cache_timewindow" => true,
281
 
            "trace_timings" => false,
282
 
            "channel_uids" => true,
283
 
            "monitor_timings" => array(
284
 
                "query_limit" => 500000,                /* us */
285
 
                "raise_exception" => true
286
 
            ),
287
 
            "item_table" => array(
288
 
                "table" => "CHANNEL_LIST",
289
 
                "id" => "name",
290
 
                "properties" => array(
291
 
                    "name" => "title",
292
 
                    "axis" => "axis"
293
 
                )
294
 
            ),
295
 
            "mask_table" => array(
296
 
                "table" => "MASK_LIST",
297
 
                "id" => "id",
298
 
                "gid" => "gid",
299
 
                "properties" => array(
300
 
                    "name" => "mask_name",
301
 
                    "mask" => "channel_list"
302
 
                )
303
 
            ),
304
 
);
305
 
 
306
 
$OPTIONS["mirror__fzk_mirror"] = array(
307
 
            "tables" => array(
308
 
                "/^((.*)_mirror)$/" => array(
309
 
                    'gid' => '${1}',
310
 
                    'title' => '${2}'
311
 
                ),
312
 
            ),
313
 
            "columns" => array(
314
 
                "time" => "Time",
315
 
                "data" => "/^(arnm|nanm|asnt|ammm|maket|wh|nammm1|nammm2|sa|sna|sy|sm|sz|lemi|pres|stand|cube|efm|ld|sj|nai|nmdb)/"
316
 
            ),
317
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
318
 
            "date_limit" => "1990-01-01 00:00:00",              //GMT
319
 
            "min_resolution" => 600,
320
 
            "ignore_subseconds" => true,
321
 
            "optimize_empty_cache" => true,
322
 
            "use_cache_timewindow" => true,
323
 
            "trace_timings" => false,
324
 
            "monitor_timings" => array(
325
 
                "query_limit" => 500000,                /* us */
326
 
                "raise_exception" => true
327
 
            ),
328
 
            "item_table" => array(
329
 
                "table" => "CHANNEL_LIST",
330
 
                "id" => "name",
331
 
//              "gid" => "group",
332
 
                "properties" => array(
333
 
                    "name" => "title",
334
 
                    "axis" => "axis"
335
 
                )
336
 
            ),
337
 
            "mask_table" => array(
338
 
                "table" => "MASK_LIST",
339
 
                "id" => "id",
340
 
                "gid" => "gid",
341
 
                "properties" => array(
342
 
                    "name" => "mask_name",
343
 
                    "mask" => "channel_list"
344
 
                )
345
 
            )
346
 
);
347
 
 
348
 
$OPTIONS["other__other_sources"] = array(
349
 
            "tables" => array(
350
 
                "/^((.*)_other)$/" => array(
351
 
                    'gid' => '${1}',
352
 
                    'title' => '${2}'
353
 
                ),
354
 
            ),
355
 
            "columns" => array(
356
 
                "time" => "Time",
357
 
                "data" => "/^(ace|goes|dst|ak)/"
358
 
            ),
359
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
360
 
            "date_limit" => "1990-01-01 00:00:00",              //GMT
361
 
            "min_resolution" => 600,
362
 
            "ignore_subseconds" => true,
363
 
            "optimize_empty_cache" => true,
364
 
            "use_cache_timewindow" => true,
365
 
            "trace_timings" => false,
366
 
            "monitor_timings" => array(
367
 
                "query_limit" => 500000,                /* us */
368
 
                "raise_exception" => true
369
 
            ),
370
 
            "item_table" => array(
371
 
                "table" => "CHANNEL_LIST",
372
 
                "id" => "name",
373
 
//              "gid" => "group",
374
 
                "properties" => array(
375
 
                    "name" => "title",
376
 
                    "axis" => "axis"
377
 
                )
378
 
            ),
379
 
            "mask_table" => array(
380
 
                "table" => "MASK_LIST",
381
 
                "id" => "id",
382
 
                "gid" => "gid",
383
 
                "properties" => array(
384
 
                    "name" => "mask_name",
385
 
                    "mask" => "channel_list"
386
 
                )
387
 
            )
388
 
);
389
 
 
390
 
$OPTIONS["sevan__crd"] = array(
391
 
            "tables" => array(
392
 
                "/^(sevan_(.*)_view)$/" => array(
393
 
                    'gid' => '${1}',
394
 
                    'title' => '${2}'
395
 
                ),
396
 
            ),
397
 
            "columns" => array(
398
 
                "time" => "Time",
399
 
                "data" => "/^(sa|sna|sy|sm|sz|sj)/"
400
 
            ),
401
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
402
 
            "date_limit" => "1990-01-01 00:00:00",              //GMT
403
 
            "min_resolution" => 600,
404
 
            "ignore_subseconds" => true,
405
 
            "optimize_empty_cache" => true,
406
 
            "use_cache_timewindow" => true,
407
 
            "trace_timings" => false,
408
 
            "monitor_timings" => array(
409
 
                "query_limit" => 500000,                /* us */
410
 
                "raise_exception" => true
411
 
            ),
412
 
            "item_table" => array(
413
 
                "table" => "CHANNEL_LIST",
414
 
                "id" => "name",
415
 
//              "gid" => "group",
416
 
                "properties" => array(
417
 
                    "name" => "title",
418
 
                    "axis" => "axis"
419
 
                )
420
 
            ),
421
 
            "mask_table" => array(
422
 
                "table" => "MASK_LIST",
423
 
                "id" => "id",
424
 
                "gid" => "gid",
425
 
                "properties" => array(
426
 
                    "name" => "mask_name",
427
 
                    "mask" => "channel_list"
428
 
                )
429
 
            )
430
 
);
431
 
 
432
 
$OPTIONS["nmdb__crd"] = array(
433
 
            "tables" => array(
434
 
                "/^(nmdb_(.*))$/" => array(
435
 
                    'gid' => '${1}',
436
 
                    'title' => '${2}'
437
 
                ),
438
 
            ),
439
 
            "columns" => array(
440
 
                "time" => "Time",
441
 
                "data" => "/^(nmdb)/"
442
 
            ),
443
 
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
444
 
            "date_limit" => "1990-01-01 00:00:00",              //GMT
445
 
            "min_resolution" => 600,
446
 
            "ignore_subseconds" => true,
447
 
            "optimize_empty_cache" => true,
448
 
            "use_cache_timewindow" => true,
449
 
            "trace_timings" => false,
450
 
            "monitor_timings" => array(
451
 
                "query_limit" => 500000,                /* us */
452
 
                "raise_exception" => true
453
 
            ),
454
 
            "item_table" => array(
455
 
                "table" => "CHANNEL_LIST",
456
 
                "id" => "name",
457
 
//              "gid" => "group",
458
 
                "properties" => array(
459
 
                    "name" => "title",
460
 
                    "axis" => "axis"
461
 
                )
462
 
            ),
463
 
            "mask_table" => array(
464
 
                "table" => "MASK_LIST",
465
 
                "id" => "id",
466
 
                "gid" => "gid",
467
 
                "properties" => array(
468
 
                    "name" => "mask_name",
469
 
                    "mask" => "channel_list"
470
 
                )
471
 
            )
472
 
);
473
 
 
474
 
    $ADEI_AXES = array(
475
 
        "countrate" => array(
476
 
            "axis_name" => _("Count Rate"),
477
 
            "axis_units" => false,
478
 
            "axis_mode" => "STD",
479
 
            "axis_range" => false
480
 
        ),
481
 
        "temperature" => array(
482
 
            "axis_units" => _("C"),
483
 
            "axis_name" => _("Temperature"),
484
 
            "axis_mode" => "STD",
485
 
            "axis_range" => false
486
 
        ),
487
 
        "electric_filed_k" => array(
488
 
            "axis_units" => _("kV/m"),
489
 
            "axis_name" => _("Near Surface Electric Field"),
490
 
            "axis_mode" => "STD",
491
 
            "axis_range" => false
492
 
        ),
493
 
        "dischargen" => array(
494
 
            "axis_units" => false,
495
 
            "axis_name" => _("Discharges Number"),
496
 
            "axis_mode" => "STD",
497
 
            "axis_range" => false
498
 
        ),
499
 
        "telluric_filed" => array(
500
 
            "axis_units" => _("mkV/m"),
501
 
            "axis_name" => _("Telluric Electric Field"),
502
 
            "axis_mode" => "STD",
503
 
            "axis_range" => false
504
 
        ),
505
 
        "magnetic_filed_n" => array(
506
 
            "axis_units" => _("nT"),
507
 
            "axis_name" => _("Magnetic Field"),
508
 
            "axis_mode" => "STD",
509
 
            "axis_range" => false
510
 
        ),
511
 
        "pressure_m" => array(
512
 
            "axis_units" => _("mbar"),
513
 
            "axis_name" => _("Atmospheric Pressure"),
514
 
            "axis_mode" => "STD",
515
 
            "axis_range" => false
516
 
        ),
517
 
        "temperature_k" => array(
518
 
            "axis_units" => _("K"),
519
 
            "axis_name" => _("Temperature"),
520
 
            "axis_mode" => "STD",
521
 
            "axis_range" => false
522
 
        ),
523
 
        "watts_m_2" => array(
524
 
            "axis_units" => _("W/m^{2}"),
525
 
            "axis_name" => _("X-ray Flux"),
526
 
            "axis_mode" => "STD",
527
 
            "axis_range" => false
528
 
        ),
529
 
        "distance" => array(
530
 
            "axis_units" => _("km"),
531
 
            "axis_name" => _("Distance"),
532
 
            "axis_mode" => "STD",
533
 
            "axis_range" => false
534
 
        ),
535
 
        "percent" => array(
536
 
            "axis_units" => _("%"),
537
 
            "axis_name" => _("Percents"),
538
 
            "axis_mode" => "STD",
539
 
            "axis_range" => false
540
 
        ),
541
 
        "speed_m_s" => array(
542
 
            "axis_units" => _("m/s"),
543
 
            "axis_name" => _("Speed"),
544
 
            "axis_mode" => "STD",
545
 
            "axis_range" => false
546
 
        ),
547
 
        "direction_to_n" => array(
548
 
            "axis_units" => _("N"),
549
 
            "axis_name" => _("Direction to North"),
550
 
            "axis_mode" => "STD",
551
 
            "axis_range" => false
552
 
        ),
553
 
        "precipitation" => array(
554
 
            "axis_units" => _("mm"),
555
 
            "axis_name" => _("Precipitation"),
556
 
            "axis_mode" => "STD",
557
 
            "axis_range" => false
558
 
        ),
559
 
        "precipitation_rate" => array(
560
 
            "axis_units" => _("mm/hr"),
561
 
            "axis_name" => _("Precipitation Rate"),
562
 
            "axis_mode" => "STD",
563
 
            "axis_range" => false
564
 
        ),
565
 
        "solar_rad" => array(
566
 
            "axis_units" => _("W/m"),
567
 
            "axis_name" => _("Solar Radiation"),
568
 
            "axis_mode" => "STD",
569
 
            "axis_range" => false
570
 
        ),
571
 
        "solar_energy" => array(
572
 
            "axis_units" => _("Ly"),
573
 
            "axis_name" => _("Solar Energy"),
574
 
            "axis_mode" => "STD",
575
 
            "axis_range" => false
576
 
        ),
577
 
        "uv_dose" => array(
578
 
            "axis_units" => _("MEDs"),
579
 
            "axis_name" => _("UV Dose"),
580
 
            "axis_mode" => "STD",
581
 
            "axis_range" => false
582
 
        ),
583
 
 
584
 
    );
585
 
 
586
 
?>