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

R语言 RSAGA包 read.ascii.grid()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-28 21:17:12 | 显示全部楼层 |阅读模式
read.ascii.grid(RSAGA)
read.ascii.grid()所属R语言包:RSAGA

                                        Read/write ASCII, SAGA and Rd Grid Files
                                         读/写ASCII,SAGA和路网格文件

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

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

These functions provide simple interfaces for reading and writing grids from/to ASCII grids and Rd files. Grids are stored in
这些功能提供了简单的接口,用于读取和写入从/向ASCII网格和路文件的电网。网格存储在


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


read.ascii.grid(file, return.header = TRUE, print = 0,
    nodata.values = c(), at.once = TRUE, na.strings = "NA")
read.ascii.grid.header(file, ...)
read.sgrd(fname, return.header = TRUE, print = 0,
    nodata.values = c(), at.once = TRUE, prec = 7, ...)
read.Rd.grid(fname, return.header = TRUE)

write.ascii.grid(data, file, header = NULL, write.header = TRUE,
    digits, dec = ".", georef = "corner")
write.ascii.grid.header(file, header, georef, dec = ".")
write.sgrd(data, file, header = NULL, prec = 7,   
    georef = "corner", ...)
write.Rd.grid(data, file, header = NULL, write.header = TRUE,
    compress = TRUE)



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

参数:file
file name of an ASCII grid (extension defaults to .asc if not specified), or a connection open for reading or writing,  as required
文件名的ASCII网格(扩展名默认为.asc如果没有指定),或打开一个连接,读取或写入的要求,


参数:fname
file name of a grid stored as an R (.Rd) file; extension defaults to .Rd
一个网格存储的文件名作为R(.Rd)文件;扩展默认.Rd


参数:return.header
logical: should the grid header be returned (default), or just the grid data matrix? In the former case, read.ascii.grid returns a list with two components named data and header.
逻辑:网格标题应返回(默认),或网格数据矩阵?在前一种情况下,read.ascii.grid返回一个列表,有两个部分组成名为data和header。


参数:print
numeric, specifying how detailed the output reporting the progress should be (currently 0 to 2, 0 being minimum output).
数值,指定报告的进展的输出应该如何详细(目前为0~2,0是最小输出)。


参数:nodata.values
optional numeric vector specifying nodata values to be used in addition to the nodata value specified in the grid header; nodata values are converted to NA.
可选的数字向量指定NoData值除了无数据网格标头中指定的值中使用的;无数据值转换为NA。


参数:at.once
logical: if TRUE, read the whole grid with one scan command; if FALSE, read it row by row using scan with option nlines=1.
符合逻辑的:,如果TRUE,读取整个网格,一个scan如果FALSE,读行的行scan选项“nlines=1。


参数:data
grid data: a data matrix, or a list with components data (the grid data matrix) and header (the grid header information).
网格数据:一个数据矩阵或列表的组件data(网格数据矩阵)和header(网格标头信息)。


参数:header
optional list argument specifying the grid header information as returned by the read.ascii.grid or read.ascii.grid.header function; see Details
可选的list参数指定网格标头read.ascii.grid或read.ascii.grid.header函数返回的信息,请参阅详细


参数:write.header
logical: should the header be written with the grid data? (default: TRUE)  
逻辑:应写入的头与电网的数据? (默认:TRUE)


参数:digits
numeric: if not missing, write grid data rounded to this many digits
数字:如果不缺,写网格数据四舍五入到很多数字


参数:dec
character (default: "."): decimal mark used in input  or output file
字符(默认是:"."):小数符号的输入或输出文件


参数:georef
character: specifies whether the output grid should be  georeferenced by the "center" or "corner" of its  lower left grid cell; defaults to "corner".
字符:"center"或"corner"左下角的网格单元格的默认"corner"指定是否应输出网格GEO参考。


参数:compress
logical: should the .Rd file written by write.Rd.file be compressed? (default: TRUE)
符合逻辑的:.Rd文件写的write.Rd.file被压缩? (默认:TRUE)


参数:prec
integer: number of digits of temporary ASCII grid used for importing or exporting a SAGA grid
:用于导入或导出SAGA电网的临时ASCII格数字的整数数


参数:na.strings
passed on to scan.
传给scan。


参数:...
read.sgrd, write.sgrd: additional arguments to be passed to rsaga.geoprocessor  
read.sgrd,write.sgrd:额外的参数被传递给rsaga.geoprocessor


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

The read.* functions return either a list with components data (the grid data matrix) and header (the grid header  information, see below), if return.header=TRUE, or otherwise  just the grid data matrix return.header=FALSE.
read.*函数返回一个列表的组件data(网格数据矩阵)和header(网格标头信息,请参阅下文),如果return.header=TRUE,或以其他方式只网格数据矩阵return.header=FALSE。

The grid data matrix is a numeric matrix whose first column corrensponds to the first (i.e. northernmost) row of the grid. Columns run from left = West to right = East.
网格数据矩阵是一个数字矩阵的第一列corrensponds排发车的第一个(即最北端)。列运行=西左到右=东。

The header information returned by the read.ascii.grid[.header] functions (if return.header=TRUE) is a list with the following components:
头信息返回read.ascii.grid[.header]功能(如果return.header=TRUE),是以下组件的列表:


参数:ncols
Number of grid columns.
格列数。


参数:nrows
Number of grid rows.
网格行数。


参数:xllcorner
x coordinate of the corner of the lower left grid cell.
x坐标网格单元格的左下方的角落。


参数:yllcorner
y coordinate of the corner of the lower left grid cell.
y坐标网格单元格的左下方的角落。


参数:cellsize
Single numeric value specifying the size of a grid cell  or pixel in both x and y direction.
单的网格单元格的大小,或在x和y方向上的像素的数字值,该值指定。


参数:nodata_value
Single numeric value being interpreted as NA (typically -9999.
单一的数值被解释为NA(通常-9999。


参数:xllcenter
x coordinate of the center of the lower left grid cell
的左下网格单元的中心的x坐标


参数:yllcenter
y coordinate of the center of the lower left grid cell
的左下网格单元的中心的y坐标

Note: The order of the components, especially of ?llcorner and ?llcenter, may change, depending on the order in which they appear in the grid header and on the georeferencing method (center or corner) used for the grid. The ?llcorner and ?llcenter attributes differ only by cellsize/2.
注:该命令的组成部分,特别是?llcorner和?llcenter,可能会改变,这取决于上的顺序,它们出现在网格标头和GEO坐标定位法(中心或角)用于网格。 ?llcorner和?llcenter属性不同的cellsize/2。


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

The read.Rd.grid and write.Rd.grid functions use the load and save commands to store a grid. The variable name used is data, which is either a numeric matrix or a list with components
read.Rd.grid和write.Rd.grid功能使用load和save命令来存储网格。所使用的变量名是data,它可以是一个数字矩阵或与组件的列表


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


Alexander Brenning



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

write.ascii.grid, write.ascii.grid.header,
write.ascii.grid,write.ascii.grid.header,

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-27 03:13 , Processed in 0.027342 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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