如何使用多边形切砖?
我有一个bioclim变量的砖块文件,该砖块是由四个30秒的砖块合并而成的,所以它有点大。我想通过使用多边形作为边界进行切割来获取我的研究区域的砖块文件。我应该怎么办?否则,如果不可能用砖来做,我可以用光栅来做吗?
先谢谢啦~
马可
I have a brick file of the bioclim variables, the brick was merged from four 30sec tile brick, so it is a little bit large. I would like to get the brick file of my research area by cutting it using a polygon as boundary. What should I do? Otherwise, if it is not possible to do with brick, can I do it with raster?
Thanks in advance~
Marco
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想将砖块裁剪为较小的矩形,请查看
extent()
。如果您想通过单击进行选择,也可以使用drawExtent()
。编辑:由于您使用了术语“剪切”和“蒙版”,我不确定我是否理解正确,但这里有两种方法可能会有所帮助。您甚至可以同时使用两者。
Check out
extent()
if you want to crop the brick to a smaller rectangle. AlsodrawExtent()
if you would rather choose by clicking.EDIT: Since you used the terms "cut" and "mask" I am not sure I have understood correctly, but here are two ways that might help. You could even use both.