【发布时间】:2017-08-03 00:17:35
【问题描述】:
给定一个带有自然年份的rasterbrick (Jan-Dec),如何将其转换为具有水文年份(从1st October and ending on the following 30th September 开始)?与here 的问题类似(但不准确)。
样本数据:
nl <- 768
s <- brick(nrows = 510, ncols = 1068,
xmn = -180, xmx = 180, ymn = -90, ymx = 90,
crs = "+proj=longlat +datum=WGS84",
nl = nl,values=TRUE)
dates <- seq(as.Date("1950-01-01"), as.Date("2013-12-31"), by = "month")
s <- setZ(s, dates)
vals <- 1:ncell(s)
s[]=vals
【问题讨论】:
标签: r maps time-series raster