필터 지우기
필터 지우기

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

조회 수: 1 (최근 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
Behrooz Daneshian 2023년 4월 6일
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
Behrooz Daneshian 2023년 4월 6일
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