Hi Steve, I've attached my implementation of minimum curve fitting, munged from the IDL routine of the same name. I've usually saved it as min_curve_surf.pdl and then used PDL::AutoLoader to pull it in, but you can just add the file to the end of your PDL script if it's a one off use.
Read the comments and examples at the top of the file to get an idea of usage. This takes x,y,z points, and a set of x,y points you want to interpolate to, and returns the interpolated z points. One word of warning: It's pretty slow, but it does seem to work well and it gives pleasing interpolated surfaces. Let me know how you get on with it! Cheers, Matt On Thu, Apr 30, 2009 at 7:34 AM, Steve Longmore <[email protected]> wrote: > Hi, > > I'm trying to grid an irregularly sampled data set onto a linear 2D grid > but am struggling to find a function to do this. I was hoping someone > could point me to a simple way of doing this. -- Matthew Kenworthy / Assistant Astronomer / Steward Observatory 933 N. Cherry Ave. / Tucson AZ 85721 / vox 520 626 6720
min_curve_surf.pdl
Description: Binary data
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
