<div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Samy,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In the future, please post NCL questions to the ncl-talk email list and not the ncarg-talk email list:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">This error message occurs when you are trying to plot a data variable that contains all missing values.</div><div class="gmail_default"><br></div><div class="gmail_default">It is very important to look at your data if you are getting errors when plotting it.  We tell people to use procedures like print, printMinMax, and printVarSummary to examine their data variables before plotting.</div><div class="gmail_default"><br></div>For example,<div class="gmail_default" style="font-size:small;display:inline">​ I see that "m(0,:,:)" is one of the variables you are trying to plot. "m" is first read off a file and then has a mask applied to it. You need to look at "m"​ after you read it off the file and after you apply the mask, to see where it might be getting set to all missing:</div><div><br><font face="monospace, monospace">  m = l->gpp(:,:,:)</font></div><div><font face="monospace, monospace"><br><div class="gmail_default" style="color:rgb(34,34,34);font-family:monospace,monospace;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline">​;---Look at m after reading it off the file</div></font></div><div><font face="monospace, monospace"><div class="gmail_default" style="font-size:small;display:inline">​  printVarSummary(m)​</div><br style="color:rgb(34,34,34);font-family:monospace,monospace;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">  printMinMax(m<div class="gmail_default" style="font-size:small;display:inline">​(0,:,:)​</div>,0)<div class="gmail_default" style="font-size:small;display:inline">​</div></font></div><div><font face="monospace, monospace"><div class="gmail_default" style="font-size:small;display:inline"><br></div></font></div><div><font face="monospace, monospace">  m = mask(m,landsea,2)</font></div><div><font face="monospace, monospace"><br><div class="gmail_default" style="color:rgb(34,34,34);font-family:monospace,monospace;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline">​;---Look at m again after applying mask​</div><br style="color:rgb(34,34,34);font-family:monospace,monospace;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">  printMinMax(m<div class="gmail_default" style="font-size:small;display:inline">​(0,:,:)​</div>,0)</font></div><div><font face="monospace, monospace"><br></font><div class="gmail_default" style="font-size:small;display:inline">​Since you are seeing this error in multiple locations, you need to look at all the variables you're plotting in the same fashion, by inserting various calls to printMinMax and/or printVarSummary.</div><br><br><div class="gmail_default" style="font-size:small">​Meanwhile, if you every get an NCL error message you don't understand, you can go to the NCL home page and click on "Support" in the black bar and then select "Error Messages". This will take you to this page, which describes some common errors in NCL, what causes them, and how to fix them:​</div><br><a href="http://www.ncl.ucar.edu/Document/Language/error_messages.shtml">http://www.ncl.ucar.edu/Document/Language/error_messages.shtml</a><br></div><div><br></div><div><div class="gmail_default" style="font-size:small">​The error you were asking about was not in the list, so I just now added it.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you continue to have questions or problems, please start a new email thread and post it to <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>, after using the above link to subscribe.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thank you,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary​</div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 22, 2018 at 5:39 AM, Samy Rateb <span dir="ltr"><<a href="mailto:ratebsamy@yahoo.com" target="_blank">ratebsamy@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:16px"><div>Dear Sir/Madam,<br><div><br><div>I try to estimate the percentage bias between the model and observations but I got the following message:<br><div><br><span> Copyright (C) 1995-2012 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.1.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>warning:ContourPlotInitialize: no valid values in scalar field; ContourPlot not possible:[errno=1101]<br>warning:ContourPlotInitialize: no valid values in scalar field; ContourPlot not possible:[errno=1101]<br>warning:ContourPlotInitialize: no valid values in scalar field; ContourPlot not possible:[errno=1101]<br>warning:ContourPlotInitialize: no valid values in scalar field; ContourPlot not possible:[errno=1101]<br><br></span><div>Can you help me to fix it? I would be so grateful.<br><div><br><div>Regards<span class="HOEnZb"><font color="#888888"><br><div><br>Samy <br></div></font></span></div></div></div></div></div></div></div></div></div><br>______________________________<wbr>_________________<br>
ncarg-talk mailing list<br>
<a href="mailto:ncarg-talk@ucar.edu">ncarg-talk@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncarg-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncarg-talk</a><br>
<br></blockquote></div><br></div>