Skip to content

Commit 59134fa

Browse files
author
meihuisu
committed
add tests for skip + all options
1 parent 384ff92 commit 59134fa

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

tests/test_plot_cross_section_all.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# test_plot_cross_section.sh
3+
#
4+
5+
MODEL=sfcvm
6+
START=0
7+
END=5000
8+
## horizontal step
9+
HSTEP=852
10+
## vertical step
11+
VSTEP=50
12+
LAT1=37.5783
13+
LON1=-122.658
14+
LAT2=-37.7505
15+
LON2=-121.1362
16+
LABEL=CVM_1734139660226
17+
18+
## generate data only
19+
time plot_cross_section.py -a sd -s ${START} -e ${END} -h ${HSTEP} -d all -c sfcvm -o ${LABEL}_ALL.png -i $UCVM_INSTALL_PATH -t "cross section vs ${MODEL}" -v ${VSTEP} -b ${LAT1},${LON1} -u ${LAT2},${LON2} -S
20+
21+
./ucvm_cross_section2csv_line.py CVM_1734139660226_density_data.bin CVM_1734139660226_density_meta.json
22+
23+
./ucvm_cross_section2csv_all.py CVM_1734139660226_vp_data.bin CVM_1734139660226_vp_meta.json CVM_1734139660226_vs_data.bin CVM_1734139660226_vs_meta.json CVM_1734139660226_density_data.bin CVM_1734139660226_density_meta.json
24+
25+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# test_plot_horizontal_slice.sh
2+
#
3+
4+
MODEL=sfcvm
5+
LAT1=37.2635
6+
LON1=-122.1945
7+
LAT2=38.3315
8+
LON2=-121.1536
9+
LABEL=taper2_1734139660226
10+
11+
## generate data only
12+
time plot_horizontal_slice.py -s 0.1 -c ${MODEL} -a sd -o ${LABEL}_ALL.png -i $UCVM_INSTALL_PATH -t "horizontal vs ${MODEL}" -d all -b ${LAT1},${LON1} -u ${LAT2},${LON2} -e 1000 -S
13+
14+
./ucvm_horizontal_slice2csv_line.py taper2_1734139660226_vp_data.bin taper2_1734139660226_vp_meta.json
15+
16+
./ucvm_horizontal_slice2csv_all.py taper2_1734139660226_vp_data.bin taper2_1734139660226_vp_meta.json taper2_1734139660226_vs_data.bin taper2_1734139660226_vs_meta.json taper2_1734139660226_density_data.bin taper2_1734139660226_density_meta.json

0 commit comments

Comments
 (0)