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

Home » Public Forums » archive » Re: 3D congrid without interpolation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 3D congrid without interpolation [message #53425 is a reply to message #53411] Fri, 13 April 2007 08:21 Go to previous messageGo to previous message
Mike[2] is currently offline  Mike[2]
Messages: 99
Registered: December 2005
Member
On Apr 12, 6:40 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
> CONGRID interpolates 3-dimensional arrays by default.

If you are really looking for a method that requires no interpolation,
you will have to choose your new array to overlap a subset of the
array indexes of the original data. I suspect you might really be
thinking about nearest neighbor interpolation. If so, you can do that
by

1 - calculating the [x,y,z] coordinates at which I want to evaluate my
data.

2 - round the coordinates

3 - interpolate a new array with interpolate(data,x,y,z)

This can be a memory hog for large arrays since you need 4 arrays for
each point in the new array. In the case where this leads to lots of
swapping, I usually do it slice by slice.

Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Pasting subarray into array with compound assignment
Next Topic: Re: newbie's question for writing files

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

Current Time: Wed Oct 08 19:25:09 PDT 2025

Total time taken to generate the page: 0.00398 seconds