----- Mensaje original -----
> Thank you so much for your quick response,
>
> So I found the library, etc; I won't have problems adding my function.
>
> Regarding the cross-compilation stuff, though I'm not the best guy for
> it, I'm going to give it a try. The answer to this might be quite
> obvious, but I'm a newbie in the linux world: Can I do the whole
> compilation thing using ubuntu? It's the only distribution I have
> installed for the moment.
I am new in linux as well, and i have recently compiled gwyddion but not
crossed compiled on xubuntu.IMHO i have found it easier to work on ubuntu than
windows (but i have to use windows at work). default ubuntu instalation will
need aditional packages to be able to compile but they are all in the synaptic
package manager. And the ./configure program tells you what you are missing
(sometimes yoy just have to look for the same name but with -dev at the end).
Frankly, first time in my life the i compile a decently sized program and i
think i am spoilt: it is easy. And all the information is in the gwyiddion.net
documentation. I should be able to help should you need.
The linux version has pygwy which might help you do what you need with a
script (please share) and save you the trouble of cross compiling.
I guess that if I can't do it I will be
> processing the whole thing with matlab.
maybe this is over simplifing your problem (that i do not fully undrestand)
but, There are matlab alternatives i recall in the software centre. Seems
matlab is an over kill. Maybe you can do with some plotting program similar to
gnuplot but with a bit more support for fitting like pyplot?
But as I said i am fairly new to linux and gwyddion.
>
> regards,
> Francisco
>
> PS: the function I'm adding is just a split function:
> linear/cuadratic/linear. Both linear parts have the same parameters.
> Why do I want this? I work in nanolithography, I'm build and take AFM
> images of lines and dots, which definitely don't fit to gaussian profiles
> (and they shouldn't). I know I could just use the poly2 fit and adjust
> (patiently) the fitting range, but I have so much data to fit, that I
> wouldn't finish on time.
>
> 2011/11/9 David Nečas (Yeti) <[email protected]>
>
> > On Wed, Nov 09, 2011 at 11:30:08AM +0100, Francisco Balzarotti wrote:
> > > I'd like to know whether it's possible to use custom functions to fit
> > > profiles.
> >
> > Unfortunately, no. Namely because the fitter is an ancient unscaled
> > M-L fitter code so it is difficult to export an interface for user
> > fitting functions that would be actually useful.
> >
> > > In the case I have to edit a module to introduce the functions I
> > > need,
> > may
> > > you give some orientation with which module and the
> > > editing/compiling tools? (I'm using the windows version)
> >
> > Fitting functions are not defined in modules, they are defined in
> > libgwyddion/nlfitpresets.c. A new function is added by adding an entry
> > to fitting_presets[]. The meaning of struct _GwyNLFitPresetBuiltin
> > members should be relatively clear and the existing functions can serve
> > as examples. If your new function could be of general interest it can
> > be added to Gwyddion so that everyone can use it.
> >
> > Gwyddion for MS Windows is cross-compiled on Linux as described in the
> > user guide
> >
> >
> > http://gwyddion.net/documentation/user-guide-en/installation-cross-mingw32.html
> >
> > This is the only method I am able to use because it does not involve
> > having actual MS Windows. So the tools consist of a text/code editor
> > of your choice and the standard GNU toolchain.
> >
> > Regards,
> >
> > Yeti
> >
> >
> >
> > ------------------------------------------------------------------------------
> > RSA(R) Conference 2012
> > Save $700 by Nov 18
> > Register now
> > http://p.sf.net/sfu/rsa-sfdev2dev1
> > _______________________________________________
> > Gwyddion-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/gwyddion-users
> >
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users