plotting +-sigma curve

71 views
Skip to first unread message

mango

unread,
Sep 9, 2024, 5:53:16 AMSep 9
to OpenQuake Users

Hi everyone,

I need assistance with plotting the ±1σ and ±2σ curves using Python. I have ground motion data from OpenQuake and would like guidance on how to calculate and plot these curves.

Thank you!

Capture.PNG

Marco Pagani

unread,
Sep 12, 2024, 2:46:54 AMSep 12
to OpenQuake Users

Without seeing the code you are using it’s hard to help. If you are already computing median and std it’s quite easy to do what you ask.

--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/2bb6e6e2-20fc-45c3-abc0-45bda4fb7622n%40googlegroups.com.

mango

unread,
Oct 15, 2024, 2:51:43 AMOct 15
to OpenQuake Users
Dear Marco,

I hope this message finds you well. I am a new user of OpenQuake and am currently working with the ground motion fields (GMF) output, specifically focusing on PGA and PGV values across 1,000 number of ground motion field.

I have grouped the PGA values by site ID and computed the averages, which I have exported to an Excel file. However, I am uncertain about the correct method to compute the standard deviation for these values.
Additionally, I would appreciate your guidance on how to calculate the median for both PGA and PGV.

Could you kindly provide advice on the best approach for calculating the median and standard deviation from the OpenQuake output?

Thank you for your support and assistance.

Best regards,
Mango

mango

unread,
Oct 15, 2024, 2:51:46 AMOct 15
to OpenQuake Users

Dear Marco,

I hope this message finds you well. I am a new user of openquake.
Currently, I am working with the ground motion fields (GMF) output from OpenQuake, specifically focusing on  PGA and PGV, with 1,000 number of ground motion fields. 

Therefore, I grouped the PGA values by site ID and computed their averages. The results were then exported to an Excel file.

However, I am unsure How to compute the standard deviation , and I would also like guidance on how to properly calculate the median for both the PGA and PGV values.

Could you kindly suggest for calculating the median and standard deviation of the OpenQuake output?

Thank you for your support and guidance.

Best regards,
Mango

On Thursday, September 12, 2024 at 2:46:54 PM UTC+8 marco....@globalquakemodel.org wrote:
Reply all
Reply to author
Forward
0 new messages