Re: 2d lat lon coordinate info and pyncl

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 29 Mar 2006 06:09:02 -0700 (MST)

Dear Ufuk Utku Turuncoglu,

Fred Clare already answered you offline, but I thought I'd share some
general information here.

Some of the gsn_csm_xxx plotting scripts have been set up to recognize
the special "lon2d" and "lat2d" attributes, if you attach them to your
data before calling gsn_csm_xxx. If you happen to be calling an
interface that doesn't recognize these special attributes (like a
generic gsn_xxxx function, or the PyNGL interface), then generally
what you need to do is set the "sfXArray" and "sfYArray" resources to
lon2d and lat2d respectively. For example, in NCL:

     res@sfXArray = lon2d
     res@sfyArray = lat2d

In PyNGL, this might look something like:

   res.sfXArray = lon2d
   res.sfYArray = lat2d


On Wed, 22 Mar 2006, Ufuk Utku Turuncoglu wrote:

> hi,
> i try to plot a variable which has 2d lat/lon coordinate data. in ncl script
> it is possible to define variable coordinate as,
> lat2d = f->lat-array
> lon2d = f->lon_array
> t_at_lon2d = lon2d
> t_at_lat2d = lat2d
> but how can i use this kind of definition in ncl python interface?
> best regards,
> Ufuk Utku Turuncoglu
> ITU, Informatics Institute
> _______________________________________________
> ncl-talk mailing list
ncl-talk mailing list
Received on Wed Mar 29 2006 - 06:09:02 MST

This archive was generated by hypermail 2.2.0 : Wed Mar 29 2006 - 11:52:49 MST