Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

ManeaEtAl2021, Required Site Parameters

117 views
Skip to first unread message

Ali Talha Atici

unread,
Jan 16, 2024, 1:56:20 AM1/16/24
to OpenQuake Users
Hello everyone,

I'm attempting to utilize the GMM, ManeaEtAl2021, but I'm encountering an error. The error suggests that "f0" is needed for site parameters. Despite adding "f0" as a column to the CSV file containing site parameters, the issue persists and remains unresolved.

- KeyError: "Missing dtype for field 'f0'" - 

REQUIRES_SITES_PARAMETERS = {'vs30', 'f0', 'backarc'}

I've uploaded my CSV file containing site parameters. Is there anyone available to help in resolving this error?
Site_Model.csv

Peter Pažák

unread,
Jan 20, 2024, 4:30:07 PM1/20/24
to OpenQuake Users
Yes, that seems to be a bug, you can add  e.g. line 164 to the file:


with content:

    'f0': numpy.float64,

and that will enable to use the GMPE and site model you created.
Later this will probably be corrected in the master.

Peter

Dátum: utorok 16. januára 2024, čas: 7:56:20 UTC+1, odosielateľ: alit...@gmail.com

Elena Manea

unread,
Jan 23, 2024, 1:42:19 AM1/23/24
to OpenQuake Users
Thanks Peter!

alit...@gmail.com (cannot see your name, apologies), if you have any questions on the gmpe, please let me know.

I didn't try to run it on the newest version of the engine lately, but everything was fine on an older one. 


Best,
Elena



Michele Simionato

unread,
Jan 23, 2024, 6:04:48 AM1/23/24
to OpenQuake Users
This is fixed now. For background information see https://github.com/gem/oq-engine/issues/7337.

      Michele

Reply all
Reply to author
Forward
0 new messages