从纬度和经度点创建位置网格

Creating a Position Grid from Latitude and Longitude Points

我有两个数据集:一个是纬度,一个是经度。这两个数据的大小都是336x264。

我想使用 MATLAB 将此数据转换为位置点的网格。

所以基本上是这样的:

对此:

如果有一个标准化的方法来解决这个问题,我不想在这里重新发明轮子,所以我想我应该看看社区是否有任何预先存在的资源来完成这类任务!

谢谢你,最好的, 泰勒

如果您有映射工具箱,您可以使用 projfwd 函数来完成此操作:

% First, create the projection struct
mstr = defaultm('mercator'); %Or whatever projection you want to use

% Then, project your points
[x,y] = projfwd(mstr,lat,lon);