ogs5py.tools.tools.by_id

ogs5py.tools.tools.by_id(array, ids=None)[source]

Return a flattend array side-by-side with the array-element ids.

Parameters:
  • array (array-like) – Input data. will be flattened.

  • ids (None or array-like) – You can provide specific ids if needed. As default, the array-ids are used. Default: None

Return type:

zipped (id, array) object