NetCDFFile-class(Streamer)
NetCDFFile-class()所属R语言包:Streamer
Class "NetCDFFile"
类“NetCDFFile”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A NetCDFFile-class to interpret data stored in NetCDF files. Users interact with this class through the constructor NetCDFFile and methods precision, and dimensions.
一个NetCDFFile级解释NetCDF文件中存储的数据。用户交互通过这个类的构造NetCDFFile方法precision,dimensions。
用法----------Usage----------
NetCDFFile(file = character(), ...)
## S4 method for signature 'NetCDFFile'
dimensions(x, ...)
## S4 method for signature 'NetCDFFile'
precision(x, ...)
参数----------Arguments----------
参数:file
A character string for the path to the NetCDF file.
一个netCDF文件的路径字符串。
参数:x
An insance of the NetCDFFile class.
的NetCDFFile类insance。
参数:...
Additional arguments, passed to the $new method of this class. Currently ignored.
额外的参数传递$new这个类的方法。目前被忽略。
类的方法----------Class Methods----------
precision(): Returns a named character vector corresponding to the storage precision of the variables in the
precision():返回一个名为对应的特征向量存储在变量精度
dimensions(): Returns a named list containing the names and lengths of the dimensions for each variable in the
dimensions():返回一个名为list包含每个变量的名称和长度的尺寸在
类的内部字段:(开发人员)----------Class Internal Fields: (For developers)----------
con: Object of class ncdf4. An R ncdf4 connection obtained by opening a NetCDF file from which data is to
con类ncdf4的对象。一个R ncdf4连接打开netCDF文件,从其中的数据是,获得
dimensions: A named list corresponding to the names of the variables in the NetCDF file. Each element of the list is a named integer vector, with names of the dimensions for each variable and values the length of the
dimensions:一个名为list相应的netCDF文件中的变量的名称。 list的每个元素是一个命名的整数向量,尺寸为每个变量的名称和值的长度
precision: A named character vector of the number of
precision:一个命名的特征向量的数量
类的内部方法:(对于开发人员)----------Class Internal Methods: (For developers)----------
initialize(file=character(), ...): Called during object creation with file being the path to a valid NetCDF
initialize(file=character(), ...):创建对象期间调用file是一个有效的NetCDF的路径
getPath(): Retrive the path to the NetCDF file.
getPath():Retrive netCDF文件的路径。
getDimensions(): Retrieves a list of variables, with each element in the list containing a named integer vector of
getDimensions():检索变量的列表,在列表包含一个名为整数向量的每个元素
getPrecision(): Retrieves the precision of each
getPrecision():检索每个精度
finalize(): Close the NetCDF connection con.
finalize():关闭NetCDF的连接con。
作者(S)----------Author(s)----------
Nishant Gopalakrishnan <a href="ngopalak@fhcrc.org">ngopalak@fhcrc.org</a>
参见----------See Also----------
stream
stream
举例----------Examples----------
## Not run: [#无法运行:]
pth <- system.file("extdata", "NetCDFData.nc", package = "Streamer")
ncFile <- NetCDFFile(pth)
dimensions(ncFile)
precision(ncFile)
ncFile
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|