How can I make a grid on US maps based on latitude and longitude of its boundary polygon?

3 次查看(过去 30 天)
Hi all,
I am struggeling wth making a mesh on US map so that I could use contourm function to show specific parameter across the US. I can not use meshgrid function based on the bounding box since I will have contours somewhere outside the US. Can anyone help me with this regard?
  4 个评论
Behrooz Daneshian
Above is my code. you can use the shape file located in the attached zipped folder. A cell array called "prob" is also attached here (the last column of this cell array include longirtude, latitide, the probability that the specific parameter exceeds 1 foot, 2 feet, 3 feet, 4 feet, and 5 feet respectively). I think the way that I created mesh on Mineesota map is not correct and, consequently the contour values are wrong.
Behrooz Daneshian
I have estimated a specific parameter( freezing depth) for almost all weather stations having thier own longitude and latitude existing in the Minnesota state. As the stations are scatterd across the Minessota, I used scatteredInterpolant function to interpolate the freezing depth on the generated nodes(from the mesh) since I aim to draw contour lines for freezing depth. The main problem is with the way I generated the mesh in my code. I used inBoundary funvtion to exclude the points outside the state's boundary. However, I think I still have problem with that,

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by