<div dir="ltr">You may also have to do printVarSummary( w2&amp;lat ). I suspect it either doesn&#39;t have units or they&#39;re not formatted properly.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 6:30 PM, Walter Kolczynski <span dir="ltr">&lt;<a href="mailto:walter.kolczynski@noaa.gov" target="_blank">walter.kolczynski@noaa.gov</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">
    Do you get the warnings if you don&#39;t have the <tt>where</tt>
    statement at all?<br>
    <br>
    Also, check the plots. They may be correct even though you are
    getting this warning.<br>
    <br>
    - Walter<div><div class="h5"><br>
    <br>
    <div>On 24-Jun-15 18:07, Erik J.
      Schaffernicht wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">___
      Using NCL 6.3.0 (2015-Mar) ____
      <br>
      <br>
      Here is the printVarSummary()output.  First the one before
      where(w2) is executed, second one after where(w2).
      <br>
      I checked the printVarSummary-output before writing to ncl-talk
      and as they look to me quite identical I did not post them, sorry
      for that.  Now, here you can check them (see in the following). 
      However, the warnings occur even though the
      printVarSummary()-output looks identical.
      <br>
      <br>
      <br>
      <br>
      Variable: w2
      <br>
      Type: double
      <br>
      Total Size: 518400 bytes
      <br>
                  64800 values
      <br>
      Number of Dimensions: 2
      <br>
      Dimensions and sizes:    [lat | 180] x [lon | 360]
      <br>
      Coordinates:
      <br>
                  lat: [-89.5..89.5]
      <br>
                  lon: [-180.. 179]
      <br>
      Number Of Attributes: 8
      <br>
        missing_value :    1e+20
      <br>
        standard_name :    sediProbab
      <br>
        long_name :    Orography (m)
      <br>
        units :    <br>
        years_ago :    21k, Last Glacial Max
      <br>
        _FillValue_original :    1e+20
      <br>
        missing_value_original :    1e+20
      <br>
        _FillValue :    1e+20
      <br>
      <br>
      Variable: w2
      <br>
      Type: double
      <br>
      Total Size: 518400 bytes
      <br>
                  64800 values
      <br>
      Number of Dimensions: 2
      <br>
      Dimensions and sizes:    [lat | 180] x [lon | 360]
      <br>
      Coordinates:
      <br>
                  lat: [-89.5..89.5]
      <br>
                  lon: [-180.. 179]
      <br>
      Number Of Attributes: 8
      <br>
        missing_value :    1e+20
      <br>
        standard_name :    sediProbab
      <br>
        long_name :    Orography (m)
      <br>
        units :    <br>
        years_ago :    21k, Last Glacial Max
      <br>
        _FillValue_original :    1e+20
      <br>
        missing_value_original :    1e+20
      <br>
        _FillValue :    1e+20
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      --- robust but long method ----
      <br>
      w2=sediProbab
      <br>
      w2=where(landAreaFrV .lt. 0.5, w2@_FillValue, w2)
      <br>
      copy_VarMeta(sediProbab,w2)
      <br>
      sediProbab=w2
      <br>
      <br>
      to
      <br>
      <br>
      <br>
          --- possibly shorter way, more convenient approach but
      warnings occur ---
      <br>
      sediProbab=where(landAreaFrV .lt. 0.5, sediProbab@_FillValue,
      sediProbab)
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      The Warnings:
      <br>
      <br>
      (0)    check_for_y_lat_coord: Warning: Data either does not
      contain a
      <br>
      valid latitude coordinate array or doesn&#39;t contain one at all.
      <br>
      (0)    A valid latitude coordinate array should have a &#39;units&#39;
      attribute
      <br>
      equal to one of the following values:
      <br>
      (0)        &#39;degrees_north&#39; &#39;degrees-north&#39; &#39;degree_north&#39; &#39;degrees
      north&#39;
      <br>
      &#39;degrees_N&#39; &#39;Degrees_north&#39; &#39;degree_N&#39; &#39;degreeN&#39; &#39;degreesN&#39; &#39;deg
      north&#39;
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
       
      <br>
      <br>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
ncl-talk mailing list
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
Walter Kolczynski, Jr.
Global Ensemble Team
NOAA/NWS/NCEP/EMC (via I.M. Systems Group)
<a href="tel:%28301%29%20683-3781" value="+13016833781" target="_blank">(301) 683-3781</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><table border="0" cellpadding="2" cellspacing="2" style="max-width:100%;border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-size:14px;border:3px solid rgb(170,170,170);font-family:Times;line-height:12px;background-color:transparent"><tbody><tr><td align="center" height="71" width="71"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank"><img src="http://www.cicsnc.org/assets/images/cicsnc-logo.png" width="96" height="93"></a>  <a href="http://www.researcherid.com/rid/B-8711-2011" target="_blank"><br></a></span></span><br><font size="4"><b style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif"> <a href="http://www.cyclonecenter.org/" style="color:rgb(38,58,143);text-decoration:none" target="_blank">Cyclone</a></b><a href="http://www.cyclonecenter.org/" style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;text-decoration:none" target="_blank">Center.org</a>  </font></td><td valign="top"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><b>Carl J. Schreck III, PhD</b><br><b>Research Associate</b><br></span></span><a href="http://www.cicsnc.org/" style="font-family:arial,helvetica,sans-serif;font-size:11px;color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">Cooperative Institute for Climate and Satellites NC (CICS-NC)</a> /<br><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina Institute for Climate Studies (NCICS)</a> <br><a href="http://ncsu.edu/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina State University</a><br><a href="http://ncei.noaa.gov/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">NOAA National Centers for Environmental Information (NCEI)</a><br>151 Patton Ave, Asheville, NC 28801<br>e: </span></span><a href="mailto:cjschrec@ncsu.edu" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">cjschrec@ncsu.edu</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif">o: +1 828 257 3140<br></span></span><a href="http://scholar.google.com/citations?hl=en&amp;user=th8ONEcAAAAJ&amp;view_op=list_works&amp;sortby=pubdate" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">Publications</a><br><a href="http://monitor.cicsnc.org/mjo/" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">monitor.cicsnc.org/mjo</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div>
</div>