bodlukas / ground-motion-simulation-shakemap

Simulate spatially correlated ground-motion intensity measures conditional on seismic network recordings. https://doi.org/10.5281/zenodo.7646888
GNU Affero General Public License v3.0
19 stars 6 forks source link

Handle input intensity measures in the form of RotD50 #4

Open bodlukas opened 2 hours ago

bodlukas commented 2 hours ago

The current version computes the geometric mean (average horizontal) from the provided stationlist.json file. This is currently handled within Stations.get_recordings . In some use cases, the station data might already be pre-processed and contain for example the RotD50 intensity measures.

To allow for such use cases, the code needs to be modified as followed:

Importantly, the dataframe created from the stationlist.json file should contain the correct column names :

The provided utility function to read the station data in utils.py assumes a .json file (similar to the one provided for the 2023 Turkey/Syria earthquakes). And it assumes that both horizontal directions are provided (ending with '1' or '2' or 'E' and 'N'). Yet, this largely on the file and format of the station data available to the user. The user just needs to make sure that the resulting dataframe contains the columns mentioned above.

Note: The currently used GMMs in the example notebooks are defined for the geometric mean. If one uses RotD50, then the user need to make sure that one uses a GMM which is defined for RotD50.

bodlukas commented 2 hours ago

I already started to modify the Stations.get_recordings method in branch feature/rotd50_inputs.