[SciPy-User] [SciPy-user] 2d interpolation, non-regular lat/lon grid - help with delauney/natgrid??

Robert Kern robert.kern@gmail....
Wed Aug 12 18:11:05 CDT 2009

On Wed, Aug 12, 2009 at 18:06, John [H2O]<washakie@gmail.com> wrote:
> Robert Kern-2 wrote:
>> Are you using lat/lon as X/Y for griddata? Or are you projecting it
>> first? You should project. Not seeing your code or data, I'm not sure
>> I can diagnose what is going wrong with the interpolation.
>> --
>> Robert Kern
> I have been trying to follow your suggestion of projecting first.. see
> example later, but I'm not sure if I am doing it correctly. One question is
> how then would I return the interpolated array back to a lat/lon grid... it
> seems transform_scalar is set up to go from lat/lon TO projection. I guess
> it could be used to 'unproject' the data as well?

The output Z values will be in the same order as the inputs. There is
nothing to do.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the SciPy-User mailing list