check_grid_compatibility#

mhm_tools.common.esri_grid.check_grid_compatibility(header_1, header_2, name_1='LA', name_2='LB')[source]#

Check grids for compatibility.

Parameters:
  • header_1 (dict) – Header of the first gird to check.

  • header_2 (dict) – Header of the second grid to check.

  • name_1 (str, optional) – Name of the first grid/level, by default “LA”

  • name_2 (str, optional) – Name of the second grid/level, by default “LB”

Raises:
  • ValueError – If the grids don’t share the same lower-left corner.

  • ValueError – If the extends are not fitting to be used in mHM.