square_up

geodetic_engine.bingrid.square_up(corners, *, scale_factor=1.0, increment_i=1, increment_j=1)[source]

Fit the SDU note’s rectangle through four corners and measure the misfit.

Parameters:
  • corners (BinGridCorners) – The corners.

  • scale_factor (float, default: 1.0) – Bin grid scale factor, as for derive_p6().

  • increment_i (int, default: 1) – Inline node increment.

  • increment_j (int, default: 1) – Crossline node increment.

Return type:

SquaringResult

Returns:

The fitted grid, the squared corners and the residuals.

Raises: