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

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

[复制链接]
发表于 2012-9-30 00:07:55 | 显示全部楼层 |阅读模式
writeGPS(secr)
writeGPS()所属R语言包:secr

                                         Upload to GPS
                                         上传到GPS

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

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

Upload a set of point locations as waypoints to a GPS unit connected by USB or via a serial port. Intended primarily for detector locations in a traps object. Uses the GPSBabel package which must have been installed. Coordinates are first inverse-projected to latitude and longitude using function project from rgdal.
航点到GPS单元通过USB连接或通过串口上传了一组点位置。主要用于探测器位置的陷阱对象。使用GPSBabel的软件包,必须已经安装了。坐标是先反投影的经度和纬度使用函数project的rgdal。


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



writeGPS(xy, o = "garmin", F = "usb:", proj = "+proj=nzmg")




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

参数:xy
2-column matrix or dataframe of x-y coordinates
2列的矩阵或数据框的x-y坐标


参数:o
character output format (see GPSBabel documentation)
字符的输出格式(见GPSBabel的文件)


参数:F
character for destination (see Details)
字符目的地(见详情)


参数:proj
character string describing projection
字符串描述投影


Details

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

This function is derived in part from readGPS in maptools.
此功能部分源于readGPS中maptools。

For users of Garmin GPS units, useful values of o are "garmin" for direct upload via USB or serial ports, and "gdb" for a file in Mapsource database format.
Garmin的GPS设备,有用的值的用户o是通过USB或串行端口直接上传“极限特工”,和“广发行”MAPSOURCE数据库格式的文件。

F may be "usb:" or "com4:" etc. for upload via USB or serial ports, or the name of a file to create.
F可能是“USB”或“COM4:”等通过USB或串行端口上传,或创建一个文件的名称。

The proj argument may be complex. For further information see the Examples, http://www.remotesensing.org/geotiff/proj_list/ and the help for related package rgdal. If proj is an empty string then coordinates are assumed already to be latitudes (column 1) and longitudes (column 2).
proj参数可以是复杂的。欲了解更多信息,请参阅的例子,http://www.remotesensing.org/geotiff/proj_list/和相关套件“rgdal的帮助。如果proj是一个空字符串,则坐标已经被认为是纬度(第1栏)和经度(第2列)。

Waypoint names are derived from the rownames of xy.
航点的名称来自行名的xy。


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

No value is returned. The effect is to upload waypoints to an attached GPS or file.
无返回值。其效果是上载的航点到一个附加的GPS或文件。


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

GPSBabel is available free from http://www.gpsbabel.org/. Remember to add it to the Path. On Windows this means following something like Settings > Control panel > System > Advanced settings > Environment variables > (select Path) Edit and adding ";C:/Program Files (x86)/gpsbabel" to the end (without the quotes). Or ";C:/Program Files/gpsbabel" on 32-bit systems.
GPSBabel的是可以免费从http://www.gpsbabel.org/。记得将它添加到路径。在Windows中,这意味着类似设置>控制面板>系统>高级设置>环境变量>(选择路径),编辑和添加“,C :/ Program Files文件(X86)/ GPSBabel的”进行到底(不带引号)。 “C :/ Program Files文件/ GPSBabel的”32位系统。


参见----------See Also----------

make.systematic, readGPS, project
make.systematic,readGPS,project


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



## Example using shapefile "possumarea.shp" in[#示例使用的shapefile的“possumarea.shp”]
## "extdata" folder. As 'cluster' is not specified,[#“扩展数据”文件夹。作为“聚类”没有被指定,]
## the grid comprises single multi-catch detectors.[#电网由单一的多副渔获物探测器。]

## Not run: [#不运行:]
require(maptools)
setwd(system.file("extdata", package = "secr"))
possumarea <- readShapePoly("possumarea")  
possumgrid <- make.systematic(spacing = 100, region =
    possumarea, plt = TRUE)

## May upload directly to GPS...[#也可以直接上传到GPS ...]
writeGPS(possumgrid, proj = "+proj=nzmg")

## ...or save as Mapsource file[#...或保存为MAPSOURCE文件]
writeGPS(possumgrid, o = "gdb", F = "tempgrid.gdb",
    proj = "+proj=nzmg")

## If `region' had been specified in another projection[#如果区域已经指定了另一个投影]
## we would need to specify this as in Proj.4. Here is[#我们需要指定它,因为在PROJ.4。下面是]
## an example for New Zealand Transverse Mercator with[#一个例子新西兰横轴墨卡托投影]
## datum NZGD2000 (EPSG:2193)[数据NZGD2000(EPSG:2193)]

NZTM <- paste("+proj=tmerc +lat_0=0 +lon_0=173 +k=0.9996",
    "+x_0=1600000 +y_0=10000000 +ellps=GRS80",
    " +towgs84=0,0,0,0,0,0,0 +units=m +no_defs")

writeGPS(possumgridNZTM, o = "gdb", F = "tempNZTM.txt",
    proj = NZTM)

## Or to upload coordinates from UTM Zone 18 in eastern[#或上传坐标UTM 18区东部]
## Maryland, USA...[#美国马里兰州,...]

writeGPS(MarylandUTMgrid, proj =
    "+proj=utm +zone=18 +ellps=WGS84")


## End(Not run)[#(不执行)]


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-30 14:43 , Processed in 0.023477 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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