Contour maps from lat-lon?

조회 수: 22 (최근 30일)
Andrea Cecilia
Andrea Cecilia 2019년 6월 20일
답변: darova 2021년 3월 24일
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

답변 (2개)

Aravind Ravikumar
Aravind Ravikumar 2019년 6월 20일
편집: Aravind Ravikumar 2019년 6월 20일
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
Joy Wingrave
Joy Wingrave 2020년 11월 2일
I have the same problem, did you find a soluion?
Alfred Ruff
Alfred Ruff 2021년 3월 23일
Hi did anlyone manage to solve this problem ?
im trying to plot wind speed against Lat and Long

댓글을 달려면 로그인하십시오.


darova
darova 2021년 3월 24일
  • Use griddata to create matrix data
  • Use contour

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by