Skip to content

Add class to Stoch files#36

Merged
lispandfound merged 11 commits intomainfrom
stoch
Mar 26, 2025
Merged

Add class to Stoch files#36
lispandfound merged 11 commits intomainfrom
stoch

Conversation

@lispandfound
Copy link
Copy Markdown
Contributor

This PR introduces a new module to read stoch files. This is useful for debugging HF runs.

Summary of the StochFile class:

  • Reads and parses stochastic slip model files, extracting data about fault planes.
  • Provides access to key plane properties, including:
    • planes: A list of Plane objects representing the fault geometry.
    • slip: A list of 2D numpy arrays containing slip values for each plane.
    • patch_centres: A list of 2D numpy arrays containing the geographic coordinates of patch centres.
    • rise: A list of 2D numpy arrays containing rise time values.
    • trup: A list of 2D numpy arrays containing rupture time values.

I have extracted some functions from the srf module for common functionality with the stoch module

@lispandfound
Copy link
Copy Markdown
Contributor Author

See the wiki for a description of the stoch file format.

Copy link
Copy Markdown
Member

@sungeunbae sungeunbae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent

@lispandfound lispandfound merged commit 2fbd8dd into main Mar 26, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants