Dear Kai,
thanks for pointing out these issues.
Just some quick explanations and comments:
Just recently, I discussed with Thomas (and here I am already punished
for not having this discussion via wradlib-dev) how we should proceed
with the cartesian plot functions, most importantly the class
CartesianPlot and the corresponding convenience function
cartesian_plot. We agreed that these functions do not really add value
anymore. Their core basically is a call to pcolormesh, and our
understanding was that this would not need a special wradlib interface.
We thought that it would be more appropriate to provide a tutorial or
a recipe on how to plot data on Cartesian grids using standard
matplotlib funcionalities.
I am very grateful to you for pointing out inconsistencies in the
examples. Basemap is another related issue: Once upon a time, we
carried Basemap as a wradlib dependency and also had corresponding
functions in the vis module. Then we decided to remove Basemap as a
dependency (because it is so bulky and not a standard package in
Python(x,y)), but obviously, I did not clean up the examples. Here,
again, our idea was to provide a recipe on how to plot over maps using
Basemap.
So I guess your suggestions are all pointing in the right direction:
First question should be: Do we want to have a convenience funciton in
wradlib.vis that allows for plotting Cartesian grids? I say no. I
would also vote against making Basemap a part of wradlib, again.
So my suggestion would be the following:
- clean up documentation and all examples. Remove examples that use
deprecated function or even functions that do no onger exist.
- add a tutorial/recipe on how to use matplotlib to plot Cartesian grids
- add a tutorial/recipe on how to use Basemap to plot over maps
I am not so sure on how to proceed with vis.plot_plan_and_vert because
this function provides a little non-standard functionality by allowing
to plot a CAPPI together with vertical cross-sections along both
horizontal axes. One might argue that users could construct something
like this by themselves and we should only provide guidance on that.
One could also argue that it is a useful service to the users to
provide this function, but that it might need some clean-up and
streamlining.
One word about the difference between tutorials and recipes (they also
have different sections in the documentation). We thought that a
tutorial would be a little more systematic introduction into a
specific topic, including also a lot of guidance and explanation. A
recipe, in constrast, would only contain a short header which explains
what the recipe is about, and the rest would be a reference to a more
or less self-explaining Python script.
Altogether, this discussion again proves the need for testing and
automatic deployment...
Ok, that much from me.
Bests,
Maik
> --
> You received this message because you are subscribed to the Google
> Groups "wradlib-dev" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
wradlib-dev...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
--
Dr. Maik Heistermann
Universität Potsdam
Institut für Erd- und Umweltwissenschaften
Karl-Liebknecht-Str. 24-25
14476 Potsdam-Golm
phone:
+49 331 977 2671