New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to work with custom ground motion maps #6572
Comments
This is very interesting. We should definitively talk, perhaps next week, when I should hopefully have more time. |
I started on the code. The goal is to be able to input different formats from different sources and easily extend the code to be able to use additional inputs. I will open a new pull request with a first draft soon. @micheles The question remains, on how best to specify the input source and format in the job.ini file.
|
See #6636 |
I like the implementation with the CallableDict. Since you chose to implement somthing like my suggestion a) above, it is possible to use such a simple solution. In the next steps, we still have to discuss:
|
Is the work finished now? |
I am working on the integration to use shapefiles. But I don't think I have any more questions for the moment and the new code will be in line with the refactoring/optimizations up to now. |
Hi there
I am currently working with OQ to integrate our own shakemaps and ground motion maps at the SED for Switzerland into the workflow "Scenarios from ShakeMaps" which you mentioned in the advanced user manual and the paper from Silva and Horspool.
To achieve this, I need to extend the respective code of openquake. I am open to all and any input or opinions and prefer to do things differently than I propose here, if as a result it adds value to Openquake and can be added to the official repo.
I am currently working on 3 different things:
Ability to define a custom URL for a shakemap.xml file and a uncertainty.xml/zip, instead of only being able to define USGS shakemap ids. I already made a pull request for that one, I am also happy however to make changes to the proposed solution. It could also be a good idea to try streamline the input of ground motion data from different sources and in different formats (see next point).
Ability to work with ground motion maps from shapefiles. I have not yet fully implemented this. My plan right now is to add, like with the shakemaps, a possibility to input the shapefile and then parse them.
I would parse all intensity values into the same form as with the shakemaps, and use geopandas and pygeos to efficiently do the geographic associations with the sites (almost all dependencies of those packages are already in the project). From there on the existing workflow can take over.
Right now we only have vulnerability models based on MMI. Since for spatial correlation and cross correlation PGA and SA values are needed, I slightly changed the code so it works with MMI if spatial- and cross correlation are disabled.
I am happy to discuss this with you, take your input and recommendations.
Kind regards
Nicolas
The text was updated successfully, but these errors were encountered: