Plotting Contour Data On World Map

Hi there,

I was curious if anyone has had a successful experience plotting contoured data on a world map using Plotly. The best examples I could find were scatter maps of points which isn’t exactly what I’m looking for because I would like the colors to be continuous, instead of specific values at specific lat/lon points. Below is an example of what I’m looking for, my goal is to have something that is interactive.

I am working with surface pressure and surface temperature data so it makes a little more sense for the colors to be continuous. Let me know if you need any clarification.

Thanks!

Hi @jortuck welcome to the forums. Are you referring to something like this?

Hi there,

Thanks for your reply. That is close to what I’m looking for but not exactly what I need. From what I can tell, that heat map is still based on individual points (ex. when you zoom in you can still see each point). The data I am working with is continuous across the globe, so I am looking for a way to give the map a set of points (I have data for each lat/lon whole number), then from those points, generate a continuous surface which is a gradient that represents the data in between points.

Map Box has a great description for what I am looking for, but unfortunately no examples.

Among maps you’ll find on the web, there are two common categories of heatmaps: those that encourage the user to explore dense point data, and those that interpolate discrete values over a continuous surface, creating a smooth gradient between those points. The latter is less common and most often used in scientific publications or when a phenomenon is distributed over an area in a predictable way. For example, your town may only have a few weather stations, but your favorite weather app displays a smooth gradient of temperatures across the entire area of your town. For your local weather service, it is reasonable to assume that, if two adjacent stations report different temperatures, the temperature between them will transition gradually from one to the next.

Here is a map that uses the effect I am looking for: https://zoom.earth/maps/temperature/
As you can see, when you zoom in on that map, you aren’t able to identify individual points.

Thanks again for your reply!

Hey @jortuck, does this help?

Not quite. Forgive me if I’m wrong, but it seems that solution involves layering images on top of maps. I feel that could add restrictions when it comes to making it interactive (ex hover effects) and changing data on the fly. I appreciate you suggesting it though!

I did something similar some time ago, visualizing large meteorological datasets,

Maybe that could be an inspiration :blush:

2 Likes