Skip to content

Commit

Permalink
add tests for skip + all options
Browse files Browse the repository at this point in the history
  • Loading branch information
meihuisu committed Dec 15, 2024
1 parent 384ff92 commit 59134fa
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/test_plot_cross_section_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# test_plot_cross_section.sh
#

MODEL=sfcvm
START=0
END=5000
## horizontal step
HSTEP=852
## vertical step
VSTEP=50
LAT1=37.5783
LON1=-122.658
LAT2=-37.7505
LON2=-121.1362
LABEL=CVM_1734139660226

## generate data only
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

./ucvm_cross_section2csv_line.py CVM_1734139660226_density_data.bin CVM_1734139660226_density_meta.json

./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


16 changes: 16 additions & 0 deletions tests/test_plot_horizontal_slice_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# test_plot_horizontal_slice.sh
#

MODEL=sfcvm
LAT1=37.2635
LON1=-122.1945
LAT2=38.3315
LON2=-121.1536
LABEL=taper2_1734139660226

## generate data only
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

./ucvm_horizontal_slice2csv_line.py taper2_1734139660226_vp_data.bin taper2_1734139660226_vp_meta.json

./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 comments on commit 59134fa

Please sign in to comment.