如何在MATLAB绘制lat-lon-rainfall吗?- 江南体育网页版- - - - -地球科学堆江南电子竞技平台栈交换 最近30从www.hoelymoley.com 2023 - 07 - 09 - t13:44:25z //www.hoelymoley.com/feeds/question/5410 https://creativecommons.org/licenses/by-sa/4.0/rdf //www.hoelymoley.com/q/5410 6 如何在MATLAB绘制lat-lon-rainfall吗? dsbisht //www.hoelymoley.com/users/5330 2015 - 08 - 20 - t04:50:28z 2017 - 06 - 04 - t11:49:28z < p >我在几个网格,平均年降雨量值如下所示的例子;< / p > < p >纬度:25.5 26.5 33.5 34.5 35.5 36.5 41.5 42.5 < / p > < p >经度:89.5 91.5 78.5 79.5 83.5 84.5 75.5 76.5 < / p > < p >雨:110 120 122 135 114 116 145 120 110 110 < / p > < p >我想情节就像一张地图,这样示例< / p > < p > < a href = " https://i.stack.imgur.com/ygDyf.jpg " rel = " nofollow noreferrer " > < img src = " https://i.stack.imgur.com/ygDyf.jpg " alt = "例子情节" > < / > < / p > < p >每一点会有1度的单元格大小,必须有WGS 84投影。如何把它们在MATLAB ? < / p > < p >我有大约4000 lat-lon价值观和这些都不是按顺序。此外可用Lat-Lon代表形状不规则。< / p > //www.hoelymoley.com/questions/5410/-/5411 # 5411 4 答案为如何在MATLAB绘制lat-lon-rainfall Neo吗? Neo //www.hoelymoley.com/users/32 2015 - 08 - 20 - t05:31:33z 2015 - 08 - 20 - t06:16:48z < p >你想要什么样的阴谋?< / p > < blockquote > < p > Lat = (25.5 26.5 33.5 - 34.5 35.5 - 36.5 41.5 - 42.5);< / p > < p >经度= (89.5 91.5 78.5 - 79.5 83.5 - 84.5 75.5 - 76.5);< / p > < p >雨=[110 120 122 135 114 116 145 120 110 110),图()< / p > < p >, < / p > < p > plot3(纬度、经度、雨、“o”) < / p > < /引用> < p >将会给你一个散点图与纬度是x,经度是y, z和雨。< / p > < p >还要注意,因为你的向量legnths不同,你不能把它们。你必须有相同的向量长度绘制(轴上的每个点必须对应于另一个点)。< / p > < p >其他类型的情节将要求您插入数据点之间。< / p > < p >如果你想把它像在下面的评论:<强> pcolor < /强>是您最佳的选择。< / p > < p >说纬度/经度向量有n个点。然后让一个nxn网格,您可以使用命令< / p > < blockquote > < p > (X, Y) = meshgrid(纬度、经度);< / p > < /引用> < p >这将给你你想要的网格,只要你的纬度/经度间隔向量是如何你想要的。pcolor的颜色”,你需要一个nxn矩阵的雨价值观:你需要知道那些是每一点。如果你不知道这些,然后你不能绘制在地图视图,除非你做某种形式的建模或插值。< / p > < p >如果你有一个不规则的形状,我不会使用matlab。 I would use Visit or Paraview, and there are many guides online on how to use this.

If you must use matlab, I would create "fake points" to make the grid a regular shape, and give them false rain values (such as NaN). I would then edit the plot in a postprocessor (photoshop) so that Only the irregular shape appears.

The spacing of the grid does not matter as its specified via your vectors.

//www.hoelymoley.com/questions/5410/-/5412 # 5412 4 回答了如何在MATLAB绘制lat-lon-rainfall半日西蒙? 半日西蒙 //www.hoelymoley.com/users/39 2015 - 08 - 20 - t09:08:41z 2015 - 08 - 21 - t10:09:49z < p >有两个阶段你想要什么。< / p > < h2 > 1。将点数据转换为网格数据< / h2 > < p >首先,既然你想把常规的细胞而不是实际的数据,你需要隐蔽点数据细胞以某种方式。这样做的最好办法可能依赖于数据本身,但一种方法是插入,也许使用的东西,< / p > < pre > <代码> SI = scatteredInterpolant(经度、纬度、雨,“天然”,“线性”)%熟读并理解前的最后两个参数选择如何使用%网格形式,与点之间的距离1度。gx = min(朗):1:马克斯(朗);gy = min (Lat): 1:马克斯(Lat);(X, Y) = meshgrid (gx gy);%产生实际下雨的网格数据网格= SI (X, Y);< /代码> < / pre > < p >或者,如果你的点数据有更高的分辨率比1度网格,< em >如果是定期间隔< / em >,你可以采取的均值点,在于每一个细胞。< / p > < h2 > 2。绘图网格< / h2 > < p >一个幼稚的方法,这可能是有用的作为一个快速检查工作之前,是什么,是,< / p > < pre > <代码>图;显示亮度图像(flipud(网格)); colorbar;

However, that will treat lon and lat as x and y coordinates on a rectilinear grid. To plot with a projection (N.B., WGS84 is not a projection. You'll need to figure out exactly what you're after with more clarity), you ideally want the Mapping Toolbox. I'm not an expert on that, but it should make projected plots relatively straightfoward.

If you don't have access to the Mapping Toolbox, then you could spend a lot of time faffing with coordinate transforms to do what you want... but my advice would be to spend the time learning the basics of a GIS package instead (QGIS is free) and use that to do the job.

Baidu
map