<div dir="ltr"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hello, </span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I am trying to plot annual cycle of precipitation. I could plot it but I have space after December. how can I remove that space? </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div><span style="font-size:12.8px">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</span></div><div><span style="font-size:12.8px">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</span></div><div><span style="font-size:12.8px">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</span></div><div><span style="font-size:12.8px">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl"</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">begin</span></div><div><span style="font-size:12.8px">;----------------------------------------------------------------------</span></div><div><span style="font-size:12.8px">f    =  "<a href="http://mon.precip.nc">mon.precip.nc</a>"</span></div><div><span style="font-size:12.8px">f1   = addfile(f, "r")</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">time = f1->time</span></div><div><span style="font-size:12.8px">ymd = cd_calendar(time,2)</span></div><div><span style="font-size:12.8px">iTime = ind (ymd.ge.19790101.and.ymd.lt.20130101)</span></div><div><span style="font-size:12.8px">precip = f1->precip (iTime,{0:-12},{90:130})</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Avg = dim_avg_Wrap(dim_avg_Wrap( precip(time|:,lat|:,lon|:)))</span></div><div><span style="font-size:12.8px">index = abs(Avg)</span></div><div><span style="font-size:12.8px">index!0 = "time"</span></div><div><span style="font-size:12.8px">index&time = Avg&time</span></div><div><span style="font-size:12.8px">;------------------------------------------------------------</span></div><div><span style="font-size:12.8px">T = index&time</span></div><div><span style="font-size:12.8px">YMD = cd_calendar(T,0)</span></div><div><span style="font-size:12.8px">imont = tointeger(YMD(:,1))</span></div><div><span style="font-size:12.8px">;-----------------------------------------------------------------------</span></div><div><span style="font-size:12.8px">k= new((/12/),float)</span></div><div><span style="font-size:12.8px">do mo = 0,11</span></div><div><span style="font-size:12.8px">mo1=mo+1</span></div><div><span style="font-size:12.8px">Nmont = ind(imont.eq.mo1)</span></div><div><span style="font-size:12.8px">k(mo) = dim_avg_Wrap(index(time|Nmont))</span></div><div><span style="font-size:12.8px">end do</span></div><div><span style="font-size:12.8px">;printVarSummary(k)</span></div><div><span style="font-size:12.8px">;---------------------------------------------------------------------</span></div><div><span style="font-size:12.8px">x = new((/12/),float)</span></div><div><span style="font-size:12.8px">x = (/00.,01.,02.,03.,04.,05.,06.,07.,08.,09.,10.,11./)</span></div><div><span style="font-size:12.8px">;--------------------------------------------------------------</span></div><div><span style="font-size:12.8px">res2                        = True</span></div><div><span style="font-size:12.8px">res2@tiMainString           = "Monthly precipitation"</span></div><div><span style="font-size:12.8px">res2@tiXAxisString          = "months"</span></div><div><span style="font-size:12.8px">res2@tiYAxisString          = "precipitation (mm/month)"</span></div><div><span style="font-size:12.8px">res2@xyLineColors           =  "blue"</span></div><div><span style="font-size:12.8px">res2@xyLineThicknessF       =  5.0</span></div><div><span style="font-size:12.8px">res2@tmXBMode               = "Explicit"</span></div><div><span style="font-size:12.8px">res2@tmXBValues             = x</span></div><div><span style="font-size:12.8px">res2@tmXBLabels    = (/"J","F","M","A","M","J","J","A","S","O","N","D"/)</span></div><div><span style="font-size:12.8px">;---------------------------------------------------------------------</span></div><div><span style="font-size:12.8px">wks = gsn_open_wks("x11","")</span></div><div><span style="font-size:12.8px">plot = gsn_xy(wks,x,k,res2)</span></div><div><span style="font-size:12.8px">end</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br></div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><img src="cid:ii_1618d949631d4155" alt="Inline image 1" width="400" height="403"><br></div>

<br><div>

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;font-size:12.8px"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;font-size:12.8px">Thank you.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;font-size:12.8px"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;font-size:12.8px"><span class="gmail-gr_ gmail-gr_206 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_run_anim gmail-ContextualSpelling gmail-ins-del gmail-multiReplace gmail-gr-progress gmail-sel" id="gmail-206" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit">Sincerly</span>,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;font-size:12.8px"><span style="font-size:12.8px">Dinuka</span></div>

<br></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
        <tr>
        <td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link" target="_blank" style="color:#4453ea">www.avast.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>