<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Debasish,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">No worries on posting to me directly.  Usually with NCAR visitors and employees I don&#39;t ask this, so my apologies there. However, I like to see messages go back to ncl-talk if possible so other folks can benefit from the answer.</div>

<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">From your script I was able to see what the problem was.  It looks like the code that shades for the middle shading values is incorrectly assuming that you have 2 or more contour levels that fall in this range.</div>

<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This bug was inadvertently fixed in V6.2.1, in the process of enhancing the function for other purposes.</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can try the fix on yellowstone/geyser by loading a *test* 6.2.1 version via the &quot;module&quot; command:</div>

<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">module swap intel gnu</div><div class="gmail_default" style="font-size:small">module load ncl/6.2.1</div><div class="gmail_default" style="font-size:small">

<br></div><div class="gmail_default" style="font-size:small">Let me know if this doesn&#39;t fix your problem.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
Please be careful with this version because it is in heavy test mode and can get updated at any moment. We hope to release this version in the next 2 weeks.</div><div class="gmail_default" style="font-size:small"><br></div>
<div class="gmail_default" style="font-size:small">
--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 19, 2014 at 1:06 PM, debasish mazumder <span dir="ltr">&lt;<a href="mailto:debasish@ucar.edu" target="_blank">debasish@ucar.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Mary,<br>
    <br>
    Sorry for directly email to you. I put my script and data in
    yellowstone (scratch). Here is the path:
    /glade/scratch/debasish/ShadedPlot/<br>
    Please let me know if you have problem to open any files.<br>
    <br>
    I am using version 6.2.0.<br>
    <br>
    with regards<span class="HOEnZb"><font color="#888888"><br>
    -Debasish</font></span><div><div class="h5"><br>
    <br>
    <br>
    <br>
    <div>On 8/19/14 11:36 AM, Mary Haley wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_default" style="font-size:small">Debasish,</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">Please
          respond back to ncl-talk with follow-up responses, if
          possible.</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">When you get
          an error like this, I need to see some code, or better, get
          your full script and the data so I can run the problem here.
          It also helps us to know which version of NCL you are using.</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">You can use
          our ftp to upload files if necessary:</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default"><a href="http://ncl.ucar.edu/report_bug.shtml#HowToFTP" target="_blank">http://ncl.ucar.edu/report_bug.shtml#HowToFTP</a><br>
        </div>
        <div class="gmail_default"><br>
        </div>
        <div class="gmail_default" style="font-size:small">
          --Mary</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Aug 18, 2014 at 10:42 PM,
          debasish mazumder <span dir="ltr">&lt;<a href="mailto:debasish@ucar.edu" target="_blank">debasish@ucar.edu</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi Mary,<br>
              Thanks for your response. I have tried gsn_contour_shade
              but I am getting following error message <br>
              <br>
              fatal:Subscript out of range, error in subscript #0<br>
              fatal:An error occurred reading ii<br>
              fatal:[&quot;Execute.c&quot;:8567]:Execute: Error occurred at or
              near line 12388 in file
              $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl<br>
              <br>
              fatal:[&quot;Execute.c&quot;:8567]:Execute: Error occurred at or
              near line 337 in file tas_max_WRFG-CFSR_1995-1999_new.ncl<br>
              <br>
              with regards<span><font color="#888888"><br>
                  -Debasish</font></span>
              <div>
                <div><br>
                  <br>
                  <br>
                  <div>On 8/17/14 10:35 PM, Mary Haley wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div class="gmail_default" style="font-size:small">First,

                        ShadeGeLeContour is deprecated, and you should
                        be using gsn_contour_shade instead.</div>
                      <div class="gmail_default" style="font-size:small"><br>
                      </div>
                      <div class="gmail_default" style="font-size:small">When
                        you use these routines, you need to be careful
                        that the shading values you choose are in-line
                        with the original contour levels.</div>
                      <div class="gmail_default" style="font-size:small">
                        <br>
                      </div>
                      <div class="gmail_default" style="font-size:small">See:</div>
                      <div class="gmail_default" style="font-size:small"><br>
                      </div>
                      <div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_contour_shade.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_contour_shade.shtml</a><br>

                      </div>
                      <div class="gmail_default"><br>
                      </div>
                      <div class="gmail_default">See example
                        &quot;coneff_13.ncl&quot; at:</div>
                      <div class="gmail_default"><br>
                      </div>
                      <div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/coneff.shtml#ex13" target="_blank">http://www.ncl.ucar.edu/Applications/coneff.shtml#ex13</a><br>
                      </div>
                      <div class="gmail_default"><br>
                      </div>
                      <div class="gmail_default">--Mary</div>
                      <div class="gmail_default"><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote">On Fri, Aug 15, 2014 at
                        1:09 PM, debasish mazumder <span dir="ltr">&lt;<a href="mailto:debasish@ucar.edu" target="_blank">debasish@ucar.edu</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div>
                            <div>Hi All,<br>
                              I am trying to use &quot;ShadeGeLeContour&quot; to
                              shade the values between -0.5<br>
                              and 0.5.<br>
                              plot2   = ShadeGeLeContour(plot2,-0.5,0.5
                              , 11)<br>
                              but it shades all the negative value
                              instead of  the values between -0.5<br>
                              and 0.5.<br>
                              <br>
                              with regards<br>
                              -Deb<br>
                            </div>
                          </div>
_______________________________________________<br>
                          ncl-talk mailing list<br>
                          List instructions, subscriber options,
                          unsubscribe:<br>
                          <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>