<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear Mary,<br><br>I am glad to tell you that the problem is solved. <br><br>Thanks for hinting towards the possible problem with the data. As you mentioned those print statements helped me to detect the error. The minmax statement was producing 'nan'. So I had to replace all the nan values to a specified value following this:<br><br><pre>if (any(isnan_ieee(ssta))) then<br>        value = 9.96921e+36<br>        replace_ieeenan (ssta,value,0)<br>        ssta@_FillValue = value<br>end if<br><br><br>this solved the problem completely. Thanks again.<br><br><br></pre><br><br><div><hr id="stopSpelling">Date: Mon, 12 Oct 2015 20:43:54 -0600<br>Subject: Re: [ncl-talk] Contour plot error.<br>From: haley@ucar.edu<br>To: srvsxc@outlook.com<br>CC: ncl-talk@ucar.edu<br><br><div dir="ltr"><div class="ecxgmail_default" style="font-size:small;">Sourav,</div><div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default" style="font-size:small;">There's something wrong with your data, but without your data file, I can't verify what the problem is.</div><div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default" style="font-size:small;">In the future, it helps if you can include *all* the output from running your script. I notice that you have several "printVarSummary" and "printMinMax" commands, which can be very useful for us to see.</div><div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default" style="font-size:small;">Can you send email back to ncl-talk, and include all the output from the various print commands, and also add the output from these commands:</div><div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default" style="font-size:small;">printMinMax(r,0)</div><div class="ecxgmail_default" style="font-size:small;">printMinMax(ssta_djf,0)</div><div class="ecxgmail_default" style="font-size:small;">printMinMax(sh_djf,0)</div><div class="ecxgmail_default" style="font-size:small;">







<div class="ecxgmail_default">printVarSummary(ssta_djf)</div>







<div class="ecxgmail_default">printVarSummary(sh_djf)</div><div class="ecxgmail_default"><br></div><div class="ecxgmail_default">If you can actually provide the "<a href="http://data.nc" target="_blank">data.nc</a>" file, then this is even better.&nbsp; You can use our ftp, or if the file is small enough (&lt; 20 MB), then you can email it to me personally (no need to include ncl-talk if you send the file).</div><div class="ecxgmail_default"><br></div><div class="ecxgmail_default">If you prefer ftp:</div><div class="ecxgmail_default"><br></div><div class="ecxgmail_default"><pre>ftp <a href="http://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a>
anonymous
&lt;use your email address for the password&gt;
cd incoming
put <a href="http://data.nc" target="_blank">data.nc</a>
put ...
quit</pre></div></div>















<div class="ecxgmail_extra"><div class="ecxgmail_default" style="font-size:small;">​Thanks,</div><div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default" style="font-size:small;">--Mary</div><div class="ecxgmail_default" style="font-size:small;">​</div><br><div class="ecxgmail_quote">On Mon, Oct 12, 2015 at 5:07 AM, Sourav Chatterjee <span dir="ltr">&lt;<a href="mailto:srvsxc@outlook.com" target="_blank">srvsxc@outlook.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">


<div><div dir="ltr">Dear All,<br><br>Having the following issue with contour plot. Any kind of help is appreciated.<br><br>warning:CvtGenSFObjToFloatSFObj: sfDataMinV greater than sfDataMaxV: exchanging<br>fatal:ContourPlotInitialize: internal error creating levels, invalid max or min data value<br>fatal:ContourPlotInitialize: error getting contour level information<br>fatal:ContourPlotInitialize: error initializing dynamic arrays<br>fatal:Unable to initialize layer-Can't Create<br>fatal:Unable to access object with id:-4<br>fatal:PID #-4 can't be found in NhlSetValues<br>warning:overlay: bad HLU id passed in, ignoring<br>fatal:["Execute.c":8575]:Execute: Error occurred at or near line 7108 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl<br><br>fatal:["Execute.c":8575]:Execute: Error occurred at or near line 85 in file coreltn.ncl<br><br><br>Script attached. Thanks.<br>                                               </div></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></div></div></div>                                               </div></body>
</html>