Closed thiagoveloso closed 4 years ago
Issue solved. I solved it by changing the original function climdex.prcptot
from
function (ci)
{
stopifnot(!is.null(ci@data$prec))
return(total.precip.op.threshold(ci@data$prec, ci@date.factors$annual,
1, ">=") * ci@namasks$annual$prec)
}
to
function (ci)
{
stopifnot(!is.null(ci@data$prec))
return(total.precip.op.threshold(ci@data$prec, ci@date.factors$monthly,
1, ">=") * ci@namasks$monthly$prec)
}
Notice annual
being replaced by monthly
, which I suppose will work in other functions as well.
Thanks for this awesome package, it is really useful.
From the 27 indices, there are 16 for temperature and 11 for precipitation. Currently, for the precipitation ones, only
Rx1day
andRx5day
can be calculated on a monthly basis.Would it be possible to calculate some of other precip indices (for instance,
PRCPTOT
andCWD
) on a monthly frequency as well?Thanks in advance, T.