Skip to content

Commit

Permalink
added local tornado visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkim312 committed Dec 1, 2023
1 parent 759d595 commit e4e5f98
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion pyincore_viz/geoutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,8 +1146,11 @@ def plot_local_earthquake(eq_dataset):
Plot local earthquake data on the map
"""
demand_type = eq_dataset.demand_type
demand_units = eq_dataset.demand_units
hazard_type = eq_dataset.hazard_type
period = eq_dataset.period
title = "Demand Type: " + demand_type.upper() + ", Period: " + str(period)
title = "Demand Type: " + demand_type.upper() + ", Demand Units: " + demand_units + ", Period: " + \
str(period) + ", Hazard Type: " + hazard_type
raster_file_path = eq_dataset.dataset.local_file_path

GeoUtil.plot_raster_file_with_legend(raster_file_path, title)
Expand Down Expand Up @@ -1212,6 +1215,23 @@ def plot_local_hurricane(hur_dataset):

GeoUtil.plot_raster_file_with_legend(raster_file_path, title)

@staticmethod
def plot_local_torando(dataset):
"""
Plot local tornado data on the map
args:
dataset (obj): pyincore TornadoDataset object
returns:
outmap (obj): ipyleaflet map object
"""
dataset_list = [dataset]
outmap = GeoUtil.plot_multiple_vector_dataset(dataset_list)

return outmap


@staticmethod
def plot_multiple_vector_dataset(dataset_list):
"""Plot multiple vector datasets on the same map.
Expand Down

0 comments on commit e4e5f98

Please sign in to comment.