-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
meihuisu
committed
Nov 2, 2024
1 parent
b7f832c
commit deb90be
Showing
1 changed file
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,33 @@ | ||
# | ||
# test_plot_horizontal_slice.sh | ||
# | ||
plot_depth_profile.py -n /usr/local/share/ucvm/install/conf/ucvm.conf | ||
-i /usr/local/share/ucvm/install -d vs -c sfcvm -o ../result/CVM_1730507668856_v.png -C 'San Francisco Bay Velocity Model | ||
' -v 100 -b 0 -s 38.1729,-121.4332 -e 30000 | ||
|
||
MODEL=sfcvm | ||
LAT1=38.1729 | ||
LON1=-121.4332 | ||
START=0 | ||
END=3000 | ||
STEP=100 | ||
|
||
rm -rf ${MODEL}_d_d_vs.png ${MODEL}_d_dd_vs.png | ||
rm -rf ${MODEL}_d_vs_data.bin ${MODEL}_d_d_vs_data.bin | ||
rm -rf ${MODEL}_d_vs_meta.json ${MODEL}_d_d_vs_meta.json | ||
|
||
## generate data and plot | ||
time plot_depth_profile.py -d vs -c ${MODEL} -o ${MODEL}_d_vs.png -i $UCVM_INSTALL_PATH -C "vertical profile vs ${MODEL}" -b ${LAT1},${LON1} -b ${START} -e ${END} | ||
time plot_depth_profile.py -d vs -c ${MODEL} -o ${MODEL}_d_vs.png -i $UCVM_INSTALL_PATH -C "vertical profile vs ${MODEL}" -b ${LAT1},${LON1} -b ${START} -e ${END} -v ${STEP} | ||
|
||
## generate data only | ||
#time plot_depth_profile.py -d vs -c ${MODEL} -o ${MODEL}_d_d_vs.png -i $UCVM_INSTALL_PATH -C "vertical profile vs ${MODEL}" -b ${LAT1},${LON1} -b ${START} -e ${END} -S | ||
#time plot_depth_profile.py -d vs -c ${MODEL} -o ${MODEL}_d_d_vs.png -i $UCVM_INSTALL_PATH -C "vertical profile vs ${MODEL}" -b ${LAT1},${LON1} -b ${START} -e ${END} -v ${STEP} -S | ||
|
||
## generate plot from given data | ||
#time plot_depth_profile.py -d vs -c ${MODEL} -o ${MODEL}_d_dd_vs.png -i $UCVM_INSTALL_PATH -C "vertical profile vs ${MODEL}" -b ${LAT1},${LON1} -b ${START} -e ${END} -f ${MODEL}_d_d_vs.png | ||
#time plot_depth_profile.py -d vs -c ${MODEL} -o ${MODEL}_d_dd_vs.png -i $UCVM_INSTALL_PATH -C "vertical profile vs ${MODEL}" -b ${LAT1},${LON1} -b ${START} -e ${END} -f ${MODEL}_d_d_vs.png -v ${STEP} | ||
|
||
## should be about the same | ||
#diff ${MODEL}_d_d_vs_meta.json ${MODEL}_d_vs_meta.json | ||
|
||
|
||
## convert to csv | ||
## using ucvm_metadata_utilities | ||
./ucvm_vertical_profile2csv.py ${MODEL}_d_vs_data.bin ${MODEL}_d_vs_meta.json | ||
#./ucvm_vertical_profile2csv.py ${MODEL}_d_vs_data.bin ${MODEL}_d_vs_meta.json | ||
#./ucvm_vertical_profile2csv_line.py ${MODEL}_vs_data.bin ${MODEL}_vs_meta.json | ||
|