image_to_vis#

xrayvision.imaging.image_to_vis(image, *, u, v, phase_center=<Quantity [0., 0.] arcsec>, pixel_size=<Quantity 1. arcsec / pix>)[source]#

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

Parameters:
  • image (Quantity) – The 2D input image

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

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

  • phase_center (Quantity | None) – The coordinates the phase_center.

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

Returns:

The new Visibilities object

Return type:

Visibilities