Skip to content

Add PGA to AvgSA computation#11263

Merged
micheles merged 4 commits intogem:masterfrom
nc-hsu:add-PGA-to-AvgSA-computation
Mar 3, 2026
Merged

Add PGA to AvgSA computation#11263
micheles merged 4 commits intogem:masterfrom
nc-hsu:add-PGA-to-AvgSA-computation

Conversation

@nc-hsu
Copy link
Contributor

@nc-hsu nc-hsu commented Mar 2, 2026

This change allows the PGA to be considered in the calculation of AvgSA.

It is assumed that the same GMPE used to calculate the SA values can also be used to calculate the PGA.

Empirical correlation models, such as ClemettCorrelationModelAsc etc. will work with PGA so long as they have been defined for a period of T = 0.0s. Otherwise and error will be raised saying the period is out of range.

Copy link
Contributor

@CB-quakemodel CB-quakemodel left a comment

Choose a reason for hiding this comment

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

Hi @nc-hsu, thanks for this PR. Apart from my one trivial comment it looks good to me.

def setUp(self):
self.corr_model = ClemettCorrelationModelVrancea(np.array([1, 1.1, 2.0]))

# TODO
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this comment or expand what is still to be done here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an erroneous comment that I forgot to delete. I have removed it now

@CB-quakemodel CB-quakemodel requested a review from micheles March 2, 2026 14:35
@CB-quakemodel CB-quakemodel added this to the Engine 3.26.0 milestone Mar 2, 2026
@micheles micheles merged commit 9838f38 into gem:master Mar 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants