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

Home » Public Forums » archive » Irregular data interpolation problem
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
Irregular data interpolation problem [message #17185] Fri, 24 September 1999 00:00 Go to next message
Philippe Peeters is currently offline  Philippe Peeters
Messages: 14
Registered: April 1996
Junior Member
Hi all,

Sorry if this has already been answered but I didn't find a solution in
the FAQ, various web site etc...

The problem is quite simple: I have a set of measurements from all over
the Earth. The measurements are irregularly spaced (satellite
measurements) and I want to interpolate the data to a regular grid (1
degree x 1 degree).
I have experimented with TRIANGULATE and TRIGRID with de SPHERE keyword
but the resulting interpolated grid becomes very strange as I increase
de number of measurements.

It seems that, with SPHERE keyword, TRIGRID does not make a linear
interpolation but a quintic polynomial interpolation (even though the
QUINTIC keyword is not used). Second, let's say I feed the
TRIANGULATE+TRIGRID with 10 points, the resulting grid seems reasonable.
With 100 points, it is still ok. With 200, I have very strange
interpolated value (peaks and negative value although the input value is
strictly positive). With higher number of observation points, the result
becomes more and more dramatic (I can have as much as 25000 points).

Maybe I'm doing something wrong, maybe TRIANGULATE+TRIGRID is not the
right tool for the job

--
Philippe Peeters
------------------------------------------------------------ ------------
Institut d'Aeronomie Spatiale de Belgique Tel: +32-2-373.03.81
Belgisch Instituut voor Ruimte-A�ronomie Fax: +32-2-374.84.23
3 Avenue Circulaire Email: philp@oma.be
B-1180 Brussels, Belgium http://www.oma.be/BIRA-IASB/
Re: Irregular data interpolation problem [message #17303 is a reply to message #17185] Tue, 28 September 1999 00:00 Go to previous message
Jonathan Joseph is currently offline  Jonathan Joseph
Messages: 69
Registered: September 1998
Member
Philippe,

I can recall having some problems with this sort of thing in the
past, though I can't remember the cause. Have you looked
at sph_scat? You can look at the IDL code for this. It should
be similar (or identical) to what you want to do.

If you post the relevant portion of your code and the
list of 200 points which causes the faulty behavior as
well as the list of 100 points that yeilds correct behavior, I'm
sure someone will be able to help you out.

-Jonathan

Philippe Peeters wrote:
>
> Hi all,
>
> Sorry if this has already been answered but I didn't find a solution in
> the FAQ, various web site etc...
>
> The problem is quite simple: I have a set of measurements from all over
> the Earth. The measurements are irregularly spaced (satellite
> measurements) and I want to interpolate the data to a regular grid (1
> degree x 1 degree).
> I have experimented with TRIANGULATE and TRIGRID with de SPHERE keyword
> but the resulting interpolated grid becomes very strange as I increase
> de number of measurements.
>
> It seems that, with SPHERE keyword, TRIGRID does not make a linear
> interpolation but a quintic polynomial interpolation (even though the
> QUINTIC keyword is not used). Second, let's say I feed the
> TRIANGULATE+TRIGRID with 10 points, the resulting grid seems reasonable.
> With 100 points, it is still ok. With 200, I have very strange
> interpolated value (peaks and negative value although the input value is
> strictly positive). With higher number of observation points, the result
> becomes more and more dramatic (I can have as much as 25000 points).
>
> Maybe I'm doing something wrong, maybe TRIANGULATE+TRIGRID is not the
> right tool for the job
>
> --
> Philippe Peeters
> ------------------------------------------------------------ ------------
> Institut d'Aeronomie Spatiale de Belgique Tel: +32-2-373.03.81
> Belgisch Instituut voor Ruimte-A�ronomie Fax: +32-2-374.84.23
> 3 Avenue Circulaire Email: philp@oma.be
> B-1180 Brussels, Belgium http://www.oma.be/BIRA-IASB/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Mdot using postscript fonts
Next Topic: Problem with Annotate.pro

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

Current Time: Wed Oct 08 11:51:10 PDT 2025

Total time taken to generate the page: 0.00769 seconds