Skip to content

Commit 8f4c9d8

Browse files
author
meihuisu
committed
vs30's title
1 parent 15e7b57 commit 8f4c9d8

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed
57 Bytes
Binary file not shown.

dist/ucvm_plotting-0.0.6.tar.gz

38 Bytes
Binary file not shown.

pycvm/vs30_etree_slice.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ class Vs30EtreeSlice(HorizontalSlice):
3030
# @param cvm The community velocity model from which this data should come.
3131
#
3232
def __init__(self, upperleftpoint, bottomrightpoint, meta={}):
33+
34+
if 'title' in meta :
35+
pass
36+
else:
37+
meta['title'] = "Thompson Caliornia vs30 Model v2020 thru UCVM"
3338

3439
# Initializes the base class which is a horizontal slice.
3540
HorizontalSlice.__init__(self, upperleftpoint, bottomrightpoint, meta)

tests/test_plot_vs30_etree_map.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ rm -rf ${MODEL}_vs30_data.bin ${MODEL}_vs30_d_data.bin
1313
rm -rf ${MODEL}_vs30_meta.json ${MODEL}_vs30_d_meta.json
1414

1515
## generate data and plot
16+
time plot_vs30_etree_map.py -s 0.1 -c ${MODEL} -a sd -o ${MODEL}_vs30.png -i $UCVM_INSTALL_PATH -b ${LAT1},${LON1} -u ${LAT2},${LON2}
17+
1618
time plot_vs30_etree_map.py -s 0.1 -c ${MODEL} -a sd -o ${MODEL}_vs30.png -i $UCVM_INSTALL_PATH -t "Thompson Caliornia vs30 Model v2020 thru UCVM" -b ${LAT1},${LON1} -u ${LAT2},${LON2}
1719

1820
## generate data only

0 commit comments

Comments
 (0)