<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Users<br>
<br>
I would like to apply a multi-model ensemble drying mask to various CMIP5 model fields.<br>
This is how I am currently going about it in the code below. I work out the MME and then mask out wetting to only have regions of drying and then I multiply the mask to the original CMIP5 model files I would like to apply it to.<br>
Just would like to check if this is how to go about it or another better way. I feel my output is not 100% correct.<br>
<br>
Many thanks for your help in advance.<br>
<br>
Kindest Regards<br>
Melissa<br>
<br>
if (gg.eq.0) then<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dP_ENS = new ((/dimsizes(model),dimsizes(lat),dimsizes(lon)/), typeof(dP))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dP_ENS!0=&quot;model&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dP_ENS&amp;model=model&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; dP_ENS!1=&quot;lat&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dP_ENS&amp;lat=lat<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dP_ENS!2=&quot;lon&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dP_ENS&amp;lon=lon<br>
&nbsp;end if<br>
<br>
&nbsp;dP_ENS(gg,:,:) = dP(0,:,:)<br>
&nbsp;<br>
dP_ENSMEAN = dim_avg_n_Wrap(dP_ENS,0) ; dP_ENS(lat, lon)<br>
&nbsp;&nbsp;&nbsp; <br>
printVarSummary(dP_ENSMEAN)<br>
<br>
&nbsp;&nbsp;&nbsp; dP_ENS_dry = mask(dP_ENSMEAN,dP_ENSMEAN.gt.0, False)&nbsp; ; mask out all the wetting regions i.e. any values above 0 for dP<br>
<br>
dP_dry = new ((/dimsizes(lat),dimsizes(lon)/), typeof(dP_ENSMEAN))<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; dP_dry!0=&quot;lat&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dP_dry&amp;lat=lat<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dP_dry!1=&quot;lon&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dP_dry&amp;lon=lon<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; dP_dry = dP_ENS_dry(:,:) * dP(0,:,:)&nbsp; ; apply mask to original files dP<br>
<br>
</div>
</body>
</html>