RE: [pyngl-talk] polar projection

From: Ertl, John <john.ertl_at_nyahnyahspammersnyahnyah>
Date: Thu, 3 Nov 2005 10:32:05 -0800


Great, I will give it a try and see what happens. I had not thought about
your second option...good idea.

Thanks for the help,


 -----Original Message-----
From: David Ian Brown []
Sent: Thursday, November 03, 2005 10:19 AM
To: Ertl, John
Subject: Re: [pyngl-talk] polar projection

Hi John,
If you want to view the data in its native grid, you need to set the
mpProjection = "stereographic"
mpCenterLatF = 90 or -90 (since it's a "polar" stereographic projection)
mpCenterLonF = the orientation of the projection

mpLimitMode = (usually) "corners" or maybe "points"
If "corners" the 4 resources:
mp[Left/Right]Corner[Lat/Lon]F = the lower left and upper right
coordinates of your grid
If points the 8 resources:
mp[Left/Top/Right/Bottom]Point[Lat/Lon]F = the corner points of the grid

tfDoNDCOverlay = True

Alternatively you can display the data in any projection if you have
(2) 2D arrays with the
coordinate values (lats and lons) of each point in your grid.

Then you can just set the resources sfXArray and sfYArray to the lon
and lat arrays
before calling Ngl.contour_map (assuming you want a contour plot).


On Nov 3, 2005, at 10:53 AM, Ertl, John wrote:

> All,
> I have a 2-D Numeric array and the data is in a polar stereographic
> projection. I have been trying to figure out what attributes I need
> to set
> to view the grid. The example on the examples page used NIO but I
> have the
> grid and meta data from two separate sources. I need to know what
> attributes
> are required to do a simple display. If any one has an example or a
> web
> page with the answer please let me know.
> Thanks,
> John Ertl
> _______________________________________________
> pyngl-talk mailing list
pyngl-talk mailing list
Received on Thu Nov 03 2005 - 11:32:05 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 19 2006 - 21:31:53 MST