image_to_vis#

xrayvision.imaging.image_to_vis(image, *, u, v, center=<Quantity [0., 0.] arcsec>, pixel_size=<Quantity 2. arcsec>)[source]#

Return a Visibility created from the image and u, v sampling.

Parameters:
  • image (numpy.ndarray) – The 2D input image

  • u (astropy.units.Quantity) – Array of u coordinates where the visibilities will be evaluated

  • v (astropy.units.Quantity) – Array of v coordinates where the visibilities will be evaluated

  • center (Quantity (x, y)) – The coordinates of the center of the image.

  • pixel_size (Quantity) – Size of pixels, if only one value is given assume square pixels (repeating the value).

Returns:

Visibility – The new visibility object