makeimg.gengrid¶
-
makeimg.
gengrid
(N)[source]¶ Creates an N-by-N grid needed to construct most artificial images
Parameters: N : int
Image dimension
Returns: x : NumPy 2darray
2D grid array of x-values on the domain [xmin,xmax]-by-[ymin,ymax]
y : NumPy 2darray
2D grid array of y-values on the domain [xmin,xmax]-by-[ymin,ymax]
xmin : float
Left boundary of the (rectangular) domain. By default xmin = 1
xmax : float
Right boundary of the (rectangular) domain. By default xmax = N
ymin : float
The lower boundary of the (rectangular) domain. By default ymin = 1
ymax : float
The upper boundary of the (rectangular) domain. By default ymax = N
x1 : NumPy 1darray
The x-spacing on the domain
y1 : NumPy 1darray
The y-spacing on the domain
See also
meshgrid
- NumPy’s meshgrid
makegrid
- found in the module myvec.makegrid