Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
640 changes: 640 additions & 0 deletions tsunami/combined_plot.py

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions tsunami/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,19 @@ def SWETsunamiWdiv(fname):
return wave_height, latitude, longitude, ocn_floor, divu, mask, time_idx
else:
return wave_height, latitude, longitude, ocn_floor, divu, mask


def SWETsunamiForPlotting2(fname):
fpath = os.getcwd()+"/Data/tsunami/"+fname
data = sio.loadmat(fpath)
wave_height = data['zt']
max_wave_height = np.max(np.abs(wave_height))
wave_height /= max_wave_height
longitude = data['longitude'][0]
latitude = data['latitude'][0]
mask = data['ismask'][0]
times = data['data_times']
sensors = data['sensor_locs']
div = data['du']
return wave_height, latitude, longitude, mask, max_wave_height, times, sensors, div

Loading