Thanks, Chris, for the nice introduction.

Enric, it seems that you want to interpolate data from an irregular grid.  
There are, of course, many ways to do that depending on your data and goals.  
Delaunay triangulation is a technique that will let you interpolate between 
nearby stations to each point on the plane.  Weighted long-distance averaging 
is another method.  Simple sampling is boneheaded but appropriate in some 
cases. PDL has been made to do all those things, so the answer is Yes there's a 
solution for you.  I do not know of a dedicated module (yet) for the general 
problem of interpolating irregularly sampled data, so your best bet is to 
continue discussing your algorithm here on this list.

Cheers,
Craig

On Jul 13, 2012, at 8:00 AM, chm wrote:

> Correct link to PDL web page is:
> 
>  http://pdl.perl.org
> 
> Also corrected below....
> 
> On 7/13/2012 9:44 AM, chm wrote:
>> Hi Enric-
>> 
>> Welcome to PDL.  A good way to get started with
>> PDL is to get a copy of the PDL Book which covers
>> a lot of the capabilities of PDL and how to use
>> it:
>> 
>>   http://pdl.perl.org/content/pdl-book-toc.html
>> 
>> In general, a good starting point for all things
>> PDL is the PDL web site at:
>> 
>>   http://pdl.perl.org
>> 
>> And finally, this list is actually the list
>> for internal PDL development and not general
>> PDL usage and information.  The best list for
>> PDL questions, install and use and otherwise
>> is the perldl list.  See this page for info
>> on how to sign up:
>> 
>>   http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>> 
>> After you get a feel for PDL with the PDL Book,
>> you should look at the rcols routine which is
>> for reading in column data from text files.
>> 
>> Cheers,
>> Chris
>> 
>> On 7/13/2012 8:51 AM, Agud Pique, Enric wrote:
>>> Hello people,
>>> 
>>> My name is Enric Agud from Barcelona. I am new in PDL. I have written
>>> some scripts in Perl. I would like to use PDL to interpolate real
>>> data station and paint pictures of variables like precipitation and
>>> temperature with a map (a map of Catalunya)
>>> 
>>> The idea of file.dat is with one column with latitud longitud and
>>> variable, like:
>>> 
>>> 30.23 3.23  5.5 31.23 2.23  0
>>> 
>>> for around 60 station
>>> 
>>> Can I do that with PDL? is there any example that I can follow?
>>> anybody can help me? thank you very much
>>> 
>>> Salutations
>>> 
>>> Enric Agud
> 
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
> 


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to