planarfault class¶
- class csi.planarfault(name, utmzone=None, ellps='WGS84', verbose=True, lon0=None, lat0=None)¶
- buildPatches(lon, lat, dep, strike, dip, f_length, f_width, n_strike, n_dip, verbose=True, discretize=True)¶
Builds a dipping fault. Args:
lat,lon,dep: coordinates at the center of the top edge of the fault
strike: strike angle in degrees (from North)
f_length: length of the fault (i.e., along strike)
f_width: width of the fault (i.e., along dip)
n_strike: number of patches along strike
n_dip: number of patches along dip
- buildPatchesVarResolution(lon, lat, dep, strike, dip, f_length, f_width, patch_lengths, patch_widths, interpolation='linear', verbose=True)¶
Builds a dipping fault. Args:
lat,lon,dep: coordinates at the center of the top edge of the fault
strike: strike angle in degrees (from North)
f_length: length of the fault (i.e., along strike)
f_width: width of the fault (i.e., along dip)
n_strike: number of patches along strike
n_dip: number of patches along dip
- discretize(lon, lat, strike, length, n_strike)¶
Define the discretized trace of the fault Args:
lat,lon: coordinates at the center of the top edge of the fault
strike: strike angle in degrees (from North)
length: length of the fault (i.e., along strike)
n_strike: number of patches along strike
- moveFault(dx, dy, dz)¶
Translates all the patches by dx, dy, dz.