Hi Dzengiz,
could you provide a minimal example? It's not totally clear how you
wradlib.vis.plot_ppi and basemap are working together in your application.
Cheers,
Kai
Am 16.08.2015 um 12:29 schrieb Dzengiz Tafa:
> Hi
>
> We are trying to put a PPI image (radial velocity) to Google Maps. To
> achieve that goal we wish to plot a PPI image on a Mercator projection,
> so it is compatible with Google Maps.
> However, I seem to be having problems with the output being generated.
>
> When plotting the image on an LCC projection I get the following result:
> In python: *m = Basemap(llcrnrlon='1', llcrnrlat='49', urcrnrlon='10',
> urcrnrlat='54', projection='lcc',
> resolution='i',lat_0=51.182972,lon_0=3.094839)*
>
> <
https://lh3.googleusercontent.com/-smWk5MSqQo0/VdBf1ec64GI/AAAAAAAAAAo/u7rL2OKeOl4/s1600/BVEL_debilt_LM_LCC_test.png>
>
>
> This image is correct, because the range of the radar is correct & the
> center of the radar-image is positioned where it should be.
>
>
> When plotting the same image by using the mercator projection, the
> result is somewhat different
> In python:* **m =
> Basemap(projection='merc',llcrnrlat=49,urcrnrlat=54,llcrnrlon=1,urcrnrlon=10,resolution='i',lat_0=51.182972,lon_0=3.094839)*
> *
> *
>
> <
https://lh3.googleusercontent.com/-bJnWyeClSPM/VdBhLtRhtzI/AAAAAAAAAA0/DOOVlDg9xho/s1600/BVEL_debilt_LM_test.png>
>
> As you can see from a comparison between the images is that the
> centerpoint of the radar matches. So this seems to be correct. But there
> is a notable difference between the size of the images. The image
> (range) in mercator projection is a lot smaller than the LCC projection.
>
>
> Both plot-calls are done by this rule *ax, ppi =
> wradlib.vis.plot_ppi(masked_array, r, az, autoext=True, site=(x,y),
> elev=0.4, vmin=-80, vmax=80, cmap=my_cmap)*
>
> *
> *
>
> I am searching for an explanation why the plot might be different when
> using a different projections. Does wradlib have issues when plotting to
> a mercator grid? If so how can I go around this & if not: how can i fix
> this? Can it be that using a different projection requires a different
> plot-call?
>
>
> As of now I am out of ideas. If any one could point me in the right
> direction I would be very thankfull.
>
>
>
> Best regards,
>
>
> Dzengiz
>
> --
> You received this message because you are subscribed to the Google
> Groups "wradlib-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
wradlib-user...@googlegroups.com
> <mailto:
wradlib-user...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.