<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Debasish,</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">elseif will be available in next version 6.5.0.</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">-Karin</div><div><br>Am 27.12.2017 um 02:30 schrieb Debasish Hazra via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>>:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div>Dennis,</div><div><br></div><div>I am using ncl version 6.4 and still getting this error :</div><div><br></div><div> NCAR Command Language Version 6.4.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.<br>fatal:syntax error: line 49 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/dim_pad.ncl before or near then<br> elseif (rankx.eq.2) then<br>-------------------------^</div><div>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 57 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/dim_pad.ncl before or near then<br> elseif (rankx.eq.3) then<br>-------------------------^</div><div>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 65 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/dim_pad.ncl before or near then<br> elseif (rankx.eq.4) then<br>-------------------------^</div><div>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 73 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/dim_pad.ncl before or near then<br> elseif (rankx.eq.5) then<br>-------------------------^</div><div>fatal:syntax error: possibly an undefined procedure<br>fatal:Syntax Error in block, block not executed</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 26, 2017 at 1:59 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Function uses 'elseif' introduced in 6.4.0. <br><br>Sent from my iPhone</div><div><div class="h5"><div><br>On Dec 26, 2017, at 12:12 PM, Debasish Hazra <<a href="mailto:debasish.hazra5@gmail.com" target="_blank">debasish.hazra5@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div>Thanks Dennis. I tried to use "dim_pad" and it gave the following errors : </div><div><br></div><div>fatal:syntax error: line 49 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/dim_pad.ncl before or near then<br> elseif (rankx.eq.2) then<br>-------------------------^</div><div>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 57 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/dim_pad.ncl before or near then<br> elseif (rankx.eq.3) then<br>-------------------------^</div><div>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 65 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/dim_pad.ncl before or near then<br> elseif (rankx.eq.4) then<br>-------------------------^</div><div>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 73 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/dim_pad.ncl before or near then<br> elseif (rankx.eq.5) then<br>-------------------------^</div><div>fatal:syntax error: possibly an undefined procedure<br>fatal:Syntax Error in block, block not executed<br>fatal:error at line 91 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/dim_pad.ncl</div><div><br></div><div>Debasish</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 13, 2017 at 7:18 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div><div><div><div>Attached is an <b>un</b>documented and <b>un</b>supported function that (hopefully) will 'pad' a series.<br><br></div><div>If you have x(lat,lon,time) .... it will have to be reordered because the function currently pad only the leftmost dimension.<br><br></div><div>load "dim_pad.ncl"<br></div><div><br> .....<br></div><div> xr = x(time|:,lat|:,lon|:)<br> <wbr> <br> X = <b>dim_pad</b>(xr, <b>12, 0</b>) ; xr[<b>164</b>,nlat,mlon] ===> dim_pad(xr,12, 0) ===> X[<b>168</b> ][nlat][mlon]]<br><br></div></div></div></div><div> x_clm = <b>clmMonTLL</b>(X) ; <b>(12,lat,lon)</b><br> printVarSummary(x_clm)<br> delete([/X, xr/]) ; delete temporary/work arrays </div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_189296250568926458h5">On Wed, Dec 13, 2017 at 1:55 PM, Debasish Hazra <span dir="ltr"><<a href="mailto:debasish.hazra5@gmail.com" target="_blank">debasish.hazra5@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div class="m_189296250568926458h5"><div dir="ltr"><div style="border-width:0px 0px 15px;border-style:solid;border-color:transparent;margin:0px;padding:0px;text-align:left;color:rgb(0,0,0);text-transform:none;line-height:12pt;text-indent:0px;letter-spacing:normal;font-family:courier;font-size:13.33px;font-style:normal;word-spacing:0px;background-color:rgb(255,255,255)"><font face="times new roman,serif">Hi,</font></div><div style="border-width:0px 0px 15px;border-style:solid;border-color:transparent;margin:0px;padding:0px;text-align:left;color:rgb(0,0,0);text-transform:none;line-height:12pt;text-indent:0px;letter-spacing:normal;font-family:courier;font-size:13.33px;font-style:normal;word-spacing:0px;background-color:rgb(255,255,255)"><font face="Times New Roman">I have 14 years of monthly satelitte data, but there are some missing months in between (total 164 files, inplace of 168). I am trying to calculate monthly climatology and anomaly for each of the months. But as I am using either clmMonLLT or calcMonAnomLLT it needs "time dimension must be multiple of 12". Is there any other function available to calculate anomalies when time dimension is not exactly divisible by 12.</font></div><div style="border-width:0px 0px 15px;border-style:solid;border-color:transparent;margin:0px;padding:0px;text-align:left;color:rgb(0,0,0);text-transform:none;line-height:12pt;text-indent:0px;letter-spacing:normal;font-family:courier;font-size:13.33px;font-style:normal;word-spacing:0px;background-color:rgb(255,255,255)"><font face="Times New Roman">Thanks.</font></div><span class="m_189296250568926458m_-819784974387936601HOEnZb"><font color="#888888"><div style="border-width:0px 0px 15px;border-style:solid;border-color:transparent;margin:0px;padding:0px;text-align:left;color:rgb(0,0,0);text-transform:none;line-height:12pt;text-indent:0px;letter-spacing:normal;font-family:courier;font-size:13.33px;font-style:normal;word-spacing:0px;background-color:rgb(255,255,255)"><font face="Times New Roman">Debasish</font></div><div style="border-width:0px 0px 15px;border-style:solid;border-color:transparent;margin:0px;padding:0px;text-align:left;color:rgb(0,0,0);text-transform:none;line-height:12pt;text-indent:0px;letter-spacing:normal;font-family:courier;font-size:13.33px;font-style:normal;word-spacing:0px;background-color:rgb(255,255,255)"><font face="Times New Roman"></font><br></div><div style="border-width:0px 0px 15px;border-style:solid;border-color:transparent;margin:0px;padding:0px;text-align:left;color:rgb(0,0,0);text-transform:none;line-height:12pt;text-indent:0px;letter-spacing:normal;font-family:courier;font-size:13.33px;font-style:normal;word-spacing:0px;background-color:rgb(255,255,255)"><br></div><div style="border-width:0px 0px 15px;border-style:solid;border-color:transparent;margin:0px;padding:0px;text-align:left;color:rgb(0,0,0);text-transform:none;line-height:12pt;text-indent:0px;letter-spacing:normal;font-family:courier;font-size:13.33px;font-style:normal;word-spacing:0px;background-color:rgb(255,255,255)"><font face="Times New Roman"></font><br></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="noreferrer">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></blockquote></div></div></div></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>ncl-talk mailing list</span><br><span><a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a></span><br><span>List instructions, subscriber options, unsubscribe:</span><br><span><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></span><br></div></blockquote></body></html>