A8_readSIAR(solaR)
A8_readSIAR()所属R语言包:solaR
Meteorological data from www.marm.es/siar
气象数据www.marm.es / SIAR
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Download and transform meteorological data from www.marm.es/siar for a station of a province (Spain) in a time period.
下载并转换SIAR在一段时间内的省(西班牙)站/ www.marm.es的气象数据。
用法----------Usage----------
readSIAR(prov, est, start, end, lat=0, format='%d/%m/%Y')
readMAPA(prov, est, start, end, lat=0, format='%d/%m/%Y')
参数----------Arguments----------
参数:prov
numeric, number of the spanish province according to the information of www.marm.es/siar (see details below).
数字,西班牙省的一些根据的信息的www.marm.es / SIAR(详见下文)。
参数:est
numeric, number of the station according to the information of www.marm.es/siar (see details below).
数字,站的数量的信息的www.marm.es / SIAR(详见下文)。
参数:start
character, first day of the time period.
字符,第一天的时间段。
参数:end
character, last day of the time period.
字符,最后一天的时间段。
参数:lat
numeric, latitude (degrees) of the station.
数值,纬度(度)的站。
参数:format
character string with the format of the start and end dates. (Default: '%d/%m/%Y')
字符串start和end日期的格式。 (默认值:“%D /%M /%Y)
Details
详细信息----------Details----------
The number codes of the stations and provinces are available at http:/solar.r-forge.r-project.org/data/SIAR.csv', a data frame with 8 columns:
在http:/solar.r-forge.r-project.org/data/SIAR.csv 8列,数据框的站位和各省提供的数字代码:
N_Estacion Code of the station
N_Estacion站的代码
Estacion Name of the station
Estacion站名
N_Provincia Code of the Province
N_Provincia省守则
Provincia Name of the Province
Provincia省名称
Comunidad Name of the Community (first-level political
Comunidad的社区名称(第一级政治
lon Longitude (degrees)
lon经度(度)
lat Latitude (degrees)
lat纬度(度)
Altitud Altitude (meters)
Altitud海拔高度(米)
Part of this information has been obtained with a "trial-and-error" procedure so could include mistakes.
本网站的部分资料已取得的“试验和错误的”程序可能包含错误。
The latitude, longitude and altitude information have been obtained in the context of a Master Project at the EOI (https://sites.google.com/a/learning.eoi.es/merme2010-estudioradiacionsolar/home) by Fernando Anto帽anzas Torres, Federico Ca帽izares Jover, Rafael Morales Cabrera and Manuel Ojeda Fern谩ndez. This dataset is an improvement of
纬度,经度和海拔高度信息已经取得硕士项目的背景下,的EOI(https://sites.google.com/a/learning.eoi.es/merme2010-estudioradiacionsolar/home)由费尔南多Antoñanzas的托雷斯,费德里科·卡尼萨雷斯JOVER,拉斐尔·卡布雷拉和曼努埃尔·奥赫达·费尔南德斯·莫拉莱斯。该数据集是一个改进
值----------Value----------
Meteo object, with the information available at www.marm.es/siar.
Meteo对象,提供的信息,在www.marm.es / SIAR。
It should be noted that SIAR uses MJ/m虏 units for the irradiation data and readSIAR converts the values to
应当指出,SIAR使用兆焦耳/平方米的单位的照射数据readSIAR将值转换为
注意----------Note----------
The webpage of SIAR has changed. The meteorological data is no longer available at www.mapa.es/siar. Therefore, the name readMAPA has been deprecated and the function readSIAR
SIAR的网页,已经改变了。气象数据是不再,在www.mapa.es / SIAR。因此,的名称readMAPA已经过时,功能readSIAR
(作者)----------Author(s)----------
Oscar Perpi帽谩n Lamigueiro.
参考文献----------References----------
<h3>See Also</h3> <code>readG0dm</code>, <code>readBD</code>, <code>fTemp</code>, <code>read.zoo</code>
实例----------Examples----------
## Not run: [#不运行:]
#Aranjuez, Madrid[阿兰胡埃斯,马德里]
BD<-readSIAR(28,3,'01/01/2008','31/12/2008')
xyplot(TempMedia~G0|equal.count(VelViento),data=BD)
## End(Not run)[#(不执行)]
## Not run: [#不运行:]
## Plot the stations in a map[#图的站图]
library(sp)
library(maptools)
SIAR <- read.csv('http://solar.r-forge.r-project.org/data/SIAR.csv')
proj <- CRS('+proj=longlat +ellps=WGS84')
spSIAR <- SpatialPointsDataFrame(SIAR[, c(6, 7)], SIAR[, -c(6, 7)],
proj4str=proj)
###download a shapefile with the administrative borders of Spain[##下载shapefile的的行政边界西班牙的]
old <- setwd(tempdir())
download.file('http://www.gadm.org/data/shp/ESP_adm.zip', 'ESP_adm.zip')
unzip('ESP_adm.zip')
mapaSHP <- readShapeLines('ESP_adm2.shp', proj4string=proj)
setwd(old)
p <- spplot(spSIAR['Comunidad'],
col.regions=brewer.pal(n=12, 'Paired'),
key.space='right', scales=list(draw=TRUE),
type=c('p','g'))
p + layer(sp.lines(mapaSHP))
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|