Example use case for plotting geographic data with Bokeh

I ended up on this page through the bokeh user guide → geographical data. As a meteorologist, I often use large geographical dataset with 4-dimensional (lon,lat,height,time) fields like temperature. Normally I would plot those with matplotlib using filled contours or pcolormesh or so. With Bokeh, I couldn’t find any functionality like that, so I used circles the represent my grid points and colored them according to temperature. My example can be found in the link below. I think this might be a useful reference for others, as I had to spend quite some time figuring out how to achieve this plot. Also, I think it can serve as an example for the kind of functionality I’m looking for.

https://peter9192.github.io/WRF_Bokeh

Thanks for the link and example. Bokeh doesn't yet support "patches with holes" which is why it does not yet support things like filled contour plots. It's on the TODO list, for sure but there is currently more to do than people to do work, so I can't say when it might be completed.

If you really wanted something like pcolormesh it would probably be possible, using quads/rects in unprotected spaces, or patches in projected spaces.

Thanks,

Bryan

···

On Feb 16, 2017, at 12:34, Peter9192 <[email protected]> wrote:

I ended up on this page through the bokeh user guide --> geographical data. As a meteorologist, I often use large geographical dataset with 4-dimensional (lon,lat,height,time) fields like temperature. Normally I would plot those with matplotlib using filled contours or pcolormesh or so. With Bokeh, I couldn't find any functionality like that, so I used circles the represent my grid points and colored them according to temperature. My example can be found in the link below. I think this might be a useful reference for others, as I had to spend quite some time figuring out how to achieve this plot. Also, I think it can serve as an example for the kind of functionality I'm looking for.

https://peter9192.github.io/WRF_Bokeh

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d7abb118-2160-4f44-9e09-fadce4dfccee%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.