Contour maps from lat-lon?

19 vues (au cours des 30 derniers jours)
Andrea Cecilia
Andrea Cecilia le 20 Juin 2019
Réponse apportée : darova le 24 Mar 2021
Hi to everyone
I need to create contour maps of parameter T (temperature) from a grid of type
Latitude Longitude T
42.44567 12.457393 25.3
... ... ...
I also have a shapefile to put as bakground of these maps.
I don't need to interpolate with a complex algorithm the values, because the grid contained in the file comes from an interpolation algorithm and it is very thick (250 m of resolution). So, it is enough to use something like the inverse of the square of distance to plot the contour maps.
Because I am new in matlab world, can someone give me some tips for starting?
the final objective is obtaining something like this:
atem_bbroma.png
Thank you

Réponses (2)

Aravind Ravikumar
Aravind Ravikumar le 20 Juin 2019
Modifié(e) : Aravind Ravikumar le 20 Juin 2019
Hey, you could use the contour() function (documentation here). More specifically you can use, countour(X,Y,Z) with Latitude as X, Longitude as Y, T as Z. You can also add title to your figure (documentation here).
You can use mapshow() (documentation here) with shaperead() (documentation here) to load your shapefile. You can overlay the figures with hold on or you could try something like this.
  3 commentaires
Joy Wingrave
Joy Wingrave le 2 Nov 2020
I have the same problem, did you find a soluion?
Alfred Ruff
Alfred Ruff le 23 Mar 2021
Hi did anlyone manage to solve this problem ?
im trying to plot wind speed against Lat and Long

Connectez-vous pour commenter.


darova
darova le 24 Mar 2021
  • Use griddata to create matrix data
  • Use contour

Catégories

En savoir plus sur Geographic Plots dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by