Skip to content

Commit 95eaa90

Browse files
author
meihuisu
committed
add more test points
1 parent 64096aa commit 95eaa90

File tree

2 files changed

+59
-8
lines changed

2 files changed

+59
-8
lines changed

examples/programs/ucvm/run_ucvm_query_uwpkfcvm.sh

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,30 @@ ${BIN_DIR}/ucvm_query -m ${MODEL} -f ${CONF_DIR}/ucvm.conf < ${TEST_DIR}/test_la
1919

2020
cat > $expect << EOF_EXPECTED_RESULT
2121
Using Geo Depth coordinates as default mode.
22-
-120.6295 35.8431 0.000 391.599 446.958 uwpkfcvm 1200.000 7260.000 1420.912 none 0.000 0.000 0.000 crust 1200.000 7260.000 1420.912
23-
-120.6295 35.8431 500.000 391.599 446.958 uwpkfcvm 1200.000 7260.000 1420.912 none 0.000 0.000 0.000 crust 1200.000 7260.000 1420.912
24-
-120.6295 35.8431 1000.000 391.599 446.958 uwpkfcvm 1200.000 7260.000 1420.912 none 0.000 0.000 0.000 crust 1200.000 7260.000 1420.912
25-
-120.6295 35.8431 3000.000 391.599 446.958 uwpkfcvm 2400.000 0.000 2060.951 none 0.000 0.000 0.000 crust 2400.000 0.000 2060.951
26-
-120.0239 35.9312 0.000 192.672 351.900 uwpkfcvm 1280.000 7300.000 1482.388 none 0.000 0.000 0.000 crust 1280.000 7300.000 1482.388
27-
-120.0239 35.9312 500.000 192.672 351.900 uwpkfcvm 1280.000 7300.000 1482.388 none 0.000 0.000 0.000 crust 1280.000 7300.000 1482.388
28-
-120.0239 35.9312 1000.000 192.672 351.900 uwpkfcvm 1280.000 7300.000 1482.388 none 0.000 0.000 0.000 crust 1280.000 7300.000 1482.388
29-
-120.0239 35.9312 3000.000 192.672 351.900 uwpkfcvm 1930.000 2566.774 1873.153 none 0.000 0.000 0.000 crust 1930.000 2566.774 1873.153
22+
-118.0000 34.0000 0.000 284.191 580.043 none 0.000 0.000 0.000 none 0.000 0.000 0.000 none 0.000 0.000 0.000
23+
-118.0000 34.0000 50.000 284.191 580.043 none 0.000 0.000 0.000 none 0.000 0.000 0.000 none 0.000 0.000 0.000
24+
-118.0000 34.0000 100.000 284.191 580.043 none 0.000 0.000 0.000 none 0.000 0.000 0.000 none 0.000 0.000 0.000
25+
-118.0000 34.0000 500.000 284.191 580.043 none 0.000 0.000 0.000 none 0.000 0.000 0.000 none 0.000 0.000 0.000
26+
-118.0000 34.0000 1000.000 284.191 580.043 none 0.000 0.000 0.000 none 0.000 0.000 0.000 none 0.000 0.000 0.000
27+
Using Geo Depth coordinates as default mode.
28+
-120.6295 35.8431 0.000 391.599 446.958 uwpkfcvm 2020.000 1140.000 1914.304 none 0.000 0.000 0.000 crust 2020.000 1140.000 1914.304
29+
-120.6295 35.8431 500.000 391.599 446.958 uwpkfcvm 2020.000 1140.000 1914.304 none 0.000 0.000 0.000 crust 2020.000 1140.000 1914.304
30+
-120.6295 35.8431 1000.000 391.599 446.958 uwpkfcvm 4520.000 2350.000 2464.969 none 0.000 0.000 0.000 crust 4520.000 2350.000 2464.969
31+
-120.6295 35.8431 3000.000 391.599 446.958 uwpkfcvm 5110.000 3140.000 2551.959 none 0.000 0.000 0.000 crust 5110.000 3140.000 2551.959
32+
-120.0239 35.9312 0.000 192.672 351.900 uwpkfcvm 2550.000 1250.000 2108.454 none 0.000 0.000 0.000 crust 2550.000 1250.000 2108.454
33+
-120.0239 35.9312 500.000 192.672 351.900 uwpkfcvm 2550.000 1250.000 2108.454 none 0.000 0.000 0.000 crust 2550.000 1250.000 2108.454
34+
-120.0239 35.9312 1000.000 192.672 351.900 uwpkfcvm 3430.000 1880.000 2306.583 none 0.000 0.000 0.000 crust 3430.000 1880.000 2306.583
35+
-120.0239 35.9312 3000.000 192.672 351.900 uwpkfcvm 4410.000 2570.000 2449.774 none 0.000 0.000 0.000 crust 4410.000 2570.000 2449.774
36+
-120.5741 35.1491 0.000 86.068 385.100 uwpkfcvm 2600.000 1370.000 2123.168 none 0.000 0.000 0.000 crust 2600.000 1370.000 2123.168
37+
-120.5741 35.1491 4000.000 86.068 385.100 uwpkfcvm 4940.000 2850.000 2525.590 none 0.000 0.000 0.000 crust 4940.000 2850.000 2525.590
38+
-120.5702 35.1581 0.000 154.743 385.100 uwpkfcvm 2640.000 1380.000 2134.562 none 0.000 0.000 0.000 crust 2640.000 1380.000 2134.562
39+
-120.5702 35.1581 4000.000 154.743 385.100 uwpkfcvm 4860.000 2810.000 2513.605 none 0.000 0.000 0.000 crust 4860.000 2810.000 2513.605
40+
-120.5702 35.1581 10000.000 154.743 385.100 uwpkfcvm 6130.000 3970.000 2745.149 none 0.000 0.000 0.000 crust 6130.000 3970.000 2745.149
41+
-120.5778 35.1336 0.000 68.501 385.100 uwpkfcvm 2600.000 1370.000 2123.168 none 0.000 0.000 0.000 crust 2600.000 1370.000 2123.168
42+
-119.9342 35.5739 0.000 278.321 293.500 uwpkfcvm 2760.000 1450.000 2166.849 none 0.000 0.000 0.000 crust 2760.000 1450.000 2166.849
43+
-120.5050 35.9600 0.000 788.719 408.488 uwpkfcvm 2920.000 1380.000 2205.879 none 0.000 0.000 0.000 crust 2920.000 1380.000 2205.879
44+
-120.3026 36.6621 0.000 49.441 228.200 uwpkfcvm 2340.000 1230.000 2040.436 none 0.000 0.000 0.000 crust 2340.000 1230.000 2040.436
45+
-120.3026 36.6621 28000.000 49.441 228.200 uwpkfcvm 7350.000 4190.000 3073.382 none 0.000 0.000 0.000 crust 7350.000 4190.000 3073.382
3046
EOF_EXPECTED_RESULT
3147

