Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: GRIDDATA wo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 15 of 28 Topic 5497 of 6252
Post > Topic >>

Re: GRIDDATA woes

by "ben.bighair" <ben.bighair@[EMAIL PROTECTED] > Mar 4, 2008 at 08:05 AM

On Mar 3, 9:24 am, "Kenneth P. Bowman" <k-bow...@[EMAIL PROTECTED]
> wrote:
> In article
> <57808cc6-8454-45f1-a104-50e465ef2...@[EMAIL PROTECTED]
>,
>
>  "ben.bighair" <ben.bigh...@[EMAIL PROTECTED]
> wrote:
> > I have seen a number of messages on the newsgroup about interpolation
> > from an irregular grid to a regular one.  None appear to address the
> > issues around gridding on a sphere. I don't think I can use anything
> > as simple as INTERPOLATE since the input array is sampled at irregular
> > intervals.
>
> > So how is this kind of interpolation supposed to be done?
>
> If your grid is rectangular and separable (in the sense that all the
> longitudes in each "column" of data are the same and all of the
> latitudes in each "row" of data are same), even if the coordinates
> are not regularly spaced, then it is actually quite
> easy to interpolate to any set of points (regular or irregular) using
> INTERPOLATE.  This should be much faster than triangulating.
>
> This problem looks just like the one David Fanning was working
> on recently, and here is an outline of the solution
>
> > Assuming that your data is 2-D (x = longitude and y = latitude),
create
> > the grids that you want to interpolate to
> > nx = 360
> > ny = 181
> > x  = FINDGEN(nx)
> > y  = -90.0 + FINDGEN(ny)
> > Compute the "interpolation coordinates" from the original grid
> > j  = VALUE_LOCATE(y_original, y)
> > yj = j + (y - y_original[j])/(y_original[j+1] - y_original[j])
> > Since the input and output grids are the same in the x-direction, you
> > don't need to do anything with x.  Expand x and yi into 2-D arrays
> > xx = REBIN(x, nx, ny, /SAMPLE)
> > yy = REBIN(REFORM(yi, 1, ny), nx, ny, /SAMPLE)
> > Then interpolate
> > new = INTERPOLATE(original, xx, yy)
>
> By happy chance, the interpolation chapter from my book is the sample
> that is posted online here
>
>    http://idl.tamu.edu/Book.html
>
> Ken Bowman



Thanks Bill and Ken,

I had scoured the c.l.i-p archives but never used "regridding" keyword
which, in hindsight, seems the perfect keyword.  The perils of keyword
searches...

The discussion on INTERPOLATE that you reference  (see
http://tinyurl.com/38mr7k)
is the first time I have ever "gotten" INTERPOLATE.  Thank you!  The
function has always felt so awkward because the units x and y are in
dimensions - it always left me feeling a little disconnected from the
physical meaning.  I'll get over it.

For my purposes the INTERPOLATE method is probably just the ticket,
but I do have this lingering question about the fact that the input
values are drawn from the surface of a sphere.  What are the
conditions under which I do need to worry about it?  Is it the spacing
between the input values?  The extend over the sphere?  Some
combination?

I have read that gridding can be as much art as science, but I would
love to have some general principles that tell me when I can rely on
one more than the other.

I agree with David, Ken's book is an excellent resource.  Mine is well
thumbed.  Come to think of it, all my IDL books are well thumbed.

Cheers and thanks again,
Ben
 




 28 Posts in Topic:
GRIDDATA woes
"ben.bighair" &  2008-03-02 18:57:27 
Re: GRIDDATA woes
Bill Gallery <wgallery  2008-03-03 11:00:55 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 10:05:13 
Re: GRIDDATA woes
"Kenneth P. Bowman&q  2008-03-03 08:24:14 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 08:35:55 
Re: GRIDDATA woes
"Kenneth P. Bowman&q  2008-03-04 21:04:16 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 22:04:32 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 12:49:54 
Re: GRIDDATA woes
"Kenneth P. Bowman&q  2008-03-04 20:55:19 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-05 07:57:59 
Re: GRIDDATA woes
Kenneth Bowman <k-bowm  2008-03-05 10:05:10 
Re: GRIDDATA woes
Kenneth Bowman <k-bowm  2008-03-05 08:14:03 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 14:14:37 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 09:03:31 
Re: GRIDDATA woes
"ben.bighair" &  2008-03-04 08:05:59 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 10:14:46 
Re: GRIDDATA woes
"Kenneth P. Bowman&q  2008-03-04 21:02:39 
Re: GRIDDATA woes
James Kuyper <jameskuy  2008-03-05 11:38:10 
Re: GRIDDATA woes
"Kenneth P. Bowman&q  2008-03-05 07:46:41 
Re: GRIDDATA woes
Brian Larsen <balarsen  2008-03-04 08:23:04 
Re: GRIDDATA woes
Bill Gallery <wgallery  2008-03-04 09:43:26 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 10:54:50 
Re: GRIDDATA woes
Bill Gallery <wgallery  2008-03-04 14:17:35 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 16:58:42 
Re: GRIDDATA woes
pgrigis@[EMAIL PROTECTED]  2008-03-04 14:39:31 
Re: GRIDDATA woes
"ben.bighair" &  2008-03-04 14:46:46 
Re: GRIDDATA woes
"ben.bighair" &  2008-03-04 19:14:26 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 22:10:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 16:18:39 CDT 2008.