<div dir="ltr"><div dir="ltr">Hello NCL,<div><br></div><div>I was trying to calculate the percentage contribution of each elevation class (grouped in 100 m elevation bins) to precipitation over the whole elevation bands. The precipitation and elevation have same latitudes and longitudes, like precipitation(224,200) and elevation(224,200). Is there any function in NCL to do this kind of calculation? The plot can be like below: the solid blue line or the pink bars.</div><div><br></div><div>Thanks!</div><div><br></div><div>Xueyan</div><div><br></div><div><img src="cid:ii_kiwd7l8o0" alt="D5137966-53FD-41AB-A371-47178A31FB5D.png" width="504" height="185"><br></div></div></div>