<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello Jennifer,</p>
    <p>thank you for your reply. I have already got helped. I am using
      older version under Windows (btw. where can I download the latest
      pack?) , so for now I do it like this:</p>
    <p>'set prnopts %.0f 1 0'<br>
      'd TCDCclm'<br>
      cloudbfr = result<br>
      oblc = sublin(cloudbfr,3)</p>
    <p><br>
    </p>
    <p>if (oblc<10)<br>
      obla='J'<br>
      endif</p>
    <p>............................................................<br>
    </p>
    <p><br>
    </p>
    <p>Kindest regards,</p>
    <p><br>
    </p>
    <p>Marian<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Dňa 17. 2. 2018 o 15:47 Jennifer M
      Adams napísal(a):<br>
    </div>
    <blockquote type="cite"
      cite="mid:96F9C74F-AF4A-4A97-88CA-2B99F49DA3D7@gmu.edu">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      The ‘if’ function <b class=""><i class="">in the scripting
          language</i></b> doesn’t work for evaluating the data in a
      defined variable in GrADS; it is only for evaluating script
      variables. As of version 2.1.1.b0, there is an if() function in
      GrADS and logical operators in the expression syntax for doing
      this type of calculation. If you are using an older version of
      GrADS, then the maskout() and const() functions can be used to
      achieve similar results.
      <div class=""><a
          href="http://cola.gmu.edu/grads/gadoc/gradfuncif.html"
          class="" moz-do-not-send="true">http://cola.gmu.edu/grads/gadoc/gradfuncif.html</a></div>
      <div class="">
        <div class=""><a
            href="http://cola.gmu.edu/grads/gadoc/gradfuncconst.html"
            class="" moz-do-not-send="true">http://cola.gmu.edu/grads/gadoc/gradfuncconst.html</a></div>
        <div class=""><a
            href="http://cola.gmu.edu/grads/gadoc/gradfuncmaskout.html"
            class="" moz-do-not-send="true">http://cola.gmu.edu/grads/gadoc/gradfuncmaskout.html</a></div>
        <div class="">—Jennifer</div>
        <div class=""><br class="">
        </div>
        <div class=""><br class="">
          <blockquote type="cite" class="">On Feb 15, 2018, at 6:45 PM,
            AMS EmsiWx Bytča <<a
              href="mailto:emsiwx@pocasie-bytca.sk" class=""
              moz-do-not-send="true">emsiwx@pocasie-bytca.sk</a>>
            wrote:<br class="">
            <br class="">
            Dear GrADS users,<br class="">
            <br class="">
            <br class="">
            I have been on this half a day, but still no success.<br
              class="">
            <br class="">
            Part of my script:<br class="">
            <br class="">
            'define oblc = TCDCclm'<br class="">
            <br class="">
            if (oblc<10)<br class="">
            obla='J'<br class="">
            endif<br class="">
            if (oblc>=10 & TCDCclm<30)<br class="">
            obla='SJ'<br class="">
            endif<br class="">
            if (oblc>=30 & TCDCclm<60)<br class="">
            obla='P'<br class="">
            endif<br class="">
            if (oblc>=60 & TCDCclm<90)<br class="">
            obla='O'<br class="">
            endif<br class="">
            if (oblc>=90)<br class="">
            obla='Z'<br class="">
            endif<br class="">
            <br class="">
            I want to get obla string based on the total cloud cover,
            but somehow the conditions dont work. I always get the last
            obla='Z' eventhough the TCDCclm is 34%<br class="">
            <br class="">
            Could you please guide me on the right track?<br class="">
            <br class="">
            <br class="">
            Thank you in advance for your replies.<br class="">
            <br class="">
            <br class="">
            Marian<br class="">
            <br class="">
            _______________________________________________<br class="">
            gradsusr mailing list<br class="">
            <a href="mailto:gradsusr@gradsusr.org" class=""
              moz-do-not-send="true">gradsusr@gradsusr.org</a><br
              class="">
<a class="moz-txt-link-freetext" href="http://secure-web.cisco.com/1FXen63CqywdYKxy5unY9GUfI4dpiVxgyxnKPF1xYVDCU7TDbRkBbmrUQIBQGmtrbuNCkCuc-Xk_KnE6MRd7D3nJ6LfyN-pPnRtlyb0gZ2E_03az92IT5vJUJMZ8MejH0GnnVlralkuqCAvqPet3eASPwoQtHqHFqCwp2DjuRLTnwYGHakJ7H8qAdf0AeWLP_mIKPK6oNEd_RctwKpunAHlS7mtSFxjPlOieJlx_TsBVdIRgkAnovlZtWjlBA8KmopzeVKMc0Mz35h4dRbjm2tsJdHQ-8qmr3uBBufekElE0vffM8BOmGbrf5Bf5qcg_QCRe7808ieVZgR2qGpKukgMKCBIwRuYRNAC-HOCnZJhDX8zboNgrhVHJmo6VmbafaLc-Xf9hDpI7fVEkU0VGSKkmG8qEFcf0l9bcmDJ4OtLBDxmZOqfuZ7D1nNTtTBaky/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr">http://secure-web.cisco.com/1FXen63CqywdYKxy5unY9GUfI4dpiVxgyxnKPF1xYVDCU7TDbRkBbmrUQIBQGmtrbuNCkCuc-Xk_KnE6MRd7D3nJ6LfyN-pPnRtlyb0gZ2E_03az92IT5vJUJMZ8MejH0GnnVlralkuqCAvqPet3eASPwoQtHqHFqCwp2DjuRLTnwYGHakJ7H8qAdf0AeWLP_mIKPK6oNEd_RctwKpunAHlS7mtSFxjPlOieJlx_TsBVdIRgkAnovlZtWjlBA8KmopzeVKMc0Mz35h4dRbjm2tsJdHQ-8qmr3uBBufekElE0vffM8BOmGbrf5Bf5qcg_QCRe7808ieVZgR2qGpKukgMKCBIwRuYRNAC-HOCnZJhDX8zboNgrhVHJmo6VmbafaLc-Xf9hDpI7fVEkU0VGSKkmG8qEFcf0l9bcmDJ4OtLBDxmZOqfuZ7D1nNTtTBaky/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr</a><br
              class="">
            <br class="">
          </blockquote>
          <br class="">
          <div class="">--<br class="">
            Jennifer Miletta Adams<br class="">
            Center for Ocean-Land-Atmosphere Studies (COLA)<br class="">
            George Mason University<br class="">
            <br class="">
            <br class="">
          </div>
          <br class="">
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>