A8_readBD(solaR)
A8_readBD()所属R语言包:solaR
Daily or intradaily values of global horizontal irradiation and ambient
每日或全球水平照射和环境intradaily值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Constructor for the class Meteo with values of daily or intradaily values of global horizontal irradiation and ambient temperature
的构造类Meteo的全球水平照射的的每日或intradaily值和环境温度的值
用法----------Usage----------
readBD(file, lat,
format='%d/%m/%Y',
header=TRUE, fill=TRUE, dec='.', sep=';',
dates.col='date',source=file)
readBDi(file, lat,
format='%d/%m/%Y %H:%M:%S',
header=TRUE, fill=TRUE, dec='.', sep=';',
time.col='time',
source=file)
df2Meteo(file, lat,
format='%d/%m/%Y',
dates.col='date',
source='')
dfI2Meteo(file, lat,
format='%d/%m/%Y %H:%M:%S',
time.col='time',
source='')
zoo2Meteo(file, lat, source='')
参数----------Arguments----------
参数:file
The name of the file (readBD and readBDi), data.frame (df2Meteo and dfI2Meteo) or zoo (zoo2Meteo) which the data are to be read from. It should contain a column G0 with daily (readBD and df2Meteo) or intradaily (readBDi and dfI2Meteo) values of global horizontal irradiation (Wh/m虏). It should also include a column named Ta with values of ambient temperature. However, if the object is only a vector with irradiation values, it will converted to a zoo with two columns named G0 and Ta (filled with constant values) If the Meteo object is to be used with calcG0 (or fCompD, fCompI) and the option corr='none', the file/data.frame must include three columns named G0, B0 and D0 with values of global, direct and diffuse irradiation on the horizontal plane. Only for daily data: if the ambient temperature is not available, the file should include two columns named TempMax and TempMin with daily values of maximum and minimum ambient temperature, respectively (see fTemp for details).
该文件的文件名(readBD和readBDi)data.frame(df2Meteo和dfI2Meteo)zoo(zoo2Meteo)该数据被读出。它应该包含的列G0(readBD和每日df2Meteo)或intradaily(readBDi和dfI2Meteo)全球水平辐射值(瓦/平方米) 。它也应该包括一个名为Ta与环境温度的值的列。然而,如果该对象的照射值仅仅是一个向量,它会转化成一个zoo名为G0和Ta(充满恒定值)如果两列Meteo对象是使用calcG0(或fCompD,fCompI)选项corr='none',文件/数据框必须包含三列名为G0 ,B0和D0全球性的,直接的和漫照射在水平面上的值。仅适用于日常的数据:如果环境温度是不可用的,该文件应该包括两列名为TempMax和TempMin的最大和最小的环境温度,分别与日常值(见fTemp详细信息)。
参数:header, fill, dec, sep
See read.table
见read.table
参数:format
character string with the format of the dates or time index. (Default for daily time bases:%d/%m/%Y). (Default for intradaily time bases: %d/%m/%Y %H:%M:%S)
字符串格式的日期或时间索引。 (默认情况下,每天的时间依据:%d/%m/%Y)。 (默认情况下,intradaily时间依据:%d/%m/%Y %H:%M:%S)
参数:lat
numeric, latitude (degrees) of the location.
数值,纬度(度)的位置。
参数:dates.col
character string with the name of the column wich contains the dates of the time series.
列至极的名称的字符串,包含日期的时间序列。
参数:time.col
character string with the name of the column wich contains the time index of the series.
列至极的名称的字符串,包含该系列的时间索引。
参数:source
character string with information about the source of the values. (Default: the name of the file).
信息源的值的字符串。 (默认的文件名)。
值----------Value----------
A Meteo object.
AMeteo对象。
(作者)----------Author(s)----------
Oscar Perpi帽谩n Lamigueiro.
参见----------See Also----------
read.table, readSIAR, readG0dm.
read.table,readSIAR,readG0dm。
实例----------Examples----------
data(helios)
names(helios)=c('date', 'G0', 'TempMax', 'TempMin')
bd=df2Meteo(helios, dates.col='date', lat=41, source='helios-IES', format='%Y/%m/%d')
summary(getData(bd))
xyplot(bd)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|