itasca.sel.linerarray

Array interface for 3DEC liners.

Functions

itasca.sel.linerarray.extra(slot: int) → array float{liner} or float{liner,3}.

Get the liner extra data in the given slot as an array. Extra variables accessed by array must be of type float or vec.

itasca.sel.linerarray.ids() → array int{liner}.

Get the liner ids as an array.

itasca.sel.linerarray.in_group(group_name: str, slot="default") → array bool{nliner}.

Return block group membership as a Boolean array.

itasca.sel.linerarray.set_extra(slot: int, data: array float{liner} or float{liner, 3}) → None.

Set the liner extra data in the given slot with an array. Extra variables set by array must be of type float or vec.

itasca.sel.linerarray.set_group(membership: array bool{nliner}, group_name: str, slot="default") → None.

Set block group from an array. Where membership True set the corresponding block to be a member of group group_name in the given slot.