pycsa.core.reconstruction

Reassembly of masked reconstruction vectors back to 2D fields.

Provides recon_2D(), which scatters a flat per-point reconstruction vector (as produced by the linear-fit step) back onto the 2D grid of a topography cell using the cell’s boolean mask, leaving out-of-mask points at zero.

Functions

recon_2D(recons_z, cell)

Reassembles the vector-like recons_z into a 2D representation given by the properties of cell.

pycsa.core.reconstruction.recon_2D(recons_z, cell)

Reassembles the vector-like recons_z into a 2D representation given by the properties of cell.

Parameters:
Returns:

2D reconstructed topography, values outside the mask are set to zero.

Return type:

array-like