Contour plot around edge on map
Afficher commentaires plus anciens
Hi
I have some data I have to plot on a world map. It has to be a contour.
This is what i have tried:
lat = data(:, 1);
lon = data(:, 2);
z = data(:, 3);
F = scatteredInterpolant(lat, lon, z);
[lat, lon] = meshgrid(linspace(-90, 90, 200), linspace(-180, 180, 200));
z = F(lat, lon);
figure;
worldmap world;
load coastlines;
plotm(coastlat, coastlon);
hold on;
contourm(lat, lon, z);
colorbar;

This do give a world map with a contour on it. But the edges are a problematic area. It seems to me that the intpolation cannot "go around corners", which makes sense. I am not sure if the contourm function can go around the edge if the correct interpolation is made.
Do anyone know how to do a better interpolation on a world map?
3 commentaires
KSSV
le 4 Oct 2017
There is some projection used for the world map...you must convert the contour coordinates to that projection.
Michael Madelaire
le 4 Oct 2017
Michael Madelaire
le 4 Oct 2017
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Vector and Raster Map Display dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

