{% extends '../base.html' %} {% block extra-head %} {{ block.super }} {% endblock %} {% block page-content %}

eGSIM API

{% if last_modified %}

Last modified: June 2019

{% endif %}

eGSIM is a web service implemented on top of OpenQuake for the analysis of strong Motions and interpretation of Ground Shaking Intensity Models (GSIM)

In a nutshell, a web service is a program running on a remote computer that processes users requests, configurable with request parameters, and returns the analysis results in form of response through the internet network. The advantages of using a web service instead of software libraries are manifold:

  • Free the user from local software maintenance (e.g. installation, update)
  • Perform the same analysis with less code required and no knowledge of the underlying software libraries, functions and signatures
  • Allow access to the data from anywhere through the internet

(By the way eGSIM is also a software library - re-using legacy code of a OpenQuake-based Python package, SMTK that can be installed locally)

This portal represents an example of accessing the web service through a so-called browser Graphical User Interface (GUI): HTML forms and controls (e.g., buttons) provide an easy way to configure and submit requests, that are then processed and visualized in form of plots and tables on the browser.

Nevertheless, user can access the service also through client software code, e.g. Python notebook running on the user computer. This usage is more indicated when human interaction through the web page controls is unfeasible or inefficient, e.g. when the service is accessed routinely or automatically (e.g., from a data center operation), or used in custom code not only for visualization purposes (e.g., as input for further processing).

In the following, we will describe basic concept of eGSIM for usage in custom code, digging into more details of the underlying server-side web API

Introduction

{% include "./intro.html" %}

{{ egsim_data.TRELLIS.title }}

{% include "./trellis.html" with data=egsim_data.TRELLIS %}

{{ egsim_data.RESIDUALS.title }}

{% include "./residuals.html" with data=egsim_data.RESIDUALS %}

{{ egsim_data.TESTING.title }}

{% include "./testing.html" with data=egsim_data.TESTING %}
{% endblock %} {% block after-body %} {{ block.super }} {% endblock %}