X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 26 Aug 2015 09:30 AM by  anon
Polynomial surface fit with different degrees in x and y
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:7
New Member


--
26 Aug 2015 09:30 AM
    Is there any IDL function available, which performs a surface fit to a 2-dim array with different polynomial degrees in x and y direction? That means, the routine should work like the SFIT function, but with 2 types of polynomial degrees: one degree for the x direction and the other one for y direction. E.g. degree 3 (cubic) in x direction and degree 2 (parabolic) in y direction. Ideally the polynomial fit function could also be applied to irregular data (see SFIT keyword "/irregular".). The result should be either the fit coefficients or the fit array.

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    27 Aug 2015 12:29 PM
    Hi Jürgen, You can actually change this yourself because SFIT is written in .pro code. You could go in and manually add another variable for a dimension in y which is different that the dimension in x. To open the source code, and whil ein the IDL workbench, just type ".edit SFIT" and the code should be loaded automatically. I would be sure to make a copy of the original and avoid having both in the search path of IDL if they are named the same.
    You are not authorized to post a reply.