cigvis.io.fault_skin module#
Load three types of fault skin. One fault skin file contains three parts: header, mid, tail
- classic fault skin:
header: 1 int32 number for ncells, mid: 9*ncells float32 numbers, [z, y, x, likelihood, strike, dip, slip[3]] tail: 4*ncells int32 numbers, [above, below, left, right] indices
- 12 numbers tail fault skin:
header: 4 int32 numbers, [ncells, i1seed, 12seed, i3seed] mid: 12*ncells float32 numbers, [z, y, x, likelihood, strike, dip, …] tail: 12*ncells int32 numbers, [i1a, i2a, i3a, i1b, i2b, i3b, i1l, i2l, i3l, i1r, i2r, i3r]
- .cig format (fault skin and control points)
header: 2 int32 numbers, [nctrl, ncells] mid1: 6 * nctrl float32 numbers, [cpsz, cpsy, cpsx, cusz, cusy, cusx] mid2: 6 * ncells float32 numbers, [z, y, x, likelihood, strike, dip] tail: 4 * ncells int32 numbers, [above, below, left, right] indices
see: xinwucwp/osv for classic fault skin
- cigvis.io.fault_skin.idx(name: str)#
- cigvis.io.fault_skin.load_one_skin(filename: str, endian: str = '>', values_type: str = None)#
load one skin file
Parameters#
- filenamestr
skin file name
- endianstr
endianess, big is ‘>’, little is ‘<’
- values_typestr
can be ‘likelihood’, ‘strike’, ‘dip’, …
Returns#
- verticesarray-like
shape is [N, 3]
- faces: array-like
shape is [N2, 3]
- vertex_valuesarray-like
shape is [N]
- cigvis.io.fault_skin.load_skins(filedir: str, suffix='*', endian: str = '>', values_type: str = None)#
load muiltiple skin file and merge all vertices and faces into one
Parameters#
- filedirstr
skin files dir
- endianstr
endianess, big is ‘>’, little is ‘<’
- values_typestr
can be ‘likelihood’, ‘strike’, ‘dip’, …
Returns#
- verticesarray-like
shape is [N, 3]
- faces: array-like
shape is [N2, 3]
- vertex_valuesarray-like
shape is [N]