autolens.potential_correction.PairRegularDpsiMesh#

class PairRegularDpsiMesh[source]#

Bases: object

Pairs the dpsi mesh to the data grid: cleans the data mask, bins it onto the coarser dpsi mesh (cleaning again), builds the bilinear dpsi-to-data interpolation matrix and the sparse first/second derivative operators of both grids.

Parameters:
  • mask – The 2D bool data mask (True = masked), typically an annular-like region tracing the lensed arcs.

  • pixel_scale (float) – The pixel size of the data grid, in arcsec.

  • dpsi_factor (int) – How many times coarser than the data grid the dpsi mesh is; both mask dimensions must be divisible by it.

Methods

get_dpsi2data_mapping

The sparse matrix of shape [n_unmasked_data_pixels, n_unmasked_dpsi_pixels] mapping a vector on the coarser dpsi mesh to the finer data grid by bilinear interpolation.

get_gradient_operator_data

get_gradient_operator_dpsi

get_hamiltonian_operator_data

get_hamiltonian_operator_dpsi

get_itp_box_ctr

grid_1d_from_mask

show_grid

grid_1d_from_mask()[source]#
get_itp_box_ctr()[source]#
get_dpsi2data_mapping()[source]#

The sparse matrix of shape [n_unmasked_data_pixels, n_unmasked_dpsi_pixels] mapping a vector on the coarser dpsi mesh to the finer data grid by bilinear interpolation.

get_gradient_operator_data()[source]#
get_gradient_operator_dpsi()[source]#
get_hamiltonian_operator_data()[source]#
get_hamiltonian_operator_dpsi()[source]#
show_grid(output_file='grid.png')[source]#