Displaying 1 result from an estimated 1 matches for "spi24".
Did you mean:
spi2
2011 Sep 12
1
Problem in put.var.ncdf
...tty well until the step put.var.ncdf():
# Get variables
#---------------------
data1 <- open.ncdf("PREC_me_03-1500.nc")
prec1 <- get.var.ncdf(data1,"PRECT")
dim.time <- get.var.ncdf(data1,"time2")
close.ncdf(data1)
# Calculation
#---------------------
spi24.me <- spi.func(prec1)
--> spi24.me is a vector with 437270 values, ranging from -4 to 4 with 10
decimal places.
# Save as NetCDF
#---------------------
dim.time.spi <- dim.def.ncdf("time", "days since 1499-01-01 00:00:00",
dim.time)
var.spi.24.03.me <- var....