webbpsf_ext.image_manip.get_im_cen

webbpsf_ext.image_manip.get_im_cen(im)[source]

Returns pixel position (xcen, ycen) of array center. For odd dimensions, this is in a pixel center. For even dimensions, this is at the pixel boundary. Assumes image size (ny, nx) is the last two dimensions of array.