Spatial Analysis and Visualization of Climate Data Using R
David Sathiaraj NOAA Southern Regional Climate Center Louisiana State University
Spatial Analysis and Visualization of Climate Data Using R David - - PowerPoint PPT Presentation
Spatial Analysis and Visualization of Climate Data Using R David Sathiaraj NOAA Southern Regional Climate Center Louisiana State University ACIS ACIS - Applied Climate Information System (www.rcc-acis.org) Provides Storage, Access and
David Sathiaraj NOAA Southern Regional Climate Center Louisiana State University
Disk Disk Disk Data Sets Metadata
QC
Products
Real Time Feed Data Synchronization
usdiv = readShapePoly(“divisions.shp”) plot(usdiv,col=brewer.pal(11, `Spectral’)
data)
!!"# !!!# !!## !$# !%# !&# "# '# (# )#
data)
!!"# !!"" !$# !$" !%# &# '" '# ("
climate data)
brewer.pal(nclr,"RdYlGn")
round(seq(min(prcp),max(prcp), by=ratio),digits=0)
brks, all.inside=T)
!!"# !!"" !$# !$" !%# &# '" '# (" )*+,-./01 )2.-./01
2005 Prcp Total: SRCC Divisions
col=colours[colorIndx], xlab="Longitude", ylab="Latitude")
Divisions")
legend=leglabs(brks), fill=colours, cex=1, bty="o")
!!"# !!"" !$# !$" !%# &# '" '# (" )*+,-./01 )2.-./01
2005 Prcp Total: SRCC Divisions
/+0134!% !%4!4&' &'4!4&$ &$4!4'( '(4!4(" ("4!4(# (#4!4#" #"4!4#5 *6134#5
!!"# !!"" !$# !$" !%# &# '" '# (" )*+,-./01 )2.-./01
2005 Prcp Total: SRCC Divisions
/+0134!% !%4!4&' &'4!4&$ &$4!4'( '(4!4(" ("4!4(# (#4!4#" #"4!4#5 *6134#5
fit=krig.image(xy,z,cov.function=Exp.image.cov,m=mx,n=nx,lambda=0.01, kmax=1000,expand=1.2) res<- predict( fit, fit$xM) - fit$yM img=list(fit$surface$x,fit$surface$y,fit$surface$z) proj_pts = mapproject(list(x=img$x,y=img$y),projection="mercator") proj_img = list(x=proj_pts$x,y=proj_pts$y,z=img$z) proj_img = mask(proj_img) image.plot(proj_img,col=rev(tim.colors(64)),xlab='Longitude',ylab='La titude',add=1,projection="",horizontal=1)
‘outside’ (O) - ‘inout’ method in the ‘sp’ package
‘inside’ points, I
−94 −93 −92 −91 −90 −89 32 33 34 35 36 37 Longitude Latitude
Baton Rouge Ryan Airport
Temperature [F]
01 15 01 15 01 15 01 15 01 15 01 15 01 15 01 15 01 15 01 15 01 15 01 15Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
30 40 50 60 70 80 90 100 Precipitation [in]
01 15 01 15 01 15 01 15 01 15 01 15 01 15 01 15 01 15 01 15 01 15 01 15Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2007
10 20 30 40 50 60