xhorizon.diagram_tools.block_masks module
- xhorizon.diagram_tools.block_masks.uv_range(blk, crvlist)
- xhorizon.diagram_tools.block_masks.rstar_minmax(blk, crvlist)
Allow only valid values of rstar in the given block.
- xhorizon.diagram_tools.block_masks.rstar_limits(func)
Find limiting values of rstar at each rj given the metfunc.
- xhorizon.diagram_tools.block_masks.mask_split_array(array, mask)
Given an array and a mask of proper length, split the array into valid subarrays. Return list of valid subarrays. Discard invalid subarrays. Apply mask to itself to get length info. If array is empty, split into the correct number of empty arrays.
- xhorizon.diagram_tools.block_masks.mask_split_2darray(array, mask)
Applies mask_split_array to each of two columns of a 2d array. Input is an array of the form xy = np.array([x,y]) and a boolean mask. Output is a list of valid 2d subarrays of xy.
- xhorizon.diagram_tools.block_masks.mask_split_curve(crv, mask)
- xhorizon.diagram_tools.block_masks.test1()
Demonstrate the functionality of mask_split_array(array, mask).
- xhorizon.diagram_tools.block_masks.test2()
Demonstrate the functionality of mask_split_2darray(array, mask). Input is an array of the form xy = np.array([x,y]) and a boolean mask. Output is a list of valid 2d subarrays of xy.
- xhorizon.diagram_tools.block_masks.test3()
Demonstrate the functionality of mask_split_curve(crv, mask).