"<!DOCTYPE html>\n<html>\n<head>\n  <link rel=\"stylesheet\" type=\"text/css\" href=\"/resifsi/static/resifsi.css\">\n\t<title>Documentation</title>\n\t<meta charset=\"utf-8\">\n</head>\n\n<body>\n \t<div class=\"main\">\n\n \t <img src=\"/resifsi/static/image/logoresif.png\">\n\n    <h1> Assembleddata webservice</h1>\n  \t<div> \n  \t<p class=\"intro\">&nbsp;&nbsp;The assembleddata webservice provides access to the  pre-assembled RAP and RESIF events archives. It allows to retrieve waveforms in SAC and ASCII formats.</p>\n\t   \n    \t<h3>Output format</h3>\n    \t<p class=\"intro\">\n    \t    &nbsp;&nbsp;Three formats are supported: \n    \t    <ol>\n    \t      <li><b><tt>archive</tt></b> format: The events satisfying the request are returned in zip format. The zip file contains  SAC and ASCII waveforms.</li>\n    \t      <li><b><tt>text</tt></b> format: return the events inventory  as follows :\n    \t       <tt>collector| event_name | latitude | longitude | depth | magnitude | magtype |description| agency | pga  </tt></li>\n    \t      <li><b><tt>json </tt></b>format: return inventory  as above, but in json format  </li>\n    \t    </ol>\n    \t</p>\n    \t\n    <h3> Overview of request parameters </h3>\n      <p class=\"intro\">\n           The request parameters for the service are summarized in tables below. Events can be retrieved either by specifying the name of the event or by applying a filter:</p>\n\n\t      <p class=\"intro\">To obtain a particular event, you must specify its name</br> </p>\n\t\t\t   <table class=\"table2\" >\n\t\t\t    \t<thead>\n\t\t\t    \t\t<tr>\n\t\t\t              <th>Parameter</th>\n\t\t\t              <th>Description</th>\n\t\t\t              <th>Default</th>\n\t\t\t              <th>Required</th>\n\t\t\t              <th>Format</th>\n            \t\t\t</tr>\n\t\t\t    \t</thead>\n\t\t\t    \t<tbody>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>name</td>\n\t\t\t    \t\t\t<td>Event name</td>\n\t\t\t    \t\t\t<td>  </td>\n\t\t\t    \t\t\t<td>YES</td>\n\t\t\t    \t\t\t<td> </td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>format</td>\n\t\t\t    \t\t\t<td>Response output format</td>\n\t\t\t    \t\t\t<td>text</td>\n\t\t\t    \t\t\t<td>NON</td>\n\t\t\t    \t\t\t<td>text/json/archive</td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t</tbody>\n\t\t\t    </table>\n            </br>\n\t\t\t </br>\n\n\t\t\t\t<p class=\"intro\">Several archives can be retrieved depending on the filters applied for a maximum one month. </p>\n\n\t\t\t    <table class=\"table2\">\n\t\t\t    \t<thead>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t<tr>\n\t\t\t              <th>Parameter</th>\n\t\t\t              <th>Description</th>\n\t\t\t              <th>Default</th>\n\t\t\t              <th>Required</th>\n\t\t\t              <th>Format</th>\n            \t\t\t</tr>\n\t\t\t    \t\t</tr>\n\t\t\t    \t</thead>\n\t\t\t    \t<tbody>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>collector</td>\n\t\t\t    \t\t\t<td>Event collector</td>\n\t\t\t    \t\t\t<td>RAP and RESIF</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>RAP/RESIF</td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>after</td>\n\t\t\t    \t\t\t<td>The minimum date</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>YES</td>\n\t\t\t    \t\t\t<td> ''YYYY-MM-DDTHH:MM:SS.ssssss'', \n\t\t\t    \t\t\t\t''YYYY-\u00adMM-DDTHH:MM:SS'',\n\t\t\t    \t\t\t   ''YYYY\u00ad\u2010MM-\u00adDD ''</td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>before</td>\n\t\t\t    \t\t\t<td>The maximum date </td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>YES</td>\n\t\t\t    \t\t\t<td> ''YYYY-MM-DDTHH:MM:SS.ssssss'', \n\t\t\t    \t\t\t\t ''YYYY-\u00adMM-DDTHH:MM:SS'',\n\t\t\t    \t\t\t     ''YYYY\u00ad\u2010MM-\u00adDD ''</td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t    <tr>\n\t\t\t    \t\t\t<td>minlatitude</td>\n\t\t\t    \t\t\t<td>Events with latitude larger or equal to the specified limit</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>[-90,90]</td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t    <tr>\n\t\t\t    \t\t\t<td>maxlatitude</td>\n\t\t\t    \t\t\t<td>Events with latitude smaller or equal to the  specified limit</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>[-90,90]</td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>minlongitude</td>\n\t\t\t    \t\t\t<td>Events with longitude larger or equal to the specified limit</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>[-180,180]</td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>maxlongitude</td>\n\t\t\t    \t\t\t<td>events with longitude smaller or equal to the specified limit</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>[-180,180]</td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>minmagnitude</td>\n\t\t\t    \t\t\t<td>Events with magnitude larger or equal to the specified limit</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td> </td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>maxmagnitude</td>\n\t\t\t    \t\t\t<td>events with magnitude smaller or equal to the specified limit</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td> </td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t    <tr>\n\t\t\t    \t\t\t<td>mindepth</td>\n\t\t\t    \t\t\t<td>Events with depth larger or equal to the specified limit</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>   </td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>maxdepth</td>\n\t\t\t    \t\t\t<td>events with depth smaller or equal to the specified limit</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>  </td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>agency</td>\n\t\t\t    \t\t\t<td>The organization that located the event</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>NO </td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t\t<tr>\n\t\t\t    \t\t\t<td>format</td>\n\t\t\t    \t\t\t<td>output format</td>\n\t\t\t    \t\t\t<td>text</td>\n\t\t\t    \t\t\t<td>NO</td>\n\t\t\t    \t\t\t<td>text/json/archive</td>\n\t\t\t    \t\t</tr>\n\t\t\t    \t</tbody>\n\t\t\t    </table>\n\t\t\t</br>\n    \n    <h3> HTTP status codes</h3>\n\n    <p class=\"intro\">Table below givesa list of status codes returned by the webservice. These codes should be used by end-user to check if a request  was successful.</p>\n        <table class=\"table2\">\n            <thead>\n              <tr>\n                <th>Code</th>\n                <th>Description</th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr>\n                <td>200</td>\n                <td>Successfull request</td>\n              </tr>\n              <tr>\n                <td>201</td>\n                <td>Request was properly formatted and submitted but no data match the selection.</td>\n              </tr>\n              <tr>\n                <td>400</td>\n                <td>Bad request due to improper specification, unrecognized parameter, etc.</td>\n              </tr>\n              <tr>\n                <td>203</td>\n                <td>Request resulted in too much data being returned or the request itself is too large.</td>\n              </tr>\n              <tr>\n                <td>500</td>\n                <td>Internal Server Error</td>\n              </tr>\n            </tbody>\n          </table>    \n        </br>\n     \t<h3> Examples</h3>\n     \t\t<ul>\n     \t\t\t<li>Events inventory for one month, juanuary 2018, depth  -15</li>\n     \t\t\t<a href=\"http://ws.resif.fr/resifsi/assembleddata/1/query?before=2018-01-31&after=2018-01-01&mindepth=-15\">http://ws.resif.fr/resifsi/assembleddata/1/query?before=2018-01-31&after=2018-01-01&mindepth=-15</a>\n     \t\t\t\n     \t\t\t<li> Retrieve all the RAP events archive for March 2016</li>\n     \t\t\t\t<a href=\"http://ws.resif.fr/resifsi/assembleddata/1/query?before=2016-03-31&after=2016-03-01&collector=RAP&format=archive\">http://ws.resif.fr/resifsi/assembleddata/1/query?before=2016-03-31&after=2016-03-01&collector=RAP&format=archive</a>\n     \t\t\t<li>Retrieve a given archive:</li>\n     \t\t\t    <a href=\"http://ws.resif.fr/resifsi/assembleddata/1/query?name=2017.10.24T20:47:11&format=archive\">http://ws.resif.fr/resifsi/assembleddata/1/query?name=2017.10.24T20:47:11&format=archive</a>\n     \t\t\t<li> You can use <b>wget</b> or <b>curl</b> from commande line </li>\n     \t\t\t\t<ul>\n     \t\t\t\t<li><b>wget</b>  --output-document=Montest.zip 'http://ws.resif.fr/extend/assembleddata/1/query?name=2017.10.24T20:47:11&format=archive'</br></li>\n     \t\t\t\t<li><b>curl</b>'http://ws.resif.fr/resifsi/assembleddata/1/query?name=2017.10.24T20:47:11&format=archive' -o  Montest.zip</li>\n     \t\t\t</ul>\n     \t\t\t</li>\n     \t\t</ul>\n        </br>\n        </div>\n\n</body>\n</html>"
