Return data.framee
xtractor(x, points, stations, start = "2016-04-15 00:00", by = 3600)
x | raster (or brick) |
---|---|
points | data.frame, matrix, SpatialPointsDataFrame. |
stations | Character; names of stations for each point. |
start | Character or POSIXct; first GMT hour of data. |
by | Numeric, number of seconds in time sequence. |
Return long data.frame (for ggplot2)
Based on NCL scrip xtractor from DCA/IAG/USP
# NOT RUN { #do not run # }