From e1daa7a47cf6d158dcaa0c9c7c2de22581d463d6 Mon Sep 17 00:00:00 2001 From: Patrik Bohlinger Date: Wed, 6 Nov 2024 15:39:53 +0100 Subject: [PATCH] bugfix in plotting of satellite data on map --- wavy/quicklookmod.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wavy/quicklookmod.py b/wavy/quicklookmod.py index b08857c..cca9bc9 100755 --- a/wavy/quicklookmod.py +++ b/wavy/quicklookmod.py @@ -60,8 +60,9 @@ def quicklook(self, a=False, projection=None, **kwargs): plot_var_obs = self.vars.obs_values plot_var_model = self.vars.model_values - if len(plot_lons.shape)<2: - plot_lons, plot_lats = np.meshgrid(plot_lons, plot_lats) + if str(type(self)) != "": + if len(plot_lons.shape) < 2: + plot_lons, plot_lats = np.meshgrid(plot_lons, plot_lats) fs = kwargs.get('fs', 12)