Skip to content

Commit

Permalink
Update to version 0.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
wxguy committed Jul 16, 2024
1 parent 5985734 commit e260e92
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wrfplot/wrfplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,7 @@ def plot_sfc(self):
path = self.plot_wrf_data(_time, index, data_plot=data_plot)
if path:
images.append(path)
tqdm.write(
"\nPlotting of variable " + utils.quote(self.var) + " completed...\n"
)
tqdm.write("\nPlotting of variable " + utils.quote(self.var) + " completed...\n")
if self.animation is not False:
if len(images) > 0:
output_gif_name = os.path.join(os.path.dirname(images[0]), self.var) + '.gif'
Expand Down Expand Up @@ -402,7 +400,7 @@ def plot_wrf_data(self, _time, index, data_plot=None, level=None):

def convert_unit(self, data):
"""Convert data to other unit"""
if self.var in ["T2", "u_temp", "u_theta", "u_tv", "u_twb"]:
if self.var in ["T2", "u_temp", "u_theta", "u_tv", "u_twb"]:
return convert.k_to_c(data)
elif self.var in ["low_cloudfrac", "mid_cloudfrac", "high_cloudfrac"]:
return np.round(data * 100)
Expand Down

0 comments on commit e260e92

Please sign in to comment.