Re: gsn_contour problem with data falling in same range

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon Feb 17 2014 - 10:30:20 MST

Hi Vaibhav,
See this previous ncl-talk posting:
http://www.ncl.ucar.edu/Support/talk_archives/2009/0460.html
in short, try setting cnFillMode = "RasterFill"

If that fix does not work please respond to ncl-talk..
Adam

> On Feb 16, 2014, at 23:31, Vaibhav Saxena <saxena.vaibhav@gmail.com> wrote:
>
> Hi All,
>
> I am trying to plot the contours for the parameter T2 (Temp at 2m) in WRF output file using the gsn_contour function. I wanted to set the countours levels explicitly so I used the "cnLevelSelectionMode" resource and set it to "ExplicitLevels". Then I specified my contour levels as "opts@cnLevels = (/10,20,25,26,27,27.5,28,29,30,35/)". The problem which I am facing is that when all the data values fall in one range (say 10 - 20 or 28 - 29), I get a white image and my contours are not plotted. I checked the data values and found that they are not constant but they fall in the same range. I neither get any error nor any warning. What do I do to avoid this and get a contour (which will be obviously of one color depending upon the range the data values fall into)?
>
> Thanks,
> - Vaibhav
>
> --
> email: saxena.vaibhav@gmail.com
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 17 10:30:02 2014

This archive was generated by hypermail 2.1.8 : Wed Feb 19 2014 - 15:58:35 MST