RAnEnExtra::verifyRankHist calculates the rank histogram.

verifyRankHist(anen.ver, obs.ver, show.progress = F, pre.sort = F)

Arguments

anen.ver

A 4-dimensional array. This array is usually created from the value column of the analogs member in the results of RAnEn::generateAnalogs. The dimensions should be [stations, times, lead times, members].

obs.ver

A 3-dimensional array. The dimensions should be [stations, times, lead times]. You can generate the array using RAnEn::alignObservations.

show.progress

Whether to plot a progress bar.

pre.sort

If your anen.ver members are already sorted, you can save ~ 80% of execution time. To pre-sort your members, use this line anen.ver = aperm(apply(anen.ver, 1:3, sort, na.last = T), c(2, 3, 4, 1)).