eloop function is similar to the
tloop function. When displaying a grads expression (
expr) with the E (Ensemble) dimension varying, the
eloop function will evaluate the
exprwith each designated ensemble member fixed, then reassemble the grids to obtain a final result that is E-varying. The
eloop function is provided as a way to obtain E-varying results from functions or expressions that are unable to operate when E is a varying dimension.
- Suppose you have an ensemble forecast with 15 ensemble members, and you want to evaluate the accuracy of each ensemble member by comparing it to reanalysis. You need to calculate the difference between an E-varying data set (the forecast) with a non-E-varying data set (reanalysis).
open rean.ctlset lon -77set lat 39set e 1 15set t 1 lastd eloop(t2m.1-t2m.2(e=1))