[ncl-talk] Contour plot error.
Sourav Chatterjee
srvsxc at outlook.com
Mon Oct 12 22:57:28 MDT 2015
Dear Mary,
I am glad to tell you that the problem is solved.
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:
if (any(isnan_ieee(ssta))) then
value = 9.96921e+36
replace_ieeenan (ssta,value,0)
ssta at _FillValue = value
end if
this solved the problem completely. Thanks again.
Date: Mon, 12 Oct 2015 20:43:54 -0600
Subject: Re: [ncl-talk] Contour plot error.
From: haley at ucar.edu
To: srvsxc at outlook.com
CC: ncl-talk at ucar.edu
Sourav,
There's something wrong with your data, but without your data file, I can't verify what the problem is.
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.
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:
printMinMax(r,0)printMinMax(ssta_djf,0)printMinMax(sh_djf,0)
printVarSummary(ssta_djf)
printVarSummary(sh_djf)
If you can actually provide the "data.nc" file, then this is even better. You can use our ftp, or if the file is small enough (< 20 MB), then you can email it to me personally (no need to include ncl-talk if you send the file).
If you prefer ftp:
ftp ftp.cgd.ucar.edu
anonymous
<use your email address for the password>
cd incoming
put data.nc
put ...
quit
Thanks,
--Mary
On Mon, Oct 12, 2015 at 5:07 AM, Sourav Chatterjee <srvsxc at outlook.com> wrote:
Dear All,
Having the following issue with contour plot. Any kind of help is appreciated.
warning:CvtGenSFObjToFloatSFObj: sfDataMinV greater than sfDataMaxV: exchanging
fatal:ContourPlotInitialize: internal error creating levels, invalid max or min data value
fatal:ContourPlotInitialize: error getting contour level information
fatal:ContourPlotInitialize: error initializing dynamic arrays
fatal:Unable to initialize layer-Can't Create
fatal:Unable to access object with id:-4
fatal:PID #-4 can't be found in NhlSetValues
warning:overlay: bad HLU id passed in, ignoring
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 7108 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 85 in file coreltn.ncl
Script attached. Thanks.
_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151013/461da7f7/attachment.html
More information about the ncl-talk
mailing list