WFS update, and added function for rectangular setups in the main

Increased the readability of mainWFS.py.
Normalized the intensity distribution and the lensletCentx/y.
Added support length for FFT in the parameters for the sensors.
Added function in main to handle rectangular lenslet configurations.
 
got it. then it's alright



On 15 June 2014 13:12, Nick Kant <notifications@github.com> wrote:

> In src/WFS/mainWFS.py:
>
> >  	k = 2*pi/lam # Wavenumber
> >  	
> > -	# Create grid in the pupil plane
> > -	dxo = lx/(Nx - 1.0) # Sample length on x-axis [m]
> > -	dyo = ly/(Ny - 1.0) # Sample length on y-axis [m]
> > -	xo = arange(0.0,lx + dxo,dxo) # Sample positions on x-axis [m]
> > -	yo = arange(0.0,ly + dyo,dyo) # Sample positions on y-axis [m]
> > -	Xo, Yo = meshgrid(xo,yo) # Create spatial grid
> > +	# Create grid for in the focal plane
> > +	dx = lx/(Nx - 1.0) # Sample length on x-axis [m]
>
> The problem is that I was thinking about samples and not pixels. Samples
> are taken at discrete points and as how I see it a pixel is a average over
> a certain interval, the pixel length.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/faitdivers/pyao/pull/78/files#r13785540>.
>