|
Re: irregular-to-irregular interpolation [message #76031 is a reply to message #76016] |
Fri, 13 May 2011 05:05  |
David Streutker
Messages: 34 Registered: June 2005
|
Member |
|
|
On May 12, 5:50 pm, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article <k-bowman-A42E1F.16352312052...@news.tamu.edu>,
> "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
>
>> I think you need to use TRIGRID with the XOUT and YOUT keywords.
>
>> Ken Bowman
>
> That may not work either. You will have to do some experimentation,
> and I bet you can fool TRIGRID into doing what you want.
>
> Ken Bowman
TRIGRID with XOUT and YOUT will output to an irregularly spaced grid.
If you need to output to scattered points, use GRIDDATA with the XOUT
and YOUT keywords.
|
|
|
|
Re: irregular-to-irregular interpolation [message #76040 is a reply to message #76039] |
Thu, 12 May 2011 14:35  |
Kenneth P. Bowman
Messages: 585 Registered: May 2000
|
Senior Member |
|
|
In article
<61009620-8115-4a53-a223-b2f8189a186c@w36g2000vbi.googlegroups.com>,
Gray <graylikethecolor@gmail.com> wrote:
> On May 12, 11:01�am, Jeremy Bailin <astroco...@gmail.com> wrote:
>> This is one of those this-must-exist-but-I-can't-find-it cases:
>>
>> I have a quantity which is sampled irregularly over a 2D region. I would like to interpolate its value at a number of irregularly-spaced locations. I've only been able to find functions that go to and from regular grids - so I could go from the irregularly-sampled grid to a regular grid, and then from the regular grid to the irregularly-spaced interpolation points, but that seems silly. Is there something that already exists that goes directly from irregularly-sampled data to irregularly-spaced interpolation points?
>>
>> -Jeremy.
>
> You should be able to use INTERPOLATE, with your x and y vectors being
> your irregular points.
I don't think that INTERPOLATE will work. INTERPOLATE expects
a gridded input field.
I think you need to use TRIGRID with the XOUT and YOUT keywords.
Ken Bowman
|
|
|
Re: irregular-to-irregular interpolation [message #76051 is a reply to message #76040] |
Thu, 12 May 2011 09:58  |
Jeremy Bailin
Messages: 618 Registered: April 2008
|
Senior Member |
|
|
No, INTERPOLATE requires that the original samples be on a regular grid.
I probably should just code up my own, but I don't have time so I'm resorting to using TRIGRID to go from irregular samples to a regular grid, and then INTERPOLATE to go from the regular grid to my desired locations.
-Jeremy.
|
|
|
Re: irregular-to-irregular interpolation [message #76052 is a reply to message #76051] |
Thu, 12 May 2011 09:46  |
Gray
Messages: 253 Registered: February 2010
|
Senior Member |
|
|
On May 12, 11:01 am, Jeremy Bailin <astroco...@gmail.com> wrote:
> This is one of those this-must-exist-but-I-can't-find-it cases:
>
> I have a quantity which is sampled irregularly over a 2D region. I would like to interpolate its value at a number of irregularly-spaced locations. I've only been able to find functions that go to and from regular grids - so I could go from the irregularly-sampled grid to a regular grid, and then from the regular grid to the irregularly-spaced interpolation points, but that seems silly. Is there something that already exists that goes directly from irregularly-sampled data to irregularly-spaced interpolation points?
>
> -Jeremy.
You should be able to use INTERPOLATE, with your x and y vectors being
your irregular points.
|
|
|