next up previous contents_motif.gif
Next: 8.18.9 fitBase2DGauss(mapArray,x,y,err=1.0,fwhm=11.0,gradient=1): Up: 8.18 Timing: Previous: 8.18.7 modelBase2Dgauss(p,position):

8.18.8 base2DGauss(p,fjac=None,x=None,y=None,err=None):

base2DGauss $<$ Timing: $<$ Utilities.py

    NAM: base2DGauss
    DES: function used by mpfit to fit a 2D gaussian+base
         (5 elmts array) p : parameters of the gaussian (see modelBase2Dgauss)
         (2d array)      x : position of  the pixels on the map
                             "x" = x[0] and "y" = x[1]
         (2d array)      y : the map to fit
                             y.shape should be (len(x[0]),len(x[1]))





Frank Bertoldi 2005-11-10