3248
echo "Running examples_programs_ucvm ucvm_query_uwpkfcvm"

test/inputs/test_latlons_uwpkfcvm_gd.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,38 @@
66
-120.0239 35.9312 500
77
-120.0239 35.9312 1000
88
-120.0239 35.9312 3000
9+
-120.5741 35.1491 0
10+
-120.5741 35.1491 4000
11+
-120.5702 35.1581 0
12+
-120.5702 35.1581 4000
13+
-120.5702 35.1581 10000
14+
#
15+
#first one
16+
#read_properties index: x(0) y(0) z(14) from (33:20:15)
17+
#vp:35.13359 -120.57782 -64.0 -66.0 0.0 2.60
18+
#vs:35.13359 -120.57782 -64.0 -66.0 0.0 1.37
19+
-120.57782 35.13359 0
20+
#
21+
#a point on x axis border
22+
#read_properties index: x(19) y(0) z(14) from (33:20:15)
23+
#vp:35.57386 -119.93419 12.0 -66.0 0.0 2.76
24+
#vs:35.57386 -119.93419 12.0 -66.0 0.0 1.45
25+
-119.93419 35.57386 0
26+
#
27+
#right in the middle
28+
#read_properties index: x(16) y(11) z(14) from (33:20:15)
29+
#vp:35.96000 -120.50500 0.0 0.0 0.0 2.92
30+
#vs:35.96000 -120.50500 0.0 0.0 0.0 1.38
31+
-120.50500 35.96000 0
32+
#
33+
#last one on first layer
34+
#read_properties index: x(32) y(19) z(14) from (33:20:15)
35+
#vp:36.66214 -120.30264 64.0 48.0 0.0 2.34
36+
#vs:36.66214 -120.30264 64.0 48.0 0.0 1.23
37+
-120.30264 36.66214 0
38+
#
39+
#last one on last layer
40+
#read_properties index: x(32) y(19) z(0) from (33:20:15)
41+
#vp:36.66214 -120.30264 64.0 48.0 28.0 7.35
42+
#vs:36.66214 -120.30264 64.0 48.0 28.0 4.19
43+
-120.30264 36.66214 28000

0 commit comments

Comments
 (0)