简体   繁体   English

将测深分配给光栅 map

[英]Assign bathymetry to raster map

I have a fishing zone between Latitudes 20°N and 26°N and I want to assign bathymetry to each square of the resolution 5 nautical miles (Or 1 nautical mile).我在纬度 20°N 和 26°N 之间有一个捕鱼区,我想将水深测量分配给分辨率的每个方格 5 海里(或 1 海里)。 I tried the next R code but I get positive bathymetry inside the ocean which is wrong.我尝试了下一个 R 代码,但我在海洋中得到了正测深,这是错误的。

marmap::getNOAA.bathy(xmin ,
                      xmax ,
                      ymin ,
                      ymax ,
                      resolution = 5)

Where xmin, xmax, ymin, ymax represent the limits of the zone.其中 xmin、xmax、ymin、ymax 代表区域的界限。

Is there any other solution that you suggest?您还有其他解决方案吗? Thanks谢谢

I suppose you reversed longitudes and latitudes.我想你颠倒了经度和纬度。 the syntax of getNOAA.bathy is as follows: getNOAA.bathy的语法如下:

getNOAA.bathy(lon1, lon2, lat1, lat2, resolution)

If your longitudes are located to the West of the greenwich meridian, they should also be negative.如果您的经度位于格林威治子午线以西,则它们也应该为负数。

Finally, you might get a "could not reach NOAA servers" error message when using getNOAA.bathy() since the NOAA removed the server on which the function used to make its queries up until very recently.最后,您可能会在使用getNOAA.bathy()时收到“无法到达 NOAA 服务器”错误消息,因为 NOAA 删除了 function 直到最近才用来进行查询的服务器。 We are working on a fix and should be releasing it on github and on CRAN servers in the next few days.我们正在努力修复,应该会在接下来的几天内在 github 和 CRAN 服务器上发布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM