Skip to content

Commit

Permalink
bug fix in plotting routine
Browse files Browse the repository at this point in the history
  • Loading branch information
bohlinger committed Nov 6, 2024
1 parent e1daa7a commit 9a0e436
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions wavy/quicklookmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def quicklook(self, a=False, projection=None, **kwargs):
plot_var_obs = self.vars.obs_values
plot_var_model = self.vars.model_values

if str(type(self)) != "<class 'wavy.satellite_module.satellite_class'>":
if str(type(self)) == "<class 'wavy.model_module.model_class'>":
if len(plot_lons.shape) < 2:
plot_lons, plot_lats = np.meshgrid(plot_lons, plot_lats)

Expand All @@ -71,7 +71,6 @@ def quicklook(self, a=False, projection=None, **kwargs):

levels = kwargs.get('levels',
np.arange(vmin, vmax, .5))
#np.arange(0, vmax+.5, .5))

cflevels = kwargs.get('cflevels', levels)
clevels = kwargs.get('clevels', levels)
Expand Down Expand Up @@ -169,9 +168,6 @@ def quicklook(self, a=False, projection=None, **kwargs):
edgecolor='face',
transform=ccrs.PlateCarree())
if len(plot_var.shape) > 1:
#print('HERE')
#print(plot_lons.shape)
#print('HERE')
sc = ax.contourf(plot_lons.squeeze(),
plot_lats.squeeze(),
plot_var.squeeze(),
Expand Down

0 comments on commit 9a0e436

Please sign in to comment.