Skip to content

agilescientific/modelr

Repository files navigation

Welcome to modelr server

Apache 2 license PyPI downloads PyPI version GitHub issues

This is the documentation for the back-end modelr server software. Modelr server was a Google-Charts-like API for geophysics; there is no longer a live instance. Submit tasks via a URL, or go to https://localhost:8081/plot.jpeg for a set of forms.

Run:

  • python setup.py install
  • modelr-server -p 8081 --local True

Example:

https://localhost:8081/plot.jpeg?script=wedge_spatial.py&theta=0&f=25&colourmap=Greys&base1=variable-density&overlay1=none&base2=earth-model&overlay2=wiggle&opacity=0.5&Rock0=3000.0%2C1600.0%2C2500.0%2C%0A%09%20%2050.0%2C%2050.0%2C%2050.0&Rock1=2770.0%2C1780.0%2C2185.0%2C%0A%09%20%2050.0%2C%2050.0%2C%2050.0&Rock2=3000.0%2C1600.0%2C2500.0%2C%0A%09%20%2050.0%2C%2050.0%2C%2050.0&tslice=0.15&scale=1.0%2C99&type=scenario

Prerequisites

You will need to generate a cert file on the server:

openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem

You will need scientific python (numpy, scipy, matplotlib). Other python packages that will be automatically installed during setup:

  • bruges
  • pypng
  • requests
  • jinja2
  • svgwrite
  • cairo

Links

Authors