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
|
Reassembles the vector-like |
- pycsa.core.reconstruction.recon_2D(recons_z, cell)¶
Reassembles the vector-like
recons_zinto a 2D representation given by the properties ofcell.- Parameters:
recons_z (array-like) – reconstructed topography from
pycsa.core.lin_reg.do()cell (
pycsa.data.cell.topo_cell) – instance of thecellobject
- Returns:
2D reconstructed topography, values outside the mask are set to zero.
- Return type:
array-like