summaryrefslogtreecommitdiffstats
path: root/rasodmg/test/earth.ql
blob: 5de6f1d6e5f0389af51faef2725bd2ae00a8ad5c (plain)
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
// This test evaluates the effort for internal operations.
// Run on different servers with optimization of operations and 
// multidimensional operations turned on and off.

// no operation

select img[0:799,0:799]
from earth1 as img

// one MDD operation

select img[0:799,0:799] + img[0:799,0:799]
from earth1 as img

// two MDD operations

select img[0:799,0:799] + img[0:799,0:799] + img[0:799,0:799]
from earth1 as img

// three MDD operations

select img[0:799,0:799] + img[0:799,0:799] + img[0:799,0:799] + img[0:799,0:799]
from earth1 as img

// four MDD operations

select img[0:799,0:799] + img[0:799,0:799] + img[0:799,0:799] + img[0:799,0:799] + img[0:799,0:799]
from earth1 as img

// five MDD operations

select img[0:799,0:799] + img[0:799,0:799] + img[0:799,0:799] + img[0:799,0:799] + img[0:799,0:799] + img[0:799,0:799]
from earth1 as img

// no operation

select img[0:799,0:799]
from earth1 as img

// one unary operation

select not(img[0:799,0:799])
from earth1 as img

// no operation

select img[0:799,0:799]
from earth1 as img

// one binary operation with a constant (+)

select img[0:799,0:799] + 10c
from earth1 as img

// two binary operations with a constant (+, *)

select (img[0:799,0:799] + 10c) * 10c
from earth1 as img

// three binary operations with a constant (+, *, -)

select ((img[0:799,0:799] + 10c) * 10c) - 10c
from earth1 as img

// four binary operations with a constant (+, *, -, /)

select (((img[0:799,0:799] + 10c) * 10c) - 10c) / 10c
from earth1 as img