source_modelling.srf_reader
def
read_srf_points( srf_file_handle_py: <class 'TextIO'>, point_count: int) -> tuple[numpy.ndarray[typing.Any, numpy.dtype[numpy.float64]], scipy.sparse._csr.csr_array, scipy.sparse._csr.csr_array, scipy.sparse._csr.csr_array]:
Read point_count SRF points from an SRF file.
Parameters
- srf_file_handle_py (TextIO): The SRF file to read from.
- point_count (int): The number of points to read.
Returns
- metadata (array): The metadata for each point.
- slip1ts (sparse matrix): The sparse matrix of slip values in the first component for each point.
- slip2ts (sparse matrix): The sparse matrix of slip values in the second component for each point.
- slip3ts (sparse matrix): The sparse matrix of slip values in the third component for each point.