@decorator_util.jit()<EOL>def mask_circular_from_shape_pixel_scale_and_radius(shape, pixel_scale, radius_arcsec, centre=(<NUM_LIT:0.0>, <NUM_LIT:0.0>)):
mask = np.full(shape, True)<EOL>centres_arcsec = mask_centres_from_shape_pixel_scale_and_centre(shape=mask.shape, pixel_scale=pixel_scale, centre=centre)<EOL>for y in range(mask.shape[<NUM_LIT:0>]):<EOL><INDENT>for x in range(mask.shape[<NUM_LIT:1>]):<EOL><INDENT>y_arcsec = (y - centres_arcsec[<NUM_LIT:0>]) * pixel_scale<EOL>x_arcsec = (x - centres_arcsec[<NUM_LIT:1>]) * pixel_scale<EOL>r_arcsec = np.sqrt(x_arcsec ** <NUM_LIT:2> + y_arcsec ** <NUM_LIT:2>)<EOL>if r_arcsec <= radius_arcsec:<EOL><INDENT>mask[y, x] = False<EOL><DEDENT><DEDENT><DEDENT>return mask<EOL>
Compute a circular masks from an input masks radius and regular shape.