<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Eunpa,<div class=""><br class=""></div><div class="">In this case “continue” is a terminal statement. I suppose in ncl you would substitute that with a “while loop” syntax. For example</div><div class=""><br class=""></div><div class="">;———</div><div class=""> i = 0</div><div class=""> do j = n, m</div><div class=""> do while ( i .lt. j)</div><div class=""> X=j</div><div class=""> i+=1</div><div class=""> end do</div><div class="">end do</div><div class="">;———</div><div class=""><br class=""></div><div class="">see: <a href="http://www.ncl.ucar.edu/Document/Language/loops.shtml" class="">http://www.ncl.ucar.edu/Document/Language/loops.shtml</a></div><div class=""><br class=""></div><div class="">Jack</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 27 Oct 2015, at 12:15, Eun-Pa Lim <<a href="mailto:E.Lim@bom.gov.au" class="">E.Lim@bom.gov.au</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)" class="">
<style class=""><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
@font-face
        {font-family:Aparajita;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-AU" link="blue" vlink="purple" class="">
<div class="WordSection1"><p class="MsoNormal"><span style="color:#1F497D" class="">Dear Jack<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class=""> </span></p><p class="MsoNormal"><span style="color:#1F497D" class="">Thanks for your reply </span><span style="font-family:Wingdings;color:#1F497D" class="">J</span><span style="color:#1F497D" class=""><o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class=""> </span></p><p class="MsoNormal"><span style="color:#1F497D" class="">I was just trying to make very simple do loops looking like this in old fortran<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class=""> </span></p><p class="MsoNormal"><span style="color:#1F497D" class="">Do i=0,10<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class=""> Do j=0,20<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class=""> If(a(i).eq.b(j)) then<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class=""> X = j<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class=""> Go to 333<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class=""> End if<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class=""> End do<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class="">333 continue<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D" class="">End do<o:p class=""></o:p></span></p>
<div class=""><p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU" class=""> </span></p><p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU" class="">But "Go to " is not a statement used in NCL, and there is not much explanation about "continue" in the NCL page.
<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU" class=""> </span></p><p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU" class="">There must be a way to do this in NCL I reckon!<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU" class=""> </span></p><p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU" class="">Cheers<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU" class=""> </span></p><p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU" class="">Eunpa<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU" class=""> </span></p><p class="MsoNormal"><i class=""><span style="font-family:"Century Gothic","sans-serif";color:#1F497D;mso-fareast-language:EN-AU" class="">Eun-Pa Lim<o:p class=""></o:p></span></i></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";color:#1F497D;mso-fareast-language:EN-AU" class="">Research Scientist
<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";color:#1F497D;mso-fareast-language:EN-AU" class="">Seasonal Prediction Science Team<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";color:#1F497D;mso-fareast-language:EN-AU" class="">Centre for Australian Weather and Climate Research (CAWCR)<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";color:#1F497D;mso-fareast-language:EN-AU" class="">Bureau of Meteorology<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";color:#1F497D;mso-fareast-language:EN-AU" class="">Tel: +61-3-9669-4636<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";color:#1F497D;mso-fareast-language:EN-AU" class=""><a href="http://www.cawcr.gov.au/staff/elim/index.php" class="">http://www.cawcr.gov.au/staff/elim/index.php</a><o:p class=""></o:p></span></p>
</div><p class="MsoNormal"><span style="color:#1F497D" class=""> </span></p>
<div class="">
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm" class=""><p class="MsoNormal"><b class=""><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-AU" class="">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-AU" class=""> Jack Ogaja
[<a href="mailto:jack.ogaja@gmail.com" class="">mailto:jack.ogaja@gmail.com</a>] <br class="">
<b class="">Sent:</b> Tuesday, 27 October 2015 10:10 PM<br class="">
<b class="">To:</b> Eun-Pa Lim<br class="">
<b class="">Cc:</b> <a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
<b class="">Subject:</b> Re: [ncl-talk] usage of "continue" [SEC=UNOFFICIAL]<o:p class=""></o:p></span></p>
</div>
</div><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">Really…? I guess it will be easier if you show a piece of ncl script which gives a hint of what you are trying to achieve. In principle if you understand what “continue” means/does in ‘your preferred' language, then I assume you should
be able to implement or know whether it is possible to implement a similar algorithm in ncl after reading the ncl-statements documentation and probably going through a few examples.<o:p class=""></o:p></p>
<div class=""><p class="MsoNormal"><o:p class=""> </o:p></p>
</div>
<div class=""><p class="MsoNormal">Or you can just provide a Pseudocode of your intended program to make it easier for somebody to help.<o:p class=""></o:p></p>
</div>
<div class=""><p class="MsoNormal"><o:p class=""> </o:p></p>
</div>
<div class=""><p class="MsoNormal">Jack <o:p class=""></o:p></p>
</div>
<div class=""><p class="MsoNormal"> <o:p class=""></o:p></p>
<div class="">
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" class="">
<div class=""><p class="MsoNormal">On 27 Oct 2015, at 11:12, Eun-Pa Lim <<a href="mailto:E.Lim@bom.gov.au" class="">E.Lim@bom.gov.au</a>> wrote:<o:p class=""></o:p></p>
</div><p class="MsoNormal"><o:p class=""> </o:p></p>
<div class="">
<div class=""><p class="MsoNormal">Hi NCL users,<o:p class=""></o:p></p><p class="MsoNormal"> <o:p class=""></o:p></p><p class="MsoNormal">Could anybody please teach me how to use "continue" in a do loop in NCL? I can't find an example in
<a href="https://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml" class="">
https://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml</a> <o:p class="">
</o:p></p><p class="MsoNormal"> <o:p class=""></o:p></p><p class="MsoNormal">Many thanks!<o:p class=""></o:p></p><p class="MsoNormal"> <o:p class=""></o:p></p><p class="MsoNormal">Eunpa<o:p class=""></o:p></p><p class="MsoNormal"> <o:p class=""></o:p></p><p class="MsoNormal"><span style="mso-fareast-language:EN-AU" class=""> </span><o:p class=""></o:p></p><p class="MsoNormal"><i class=""><span style="font-family:"Century Gothic","sans-serif";mso-fareast-language:EN-AU" class="">Eun-Pa Lim</span></i><o:p class=""></o:p></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";mso-fareast-language:EN-AU" class="">Research Scientist
</span><o:p class=""></o:p></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";mso-fareast-language:EN-AU" class="">Seasonal Prediction Science Team</span><o:p class=""></o:p></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";mso-fareast-language:EN-AU" class="">Centre for Australian Weather and Climate Research (CAWCR)</span><o:p class=""></o:p></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";mso-fareast-language:EN-AU" class="">Bureau of Meteorology</span><o:p class=""></o:p></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";mso-fareast-language:EN-AU" class="">Tel: +61-3-9669-4636</span><o:p class=""></o:p></p><p class="MsoNormal"><span style="font-family:"Century Gothic","sans-serif";mso-fareast-language:EN-AU" class=""><a href="http://www.cawcr.gov.au/staff/elim/index.php" class="">http://www.cawcr.gov.au/staff/elim/index.php</a></span><o:p class=""></o:p></p><p class="MsoNormal"> <o:p class=""></o:p></p>
</div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU" class="">_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p class=""></o:p></span></p>
</div>
</blockquote>
</div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU" class=""> </span></p>
</div>
</div>
</div>
</div></blockquote></div><br class=""></div></body></html>