comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: spatial interpolation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: spatial interpolation [message #36522] Fri, 03 October 2003 04:07 Go to next message
Richard French is currently offline  Richard French
Messages: 173
Registered: December 2000
Senior Member
On 10/3/03 6:32 AM, in article
e1330fff.0310030232.52e4cea4@posting.google.com, "Hjalti Sig"
<hjalti@vatnaskil.is> wrote:

> Thank you so much. The description for this function in the reference
> guide does not mention this - only regular grids. And the only
> possible return value mentioned is a two dimensional array. This is
> somewhat misleading.
> Regards, Hjalti
>
I've just looked this up in the IDL6.0 manual and the KEYWORDS XOUT and YOUT
(NOT the same as a returned value of a function) are definitely described,
albeit in the midst of about another 20 definitions for other keywords. So,
I don't find it misleading, but it does show that you need to read through
the documentation with great care to see the capabilities of some of the
more complex IDL procedures/functions such as AXIS.

I hope GRIDDATA does what you need.

Dick French
Re: spatial interpolation [message #36523 is a reply to message #36522] Fri, 03 October 2003 03:32 Go to previous messageGo to next message
hjalti is currently offline  hjalti
Messages: 13
Registered: October 2003
Junior Member
Thank you so much. The description for this function in the reference
guide does not mention this - only regular grids. And the only
possible return value mentioned is a two dimensional array. This is
somewhat misleading.
Regards, Hjalti


Mark Hadfield <m.hadfield@niwa.co.nz> wrote in message news:<blfjb1$bgs$1@newsreader.mailgate.org>...
> Hjalti Sig wrote:
>> Has anyone interpolated values from one set of scattered points (say
>> the terrain height of digitized contour lines from a map) to another
>> set of scattered points (say those points that are to be used in a
>> finite element model for groundwater flow). Note that this does not
>> involve any type of grids, regular nor irregular.
>> What would be tho most straightforward way to do this?
>
> The GRIDDATA function (introduced in 5.5). The XOUT and YOUT arguments
> can be used to specify any set of output points you want.
Re: spatial interpolation [message #36536 is a reply to message #36523] Wed, 01 October 2003 15:09 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Hjalti Sig wrote:
> Has anyone interpolated values from one set of scattered points (say
> the terrain height of digitized contour lines from a map) to another
> set of scattered points (say those points that are to be used in a
> finite element model for groundwater flow). Note that this does not
> involve any type of grids, regular nor irregular.
> What would be tho most straightforward way to do this?

The GRIDDATA function (introduced in 5.5). The XOUT and YOUT arguments
can be used to specify any set of output points you want.

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: spatial interpolation [message #36613 is a reply to message #36522] Sun, 05 October 2003 14:18 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Richard G. French wrote:
> On 10/3/03 6:32 AM, in article
> e1330fff.0310030232.52e4cea4@posting.google.com, "Hjalti Sig"
> <hjalti@vatnaskil.is> wrote:
>
>> Thank you so much. The description for this function in the reference
>> guide does not mention this - only regular grids. And the only
>> possible return value mentioned is a two dimensional array. This is
>> somewhat misleading.
>
> I've just looked this up in the IDL6.0 manual and the KEYWORDS XOUT and YOUT
> (NOT the same as a returned value of a function) are definitely described,
> albeit in the midst of about another 20 definitions for other keywords. So,
> I don't find it misleading, but it does show that you need to read through
> the documentation with great care to see the capabilities of some of the
> more complex IDL procedures/functions such as AXIS.

Great care and a grain or two of salt.

The opening sentence of the GRIDDATA documentation says:

The GRIDDATA function interpolates scattered data values and
locations sampled on a plane or a sphere to a regular grid.

This is true, but incomplete. As noted, GRIDDATA also does interpolation
onto irregular grids and scattered data points.

And the "return value" section says

The function result is a two-dimensional floating point array.

This is just plain wrong. It can also return 1-D output data.

A documentation bug report to RSI is warranted. Any volunteers? (They're
tired of hearing from me.)

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with Colours when plotting to screen
Next Topic: G4-related problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 02:07:24 PDT 2025

Total time taken to generate the page: 1.51897 seconds