<div dir="ltr">Hi Deb,<div>Make sure you have actual contours at -0.1 and 0.1. gsn_contour_shade only operates on the existing contour levels. So, in your case,  if you do not have contours at -0.1 and 0.1 you will not get the expected results.</div>

<div><br></div><div>Try setting the levels like this:</div><div><span style="font-family:arial,sans-serif;font-size:13px">res2@cnLevelSelectionMode = &quot;ExplicitLevels&quot;</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">res2@cnLevels = (/ -0.3,-0.2,-0.1,0,.1,.2,.3/)</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">opt@gsnShadeMid = 17</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">plot2   = gsn_csm_contour(wks,gsn_add_</span><span style="font-family:arial,sans-serif;font-size:13px">cyclic_point(cv), res2)</span><br style="font-family:arial,sans-serif;font-size:13px">

<span style="font-family:arial,sans-serif;font-size:13px">plot2   = gsn_contour_shade(plot2,-0.1,</span><span style="font-family:arial,sans-serif;font-size:13px">0.1 , opt)</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>

</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">If the results are still not what you want please respond to ncl-talk..</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Adam</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 4:00 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>
    The problem related error is solved with updated version but Script
    is not working properly.<br>
    opt@gsnShadeMid = 17<br>
    plot2   = gsn_csm_contour(wks,gsn_add_cyclic_point(cv), res2)<br>
    plot2   = gsn_contour_shade(plot2,-0.1,0.1 , opt)<br>
    <br>
    istead of sheading the values between -0.1 and 0.1, It only shaded
    negative values.<br>
    Any help will be appreciated.<br>
    <br>
    with regards<br>
    -Deb<br>
    <br>
    <br>
    <br>
    <div>On 8/19/14 11:04 PM, Mary Haley wrote:<br>
    </div>
    <blockquote type="cite">
      <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><font color="#888888"><br>
                  -Debasish</font></span>
              <div>
                <div><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>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Division, NCAR<br>

</font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div>

<span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div>
</div>
</div></div>
</div>