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

1 visualización (últimos 30 días)
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 comentarios
Behrooz Daneshian
Behrooz Daneshian el 6 de Abr. de 2023
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 el 6 de Abr. de 2023
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,

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by