dimage.fake.utils package¶
-
dimage.fake.utils.dfake(nx, ny, xcen=None, ycen=None, n=1.0, r50=3.0, ba=1.0, phi=0.0, simple=False)[source]¶ Create fake Sersic galaxy image.
Parameters: nx : int
size in X of output array
ny : int
size in Y of output array
xcen : float
X center (default to nx/2.)
ycen : float
Y center (default to ny/2.)
n : float
Sersic index (default 1.)
r50 : float
Sersic half-light radius (default 3.)
ba : float
Sersic minor-to-major axis ratio (default 1.)
phi : float
Sersic position angle (default 0.)
simple : bool
if True, just evaluate, don’t integrate at center (default False)
Returns: image : np.float32
2-D ndarray (nx,ny) with fake image