The 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 expr with 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.


  1. 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).