Skip to content

Commit

Permalink
vs30's title
Browse files Browse the repository at this point in the history
  • Loading branch information
meihuisu committed Nov 6, 2024
1 parent 15e7b57 commit 8f4c9d8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Binary file modified dist/ucvm_plotting-0.0.6-py3-none-any.whl
Binary file not shown.
Binary file modified dist/ucvm_plotting-0.0.6.tar.gz
Binary file not shown.
5 changes: 5 additions & 0 deletions pycvm/vs30_etree_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ class Vs30EtreeSlice(HorizontalSlice):
# @param cvm The community velocity model from which this data should come.
#
def __init__(self, upperleftpoint, bottomrightpoint, meta={}):

if 'title' in meta :
pass
else:
meta['title'] = "Thompson Caliornia vs30 Model v2020 thru UCVM"

# Initializes the base class which is a horizontal slice.
HorizontalSlice.__init__(self, upperleftpoint, bottomrightpoint, meta)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_plot_vs30_etree_map.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ rm -rf ${MODEL}_vs30_data.bin ${MODEL}_vs30_d_data.bin
rm -rf ${MODEL}_vs30_meta.json ${MODEL}_vs30_d_meta.json

## generate data and plot
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}

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}

## generate data only
Expand Down

0 comments on commit 8f4c9d8

Please sign in to comment.