Scenario Damage Using user defined

51 views
Skip to first unread message

OMAIS UL MEHRAJ

unread,
Jun 18, 2024, 4:38:39 AM (12 days ago) Jun 18
to OpenQuake Users
Hi 
I am running an analysis on Scenario Damage Using user defined data. I developed the fragility functions but using 5 damage states(by adding one extra damage state). But when i run the analysis on OQ i get an error (openquake.baselib.InvalidFile: node poes: expected 101, found 90, line 12 of C:\Users\omais\AppData\Local\Temp\tmpja1b97pg\calc_210\SCENARIO\fragility_model_PGA.xml).

I request to figure this error out!

Thank You

Vitor Silva

unread,
Jun 18, 2024, 4:43:33 AM (12 days ago) Jun 18
to openqua...@googlegroups.com

Can you please share your fragility xml file? Vitor

--
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/88352920-6c60-4395-a19b-ef8e21e4da1bn%40googlegroups.com.

OMAIS UL MEHRAJ

unread,
Jun 18, 2024, 4:48:36 AM (12 days ago) Jun 18
to OpenQuake Users
Here is the fragility file.
fragility_model_PGA.xml

Vitor Silva

unread,
Jun 18, 2024, 4:52:27 AM (12 days ago) Jun 18
to openqua...@googlegroups.com

You have a formatting issue on your file. For the last damage state, you are missing a “</poes>” at the end (so after the last probability of exceeding of the last damage state).

 

You also have ids for the different functions like: UR_1961-1970&#xD;&#xA; This also seems to be a formatting issue, unless in your exposure model you have exacty these codes.

 

Best regards,

Vitor Silva

OMAIS UL MEHRAJ

unread,
Jun 18, 2024, 5:09:19 AM (12 days ago) Jun 18
to OpenQuake Users
I corrected the issue of poes but its still showing the same. Also regarding the taxonmy i have done the mapping for different structures that same fragility function which based upon the year of construction of masonry and for RC its based upon the height. I have attached all the files. Can u please take a look. That will be your most kindness.
fragility_model_PGA.xml
exposure.csv
taxonomy_mapping.csv

Vitor Silva

unread,
Jun 18, 2024, 5:20:09 AM (12 days ago) Jun 18
to openqua...@googlegroups.com

Dear Omais,

 

It should have not be exactly the same error (please verify that the corrected fragility model is being used), but you should still have an error related to the mapping scheme. You do not have exactlt same fragility classes in the mapping scheme file and the fragility model file. For example, in the mapping scheme file you have “MUR_1919”, but then on the fragility file you have “MUR-1919;”. You need to have a perfect match between all classes.

 

Best,

OMAIS UL MEHRAJ

unread,
Jun 18, 2024, 7:33:06 AM (12 days ago) Jun 18
to OpenQuake Users
I have corrected the peos thing. Finally im getting an error like ( openquake.baselib.InvalidFile: node poes: expected heavy, found heavy , line 27 of C:\Users\omais\AppData\Local\Temp\tmp09fz11ft\calc_215\SCENARIO\fragility_model_PGA.xml). The damage state i added is heavy.
fragility_model_PGA.xml

Vitor Silva

unread,
Jun 18, 2024, 7:36:56 AM (12 days ago) Jun 18
to openqua...@googlegroups.com

In line 27, as written on the error message, you have “expected_heavy”, and not “heavy”.

OMAIS UL MEHRAJ

unread,
Jun 18, 2024, 7:53:09 AM (12 days ago) Jun 18
to OpenQuake Users
As i have a single fragility function for different taxonomies depending on age and height of the building and i did the mapping as shown below. But i keep getting  openquake.baselib.InvalidFile: C:\Users\omais\AppData\Local\Temp\tmpp_adiw6i\calc_218\SCENARIO\taxonomy_mapping.csv: the weights do not sum up to 1 for MUR/LWAL+CDN/H:2/YBET:1981,1990)
I dont understand why?

taxonomy_mapping.csv
exposure.csv
fragility_model_PGA.xml

Vitor Silva

unread,
Jun 18, 2024, 8:03:09 AM (12 days ago) Jun 18
to openqua...@googlegroups.com

The mapping scheme should include only one instance of each building class in the exposure model.

 

If you have 5 building classes in the exposure model, you need to have at least 5 rows in the mapping scheme file. If you have just one fragility functions, then all building classes must be mapped to that fragility functions. For example:

 

taxonomy

conversion

weight

building_class_a

fragility_functions_1

1

building_class_b

fragility_functions_1

1

building_class_c

fragility_functions_1

1

building_class_d

fragility_functions_1

1

building_class_e

fragility_functions_1

1

 

Best,

OMAIS UL MEHRAJ

unread,
Jun 18, 2024, 6:10:48 PM (12 days ago) Jun 18
to OpenQuake Users
Thank You for the clarification. I did it. But I am now getting an error   (The exposure contains the taxonomy strings {'CR_H3', 'MUR_2005', 'MUR_1981-1990', 'MUR_1946-1960', 'CR_H4', 'MUR_1971-1980', 'MUR_1991-2000', 'MUR_1961-1970', 'MUR_1919-1945', 'MUR_2001-2005', 'MUR_1919'} which are not in the fragility/vulnerability/consequence model)

The taxonomy strings actually are in the fragility model but it keeps showing it again and again. i have shard my final zip file. Can u please check why it is now running? That will be your most kindness
SCENARIO.zip

Vitor Silva

unread,
Jun 18, 2024, 6:16:18 PM (12 days ago) Jun 18
to openqua...@googlegroups.com

Dear Omais,

 

In your fragility file you have strings such as MUR_1981-1990; and not MUR_1981-1990 (you have an “;” in each id).

OMAIS UL MEHRAJ

unread,
Jun 18, 2024, 6:50:15 PM (12 days ago) Jun 18
to OpenQuake Users
Yes i corrected it but still showing some error in export in gmf's. I tried to look for it but everYthing seems to be correct?
Screenshot (108).png
SCENARIO.zip
Reply all
Reply to author
Forward
0 new messages