Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions source_modelling/srf.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,10 @@ class SrfFile:
the linked documentation on the SRF format for more details.

slipt1_array : csr_array
A sparse array containing the slip for each point and at each timestep, where
slipt1_array[i, j] is the slip for the ith patch at time t = j * dt.
A sparse array containing the slip rate (cm/s) for each point and at each
timestep, where slipt1_array[i, j] is the slip rate for the ith patch at
absolute time t = j * dt. The non-zero entries of row i start at column
floor(tinit / dt), where tinit is the rupture initiation time of the ith patch.

References
----------
Expand Down Expand Up @@ -578,8 +580,8 @@ def to_xarray(self, include_slip_time_function: bool = True) -> xr.Dataset:
attrs={
"sparse_format": "csr",
"original_shape": self.slipt1_array.shape,
"units": "cm",
"description": "Slip for each patch at each timestep",
"units": "cm/s",
"description": "Slip rate for each patch at each timestep",
},
)
datasets.append(slip_ds)
Expand All @@ -590,7 +592,7 @@ def to_xarray(self, include_slip_time_function: bool = True) -> xr.Dataset:

@property
def slip(self):
"csr_array: A sparse array containing slip-time functions for each point."
"csr_array: A sparse array containing slip-rate functions (cm/s) for each point."
return self.slipt1_array

@property
Expand Down
Loading