From what I understood, in file oq-hazardlib/openquake/hazardlib/gsim/base.py,
def get_mean_and_stddevs(self, sites, rup, dists, imt, stddev_types):
is the method we have to implement if we wish to translate a GMPE into python code.
However, we only have access to limited attributes (only those defined in classes SitesContext, RuptureContext, and DistancesContext). We need the azimuth in our calculation, which is not made available.
(We thought of using the coordinates for source and site to calculate azimuth directly in our method, but there doesn't seem to be a way to call the coordinates attributes directly either)
Any advice? Thanks!