Re: grid conversion

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue, 11 Apr 2006 09:31:41 -0600 (MDT)


I am not a pyngl/python person.

Just a comment on using spherical harmonics to regrid.
As a general rule, don't use on variables that are bounded.
EG: precipitation is bounded by zero; % relative humidity
by 0 and 100

If the spherical harmonic modules do not have what you need,
I'm sure that there must be a (say) bilinear interpolation
module somewhere in python-land.

good luck
>Hi Wendi,
> [I tried to respond to this much earlier, but our mailman email
> lists were down earlier. You may have gotten some individual
> messages from me earlier, but I have new information here.]
>We don't have anything in PyNGL that can do what you're asking, but
>check out the spherical harmonic NCL function "g2fsh":
>and let me know if this might work for you. If so, then we can look
>into implementing a version of this in PyNGL. However, we are trying
>to be careful about not duplicating Python analysis efforts, and I
>believe there may already be a couple of spherical harmonic Python
>modules out there: the SciPy "sph_harm" module, and Jeff Whitaker's
>"spharm" module:
>I'm not familiar with these modules, so I don't if they are a direct
>implementation of the spherical harmonic routines, or if they do more
>"high level" stuff like the suite of g2fsh, f2gsh, f2fsh, etc routines
>in NCL.
>On Mon, 10 Apr 2006, Wendi Madsen wrote:
>> Good Afternoon
>> I am reading several files, both netcdf and binary, to do a hovmeuller
>> plot. All of the data, except one, is in 145x73 lat/long grid. The
>> one data set in on a 192x92 grid. How do I get the oddball grid to
>> the same shape as the other datasets?? Thanks for your help.
>> Wendi Madsen
>pyngl-talk mailing list

pyngl-talk mailing list
Received on Tue Apr 11 2006 - 09:31:41 MDT

This archive was generated by hypermail 2.2.0 : Wed Apr 12 2006 - 22:14:01 MDT