mem#

xrayvision.mem.mem(vis, shape, pixel_size, *, percent_lambda=<Quantity 0.02 %>, maxiter=1000, tol=0.001, map=True, total_flux=None)[source]#

Maximum Entropy Method visibility based image reconstruction

Parameters:
  • vis (Visibilities) – Input Visibilities

  • shape (Annotated[Quantity, Unit("pix")]) – Image size

  • pixel_size (Annotated[Quantity, Unit("arcsec / pix")]) – Pixel size

  • percent_lambda (Annotated[Quantity, Unit("%")] | None) – Value used to compute the regularization parameter as a percentage of a maximum value automatically overestimated by the algorithm. Must be in the range [0.0001,0.2]

  • maxiter (int) – Maximum number of iterations of the optimisation loop

  • tol (float) – tolerance value used in the stopping rule ( || x - x_old || <= tol || x_old ||)

  • map (bool) – Return a sunpy map or bare array

  • total_flux (Quantity | None) – The total flux/counts contained in the image. If not set, total_flux is estimated using _estimate_flux.

Return type:

Quantity | ndarray[Any, dtype[float64]]