简体   繁体   English

R中的离散全局网格

[英]Discrete Global Grid in R

I have a dataset consisting of latitude-longitude pairs associated with some Z value (eg data regarding degree of plant vegetation coverage). 我有一个数据集,包括与某些Z值相关的纬度 - 经度对(例如关于植物植被覆盖程度的数据)。

I'd like to perform some analyses on the spatial distribution of this data. 我想对这些数据的空间分布进行一些分析。

To do so, it will be necessary to bin proximal data points. 为此,需要对近端数据点进行分组。

I would like to do this with a Discrete Global Grid such as an Icosahedron Snyder Equal Area (ISEA) grid, or the grid produced by DGGRID . 我想用离散全球网格(如二十面体Snyder等面积(ISEA)网格)或DGGRID生成的网格来做到这一点

The key is that the latitude-longitude values of the data can be convertable into unique cell ids, that the latitude-longitude of the cell's center be determinable, the size of the cells be variable (for analysis at different spatial scales), and that the cells be of equal area to a close approximation. 关键是数据的纬度 - 经度值可以转换成唯一的细胞ID,细胞中心的纬度 - 经度是可确定的,细胞的大小是可变的(用于不同空间尺度的分析),细胞面积相等,近似近似。

An image depicting how this might look: 描绘其外观的图像:

离散全球网格

Is there anything in R which does this? R中有什么可以做到的吗?

After searching high and low for exactly the same issue, I have ended up using DGGRID itself and R. DGGRID is excellent by the way. 在搜索完全相同问题的高低之后,我最终使用了DGGRID本身和R. DGGRID顺便说一句。 All the hard work has been done. 所有艰苦的工作都已完成。 It would be a major boon to the R community to have it implemented as a package (I hope Kevin Sahr is reading this). 对于R社区来说,将它作为一个包实现是一个很大的好处(我希望Kevin Sahr正在阅读这篇文章)。

Incidentally, that URL is out of date. 顺便提一下,该URL已过期。 I made the same mistake and ended up with an older version of DGGRID. 我犯了同样的错误,最终得到了旧版本的DGGRID。 The newest one, which is two versions further along, is at: 最新的版本是两个版本,位于:

http://discreteglobalgrids.org/ http://discreteglobalgrids.org/

I've just completed an R package called dggridR which wraps dggrid in an easy-to-use way. 我刚刚完成了一个名为dggridR的R包,它以易于使用的方式包装dggrid。

The package is also available on CRAN . 该软件包也可在CRAN上获得

dggridR:R的离散全局网格

Why not use DGGRID itself, which can do everything you asked? 为什么不使用DGGRID本身,它可以做你要求的一切? For example, you could use DGGRID to transform a text file of lat/lon/datavalue records into records of the form cellID/datavalue, and then import those into R. 例如,您可以使用DGGRID将lat / lon / datavalue记录的文本文件转换为格式为cellID / datavalue的记录,然后将其导入R.

There is only one other lead I ever turned up for hexagonal gridding over a curved surface: some untested/beta functions for the hexbin package: 在曲面上只有一个其他引线用于六边形网格:hexbin包的一些未经测试/ beta函数:

http://ugrad.stat.ubc.ca/R/library/hexbin/html/00Index.html http://ugrad.stat.ubc.ca/R/library/hexbin/html/00Index.html

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

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