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

Home » Public Forums » archive » Re: interpolation help required
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: interpolation help required [message #9288] Thu, 12 June 1997 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Sheppard Raelene writes:

> I'm trying to write a program for IDL to interpolate grid points. My original
> dataset contains "spikes" in the data, so I don't want to use polynomial
> interpolations as this produces instabilities in the interpolated field. Any
> other form of interpolation would be fine though. I'm currently trying to use
> the BILINEAR function. My input dataset contains 288 longitudes (1.25 degs.)
> by 217 latitudes (0.83 deg.). I want to interpolate this to 320 longitudes
> (1.125 deg.) by 160 latitudes (gaussian grid at about 1.125 deg.). I seems to
> constantly get the error message "Coordinate arrays must have same length
> if Grid not set". I haven't come across this error before, and find help less
> than helpful. Can anyone explain the meaning of this to me? Also, if
> someone has already tackled a similar problem, I'd be EXTREMELY greatful if
> you could send me a copy of the program with a brief explanation (if
> necessary). My email address is:

I don't have time this morning to check this out in any detail,
but my guess is that the BILINEAR function is calling the
INTERPOLATE function (which you should probably be using
yourself) and is forgetting to set the GRID keyword to
INTERPOLATE. This keyword MUST be set if the interpolated
vectors are of different lengths. See the help for
INTERPOLATE for additional information.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Customizable IDL Programming Courses
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
IDL 5 Reports: http://www.dfanning.com/documents/anomaly5.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: [IE]: AP nets Rs 3 crore daily after lifting dry law
Next Topic: interpolation help required

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

Current Time: Wed Oct 08 19:43:33 PDT 2025

Total time taken to generate the page: 0.00695 seconds