├── src ├── rrsm │ ├── rrsm │ │ ├── __init__.py │ │ ├── wsgi.py │ │ ├── urls.py │ │ └── settings.py │ ├── rrsmi │ │ ├── fdsn │ │ │ ├── __init__.py │ │ │ ├── fdsn_event.py │ │ │ ├── base_classes.py │ │ │ └── fdsn_manager.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ └── test_fdsn_manager.py │ │ ├── migrations │ │ │ ├── __init__.py │ │ │ └── 0001_initial.py │ │ ├── templatetags │ │ │ ├── __init__.py │ │ │ ├── gravatar.py │ │ │ └── form_tags.py │ │ ├── admin.py │ │ ├── __init__.py │ │ ├── apps.py │ │ ├── logger.py │ │ ├── base_classes.py │ │ ├── models.py │ │ └── forms.py │ ├── static_rrsm │ │ ├── css │ │ │ ├── app │ │ │ │ └── app.css │ │ │ ├── accounts │ │ │ │ └── accounts.css │ │ │ ├── baguettebox │ │ │ │ └── baguetteBox.min.css │ │ │ ├── bootstrap │ │ │ │ ├── bootstrap-reboot.min.css │ │ │ │ └── bootstrap-reboot.css │ │ │ ├── datatable │ │ │ │ └── dataTables.bootstrap4.min.css │ │ │ ├── openlayers │ │ │ │ └── ol.css │ │ │ └── simplemde │ │ │ │ └── simplemde.min.css │ │ ├── img │ │ │ ├── logo │ │ │ │ ├── eth.png │ │ │ │ ├── knmi.png │ │ │ │ ├── sed.png │ │ │ │ └── orfeus.png │ │ │ ├── patterns │ │ │ │ ├── tweed.png │ │ │ │ ├── geometry1x.png │ │ │ │ ├── geometry2x.png │ │ │ │ └── pentagon.png │ │ │ └── markers │ │ │ │ ├── marker-blue.png │ │ │ │ ├── marker-pink.png │ │ │ │ ├── marker-red.png │ │ │ │ ├── marker-green.png │ │ │ │ ├── marker-orange.png │ │ │ │ ├── marker-yellow.png │ │ │ │ ├── triangle-blue.png │ │ │ │ ├── triangle-grey.png │ │ │ │ ├── triangle-pink.png │ │ │ │ ├── triangle-red.png │ │ │ │ ├── square-lightblue.png │ │ │ │ ├── triangle-black.png │ │ │ │ ├── triangle-darkred.png │ │ │ │ ├── triangle-green.png │ │ │ │ ├── triangle-orange.png │ │ │ │ ├── triangle-purple.png │ │ │ │ ├── triangle-white.png │ │ │ │ ├── triangle-yellow.png │ │ │ │ ├── triangle-lightblue.png │ │ │ │ └── triangle-lightgreen.png │ │ └── js │ │ │ ├── datatable │ │ │ └── dataTables.bootstrap4.min.js │ │ │ ├── openlayers │ │ │ └── olRrsm.js │ │ │ ├── highcharts │ │ │ ├── offline-exporting.js │ │ │ ├── export-data.js │ │ │ └── exporting.js │ │ │ └── baguettebox │ │ │ └── baguetteBox.min.js │ ├── logs │ │ └── .gitignore │ ├── requirements.txt │ ├── dockerfile │ ├── templates │ │ ├── 404.html │ │ ├── 500.html │ │ ├── links.html │ │ ├── search.html │ │ ├── includes │ │ │ ├── form.html │ │ │ └── pagination.html │ │ ├── stations.html │ │ ├── search_custom.html │ │ ├── base.html │ │ ├── events.html │ │ ├── station_streams.html │ │ └── event_details.html │ ├── manage.py │ └── .env.sample ├── nginx │ ├── Dockerfile │ └── sites-enabled │ │ └── django └── docker-compose.yml ├── .vscode ├── settings.json └── launch.json ├── docs ├── docker-compose.yml └── EXAMPLE_ENVS.MD ├── LICENSE ├── .gitignore └── README.MD /src/rrsm/rrsm/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/rrsm/rrsmi/fdsn/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/rrsm/rrsmi/fdsn/fdsn_event.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/rrsm/rrsmi/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/rrsm/rrsmi/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/rrsm/rrsmi/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/rrsm/rrsmi/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin -------------------------------------------------------------------------------- /src/rrsm/rrsmi/__init__.py: -------------------------------------------------------------------------------- 1 | default_app_config = 'rrsmi.apps.RrsmiConfig' -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/css/app/app.css: -------------------------------------------------------------------------------- 1 | .navbar-brand { 2 | font-family: 'Bangers'; 3 | } -------------------------------------------------------------------------------- /src/rrsm/logs/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | # Except this file 4 | !.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "python.pythonPath": "env/bin/python3", 3 | "python.linting.pylintEnabled": true 4 | } -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/logo/eth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/logo/eth.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/logo/knmi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/logo/knmi.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/logo/sed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/logo/sed.png -------------------------------------------------------------------------------- /src/rrsm/rrsmi/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class RrsmiConfig(AppConfig): 5 | name = 'rrsmi' 6 | -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/logo/orfeus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/logo/orfeus.png -------------------------------------------------------------------------------- /src/nginx/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tutum/nginx 2 | 3 | RUN rm /etc/nginx/sites-enabled/default 4 | ADD sites-enabled/ /etc/nginx/sites-enabled -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/patterns/tweed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/patterns/tweed.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/marker-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/marker-blue.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/marker-pink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/marker-pink.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/marker-red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/marker-red.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/patterns/geometry1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/patterns/geometry1x.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/patterns/geometry2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/patterns/geometry2x.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/patterns/pentagon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/patterns/pentagon.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/marker-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/marker-green.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/marker-orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/marker-orange.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/marker-yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/marker-yellow.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-blue.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-grey.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-pink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-pink.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-red.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/square-lightblue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/square-lightblue.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-black.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-darkred.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-darkred.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-green.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-orange.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-purple.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-white.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-yellow.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-lightblue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-lightblue.png -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/img/markers/triangle-lightgreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EIDA/rrsm/master/src/rrsm/static_rrsm/img/markers/triangle-lightgreen.png -------------------------------------------------------------------------------- /src/rrsm/requirements.txt: -------------------------------------------------------------------------------- 1 | django==3.2.13 2 | python-decouple==3.4 3 | django-cleanup==5.2.0 4 | django-widget-tweaks==1.4.8 5 | numpy==1.20.3 6 | obspy==1.2.2 7 | gunicorn==20.1.0 -------------------------------------------------------------------------------- /src/rrsm/dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.8 2 | 3 | # Initialize 4 | RUN mkdir -p /data/rrsm 5 | WORKDIR /data/rrsm 6 | COPY requirements.txt /data/rrsm/ 7 | 8 | # Install deps 9 | RUN pip3 install --upgrade pip 10 | RUN pip3 install -r requirements.txt 11 | 12 | # Prepare 13 | COPY . /data/rrsm/ 14 | -------------------------------------------------------------------------------- /src/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | rrsmweb: 4 | restart: always 5 | build: ./rrsm/ 6 | ports: 7 | - "8000:8000" 8 | networks: 9 | - rrsm_net 10 | command: gunicorn rrsm.wsgi:application --timeout 300 -w 2 -b :8000 11 | 12 | networks: 13 | rrsm_net: -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/css/accounts/accounts.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-image: url(../img/patterns/geometry2x.png); 3 | } 4 | 5 | .logo { 6 | font-family: 'Bangers'; 7 | } 8 | 9 | .logo a { 10 | color: black; 11 | } 12 | 13 | .logo a:hover, 14 | .logo a:active { 15 | text-decoration: none; 16 | } -------------------------------------------------------------------------------- /src/rrsm/templates/404.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block title %}My account{% endblock %} 4 | 5 | {% block breadcrumb %} 6 |
Link: {{ link.url }}
14 |Description: {{ link.description }}
15 |No links defined!
19 | {% endif %} 20 | 21 | {% endblock %} -------------------------------------------------------------------------------- /src/rrsm/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | 5 | if __name__ == "__main__": 6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rrsm.settings") 7 | try: 8 | from django.core.management import execute_from_command_line 9 | except ImportError as exc: 10 | raise ImportError( 11 | "Couldn't import Django. Are you sure it's installed and " 12 | "available on your PYTHONPATH environment variable? Did you " 13 | "forget to activate a virtual environment?" 14 | ) from exc 15 | execute_from_command_line(sys.argv) 16 | -------------------------------------------------------------------------------- /docs/docker-compose.yml: -------------------------------------------------------------------------------- 1 | # This is the original version of the docker-compose file with nginx 2 | version: '2' 3 | services: 4 | rrsmweb: 5 | restart: always 6 | build: ./rrsm/ 7 | expose: 8 | - "8000" 9 | volumes: 10 | - /data/rrsm/rrsm/static 11 | networks: 12 | - rrsm_net 13 | command: gunicorn rrsm.wsgi:application --timeout 300 -w 2 -b :8000 14 | 15 | rrsmnginx: 16 | restart: always 17 | build: ./nginx/ 18 | depends_on: 19 | - rrsmweb 20 | ports: 21 | - "8000:8000" 22 | volumes_from: 23 | - rrsmweb 24 | links: 25 | - rrsmweb:rrsmweb 26 | networks: 27 | - rrsm_net 28 | 29 | networks: 30 | rrsm_net: -------------------------------------------------------------------------------- /src/rrsm/rrsmi/logger.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | import logging 3 | 4 | 5 | class RrsmLoggerMixin(): 6 | def __init__(self): 7 | self.class_name = self.__class__.__name__ 8 | self.logger = logging.getLogger(self.class_name) 9 | 10 | def log_information(self, info='No description'): 11 | self.logger.info( 12 | '{0}: {1}'.format(self.class_name, info)) 13 | 14 | def log_warning(self, info='No description'): 15 | self.logger.warning( 16 | '{0}: {1}'.format(self.class_name, info)) 17 | 18 | def log_exception(self, info='No description'): 19 | self.logger.exception( 20 | '{0}: {1}'.format(self.class_name, info)) 21 | -------------------------------------------------------------------------------- /src/rrsm/templates/search.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load static %} 3 | 4 | {% block breadcrumb %} 5 |{{ error }}
7 | {% endfor %} 8 || 36 | Event origin time 37 | (click for details) 38 | | 39 |Magnitude | 40 |Network and station | 41 |42 | Flinn-Engdahl Region 43 | | 44 |45 | Epicentral distance 46 | | 47 |48 | Max PGA [cm/s2] 49 | | 50 |51 | Max PGA channel 52 | | 53 |54 | Max PGV [cm/s] 55 | | 56 |57 | Max PGV channel 58 | | 59 |
|---|---|---|---|---|---|---|---|---|
| {{ s.parse_origin_time }} 69 | | 70 |{{ s.get_magnitude }} | 71 |{{ s.network_code }}.{{ s.station_code }} | 72 |{{ s.get_flinn_engdahl }} 73 | Lat: {{ s.get_event_latitude }}, Lon: {{ s.get_event_longitude }} 74 | | 75 |{{ s.epicentral_distance }} | 76 |{{ s.get_max_pga.0 }} | 77 |{{ s.get_max_pga.1 }} | 78 |{{ s.get_max_pgv.0 }} | 79 |{{ s.get_max_pgv.1 }} | 80 |
99 |
104 | 105 | {% endif %} 106 | 107 | {% block javascript %} 108 | 109 | 110 | {% endblock javascript %} 111 | {% endblock %} -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/css/bootstrap/bootstrap-reboot.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com) 3 | * Copyright 2011-2017 The Bootstrap Authors 4 | * Copyright 2011-2017 Twitter, Inc. 5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 6 | * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) 7 | */*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#868e96;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important} 8 | /*# sourceMappingURL=bootstrap-reboot.min.css.map */ -------------------------------------------------------------------------------- /src/rrsm/templates/search_custom.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load static %} 3 | 4 | {% block breadcrumb %} 5 || 59 | Event origin time 60 | (click for details) 61 | | 62 |63 | Flinn-Engdahl Region 64 | (click to focus) 65 | | 66 |Magnitude | 67 |Depth | 68 |
|---|---|---|---|
| {{ s.parse_origin_time }} | 77 |78 | {{ s.get_flinn_engdahl }} 79 | Lat: {{ s.get_event_latitude }}, Lon: {{ s.get_event_longitude }} 80 | | 81 |{{ s.get_magnitude }} | 82 |{{ s.event_depth }} | 83 |
99 |
104 | 105 | {% endif %} 106 | 107 | {% block javascript %} 108 | 109 | 110 | {% endblock javascript %} 111 | {% endblock %} -------------------------------------------------------------------------------- /src/rrsm/static_rrsm/js/highcharts/offline-exporting.js: -------------------------------------------------------------------------------- 1 | /* 2 | Highcharts JS v6.2.0 (2018-10-17) 3 | Client side exporting module 4 | 5 | (c) 2015 Torstein Honsi / Oystein Moseng 6 | 7 | License: www.highcharts.com/license 8 | */ 9 | (function(h){"object"===typeof module&&module.exports?module.exports=h:"function"===typeof define&&define.amd?define(function(){return h}):h(Highcharts)})(function(h){(function(c){function h(b,f){var d=r.getElementsByTagName("head")[0],a=r.createElement("script");a.type="text/javascript";a.src=b;a.onload=f;a.onerror=function(){c.error("Error loading script "+b)};d.appendChild(a)}var D=c.addEvent,E=c.merge,e=c.win,n=e.navigator,r=e.document,x=c.each,y=e.URL||e.webkitURL||e,B=/Edge\/|Trident\/|MSIE /.test(n.userAgent), 10 | F=/Edge\/\d+/.test(n.userAgent),G=B?150:0;c.CanVGRenderer={};c.dataURLtoBlob=function(b){if(e.atob&&e.ArrayBuffer&&e.Uint8Array&&e.Blob&&y.createObjectURL){b=b.match(/data:([^;]*)(;base64)?,([0-9A-Za-z+/]+)/);for(var c=e.atob(b[3]),d=new e.ArrayBuffer(c.length),d=new e.Uint8Array(d),a=0;a