找回密码
 注册
查看: 1165|回复: 0

R语言 SpatialEpi包 latlong2grid()函数中文帮助文档(中英文对照)

  [复制链接]
发表于 2012-9-30 12:39:25 | 显示全部楼层 |阅读模式
latlong2grid(SpatialEpi)
latlong2grid()所属R语言包:SpatialEpi

                                        Convert Coordinates from Latitude/Longitude to Grid
                                         纬度/经度坐标转换网格

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Convert geographic latitude/longitude coordinates to kilometer-based grid coordinates.  
GEO纬度/经度坐标转换,以公里为基础的网格坐标。


用法----------Usage----------


latlong2grid(input)



参数----------Arguments----------

参数:input
either an n x 2 matrix of longitude and latitude coordinates in decimal format or an object of class SpatialPolygons (See SpatialPolygons-class)
一个n x 2分十进制格式或对象类SpatialPolygons的在经度和纬度坐标矩阵(见SpatialPolygons级)


Details

详细信息----------Details----------

Longitude/latitudes are not a grid-based coordinate system:  latitudes are equidistant but the distance between longitudes varies.
经度/纬度是不是一个基于网格的坐标系统:纬度是等距离的,但经度之间的距离变化。


值----------Value----------

Either a data frame with the corresponding (x,y) kilometer-based grid coordinates, or a SpatialPolygons object with the coordinates changed.
无论是数据框与相应的(的x,y)公里基于网格坐标,或SpatialPolygons对象的坐标改变。


注意----------Note----------

Rough conversion of US lat/long to km (used by GeoBUGS):  (see also forum.swarthmore.edu/dr.math/problems/longandlat.html).  Radius of earth: r = 3963.34 (equatorial) or 3949.99 (polar) mi = 6378.2 or 6356.7 km, which implies: km per mile  = 1.609299 or 1.609295 a change of 1 degree of latitude corresponds to the same number of km, regardless of longitude.  arclength=r*theta, so the multiplier for coord\$y should probably be just the radius of earth. On the other hand, a change of 1 degree in longitude corresponds to a different distance, depending on latitude.  (at N pole, the change is essentially 0.  at the equator, use equatorial radius.
粗糙的转换,美国纬度/长公里(使用GeoBUGS):(见也的forum.swarthmore.edu / dr.math /问题/ longandlat.html的),。地球半径:R = 3963.34(赤道),3949.99(极性)MI = 6378.2或6356.7公里的,这意味着公里,每英里= 1.609299 1.609295纬度1度的变化对应于相同的公里数,不管经度。弧长= R *θ,经纬度\ $ Y的乘数应该是地球的半径。另一方面,经度1度变化对应于一个不同的距离,根据纬度。 (N极的变化本质上是0。在赤道,赤道半径。


(作者)----------Author(s)----------


Lance A. Waller



实例----------Examples----------


## Convert coordinates[#转换坐标]
coord <- data.frame(rbind(
# Montreal, QC:  Latitude: 45deg 28' 0" N (deg min sec), Longitude: 73deg 45' 0" W[蒙特利尔,QC:纬度:45度280“N(度分秒),经度:73deg 450”W]
c(-73.7500, 45.4667),
# Vancouver, BC:  Latitude: 45deg 39' 38" N (deg min sec), Longitude: 122deg 36' 15" W[温哥华,BC:纬度:45度3938“N(度分秒),经度:122deg 3615”W]
c(-122.6042, 45.6605)
))
latlong2grid(coord)

## Convert SpatialPolygon[#转换SpatialPolygon]
data(pennLC)
new <- latlong2grid(pennLC$spatial.polygon)
par(mfrow=c(1,2))
plot(pennLC$spatial.polygon,axes=TRUE)
title("Lat/Long")
plot(new,axes=TRUE)
title("Grid (in km)")

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-13 10:57 , Processed in 0.036454 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表