Re: Problem in plotting contour

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 26 2011 - 21:25:40 MDT

Hi Soumik,
When debugging issues like this I find it helps to let NCL plot it with
minimal/no resources. Try plotting it like this:
wks = gsn_open_wks("ps","test")
plot = gsn_csm_contour_map(wks,arr,False)

(Obviously replace arr with the name of your array.)

If you do not see any contours trying the above then that is a strong
indication that something is wrong with your data. (By doing the above you
eliminate the possibility that your resources are the problem.) There are
other things you can do, like check to see how much of your array is set
to _FillValue, is most of your array set to zero, etc.

If after trying the above you are still having issues let the group know.
Good luck,
Adam

> Hi,
>
> I am having a strange problem with plotting a contour. I am calculating
> something and its giving me values in valid range but still NCL could not
> plot it.
>
> The variable looks like this:
>
> Variable: mon_eady
> Type: double
> Total Size: 262144 bytes
> 32768 values
> Number of Dimensions: 2
> Dimensions and sizes: [lat | 128] x [lon | 256]
> Coordinates:
> lat: [-88.92773535229591..88.92773535229591]
> lon: [ 0..358.59375]
> Number Of Attributes: 2
> _FillValue : -9999
> average_op_ncl : dim_avg_n function was applied
> (0)
> (0) min=-2.10584 max=2.62161
>
>
> But I have no idea why NCL couldn't plot this. I am attaching the script
> also but the script is little bit long.
>
> Thanks,
> Soumik
>
>
> --
> *************************************
> Soumik Basu
> Graduate Student, Research Assistant
> International Arctic Research Center
> University of Alaska Fairbanks
> Fairbanks,Alaska,USA
> **************************************
>
>
> -----------------------------------------
> This email was sent using SquirrelMail.
> "Webmail for nuts!"
> http://squirrelmail.org/_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

__________________________________________________
Adam Phillips
National Center for Atmospheric Research
Climate and Global Dynamics Division
P.O. Box 3000
Boulder, CO 80307-3000 tel: (303) 497-1726
http://www.cgd.ucar.edu/cas/asphilli

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 26 21:25:48 2011

This archive was generated by hypermail 2.1.8 : Tue May 03 2011 - 14:47:35 MDT