7
Raster and R Building and Visualizing

Raster and R

  • Upload
    durin

  • View
    93

  • Download
    0

Embed Size (px)

DESCRIPTION

Raster and R. Building and Visualizing. What is Raster Data?. A rectangular grid containing pixels. Each pixel contains a value Value is represented by a color. Raster space-time plots. Raster Stacks & Bricks Multidimensional raster objects Multi-layer ( red,green,blue ) - PowerPoint PPT Presentation

Citation preview

Page 1: Raster and R

Raster and RBuilding and Visualizing

Page 2: Raster and R

What is Raster Data?

• A rectangular grid containing pixels.

• Each pixel contains a value

• Value is represented by a color.

Page 3: Raster and R

Raster space-time plots• Raster Stacks & Bricks

• Multidimensional raster objects• Multi-layer (red,green,blue)• Multi-dim (time series, multi variable)

X

YZ

stack[row# ,col#, Z#]

Page 4: Raster and R

Raster space-time plots• Multi-dimentional Raster Stack

• Good for time-series of rasters, or multivariate analysis

Time Seriesstack[x,y, c(cwd2010) ]

Y

XCWD 2010

By Month

Page 5: Raster and R

Setup Raster Stack Data Helpful Functions

dir(‘your//Data//Location’)

grep()

grep(‘a’, c( ‘a’, ‘b’, ‘c’, ‘a’ ) )dir()

grep(‘c’, c( ‘tab’, ‘car’, ‘bat’ ) )

Page 6: Raster and R

Create Raster Stacks and Assign Name LabelsHelpful

Functions

paste(c(‘Jan',‘Feb', ‘Mar‘...), sep=' ')

paste() names()names(rstack) = c(Jan’,’Feb’)

Jan

Feb

Y

X

Page 7: Raster and R

Sources• Information for the Raster package from

cran created by Robert Hijmans• RasterVis package Github created by

Oscar Lamiguero.• And Mike Mann in Geography Department