27 changed files with 195 additions and 82 deletions
@ -1,32 +0,0 @@
|
||||
#!/bin/bash |
||||
set -e |
||||
VERSION=v`python3 -c "import grond; print(grond.__version__);"` |
||||
|
||||
if [ ! -f maintenance/deploy-docs.sh ] ; then |
||||
echo "must be run from grond's toplevel directory" |
||||
exit 1 |
||||
fi |
||||
|
||||
cd docs |
||||
rm -rf build/$VERSION |
||||
make clean; make html $1 |
||||
cp -r build/html build/$VERSION |
||||
|
||||
read -r -p "Are your sure to update live docs at http://pyrocko.org/grond/docs/$VERSION/ [y/N]?" resp |
||||
case $resp in |
||||
[yY][eE][sS]|[yY] ) |
||||
rsync -av build/$VERSION/ pyrocko@hive:/var/www/pyrocko.org/grond/docs/$VERSION/; |
||||
;; |
||||
* ) ;; |
||||
esac |
||||
|
||||
read -r -p "Do you want to link 'current' to the just uploaded version $VERSION [y/N]?" resp |
||||
case $resp in |
||||
[yY][eE][sS]|[yY] ) |
||||
echo "Linking grond/docs/$VERSION to grond/docs/current"; |
||||
ssh pyrocko@hive "rm -f /var/www/pyrocko.org/grond/docs/current; ln -s /var/www/pyrocko.org/grond/docs/$VERSION /var/www/pyrocko.org/grond/docs/current"; |
||||
;; |
||||
* ) ;; |
||||
esac |
||||
|
||||
cd .. |
@ -0,0 +1,18 @@
|
||||
#!/bin/bash |
||||
docker build nest -t grond-nest |
||||
docker build docs -t grond-docs |
||||
|
||||
|
||||
if [ ! -d "fat-nest/grond-test-data" ] ; then |
||||
if [ ! -d "../test/data" ] ; then |
||||
echo "Make sure complete test data is in "../test/data", by running the tests." |
||||
exit 1 |
||||
fi |
||||
|
||||
rsync -av "../test/data/" "fat-nest/grond-test-data/" |
||||
rsync -av "../test/data/" "fat-aux/grond-test-data/" |
||||
|
||||
fi |
||||
|
||||
docker build fat-nest -t grond-fat-nest |
||||
docker build fat-aux -t grond-fat-aux |
@ -0,0 +1,9 @@
|
||||
FROM grond-nest |
||||
|
||||
# docs requirements |
||||
RUN apt-get install -y python3-sphinx \ |
||||
texlive-fonts-recommended texlive-latex-extra \ |
||||
texlive-latex-recommended texlive-generic-extra \ |
||||
python3-sphinxcontrib.programoutput |
||||
|
||||
RUN pip3 install git+https://git.pyrocko.org/pyrocko/sphinx-sleekcat-theme.git |
@ -0,0 +1,7 @@
|
||||
FROM pyrocko-aux |
||||
|
||||
# additional runtime requirements for gmt |
||||
RUN apt-get install -y \ |
||||
gmt gmt-gshhg poppler-utils imagemagick |
||||
|
||||
COPY grond-test-data /grond-test-data |
@ -0,0 +1,4 @@
|
||||
FROM grond-nest |
||||
|
||||
|
||||
COPY grond-test-data /grond-test-data |
@ -0,0 +1,6 @@
|
||||
FROM pyrocko |
||||
|
||||
WORKDIR /src |
||||
RUN pip3 install utm |
||||
RUN git clone https://github.com/pyrocko/kite.git && cd kite \ |
||||
&& python3 setup.py install |
@ -0,0 +1,77 @@
|
||||
`Grond <https://pyrocko.org/grond/>`_ is an open source software tool for |
||||
robust characterization of earthquake sources. Moment tensors and finite fault |
||||
rupture models can be estimated from a combination of seismic waveforms, |
||||
waveform attributes and geodetic observations like InSAR and GNSS. It helps you |
||||
to investigate diverse magmatic, tectonic, and other geophysical processes at |
||||
all scales. |
||||
|
||||
It delivers meaningful model uncertainties through a `Bayesian bootstrap-based |
||||
probabilistic joint inversion scheme |
||||
<https://pyrocko.org/grond/docs/current/method/>`_. The optimisation explores |
||||
the full model space and maps model parameter trade-offs with a flexible design |
||||
of objective functions. |
||||
|
||||
Rapid forward modelling is enabled by using pre-computed `Green’s function |
||||
databases <https://greens-mill.pyrocko.org/>`_, handled through the `Pyrocko |
||||
<https://pyrocko.org/docs>`_ software library. They serve synthetic near-field |
||||
surface displacements and synthetic seismic waveforms for arbitrary earthquake |
||||
source models and geometries. |
||||
|
||||
Installation with pip |
||||
--------------------- |
||||
|
||||
*See also:* `Grond Manual: Installation |
||||
<https://pyrocko.org/grond/docs/current/install>`_ |
||||
|
||||
Grond and all its dependencies can be installed by running |
||||
|
||||
.. code-block:: bash |
||||
|
||||
pip install grond |
||||
|
||||
**but**, we recommend to make a conscious decision about how its main |
||||
dependency `Pyrocko <https://pyrocko.org/docs>`_ and especially Pyrocko's own |
||||
dependencies are installed. The `Pyrocko Installation Manual |
||||
<https://pyrocko.org/docs/current/install/>`_ describes different installation |
||||
schemes. |
||||
|
||||
As a general advice, we recommend to exclusively use either, (1) the system's |
||||
native package manager, (2) Anaconda, or (3) pip only. In (1) and (2), only |
||||
resort to use pip for those few packages which are not available as native |
||||
packages. It is easy to prove that using multiple package managers on one |
||||
system leads to non-deterministic behaviour! |
||||
|
||||
To prevent pip from automatically resolving dependencies run |
||||
|
||||
.. code-block:: bash |
||||
|
||||
pip install --no-deps grond |
||||
|
||||
This assumes that `Pyrocko <https://pyrocko.org/docs>`_ and `Kite |
||||
<https://pyrocko.org/kite/>`_ have been installed beforehand. |
||||
|
||||
Documentation |
||||
-------------- |
||||
|
||||
Documentation and examples can be found in the `Grond Manual |
||||
<https://pyrocko.org/grond/>`_. |
||||
|
||||
Community |
||||
--------- |
||||
|
||||
Meet people from all over the world doing awesome research with Grond in our |
||||
community chat: use the *Grond* channel in the friendly `Pyrocko Hive |
||||
<https://hive.pyrocko.org>`_. This is the best place to talk about new features, |
||||
special techniques or to get help on setting up your first inversion with |
||||
Grond. |
||||
|
||||
Development |
||||
----------- |
||||
|
||||
Grond is open source. |
||||
|
||||
Join us at our `Git repository <https://git.pyrocko.org/pyrocko/grond/>`_ and |
||||
read the `Contribution guide |
||||
<https://git.pyrocko.org/pyrocko/grond/src/branch/master/CONTRIBUTING.md>`_. |
||||
|
||||
-- The Grond Developers |
@ -1,8 +1,8 @@
|
||||
import matplotlib |
||||
matplotlib.use('Agg') |
||||
from pyrocko import util |
||||
from pyrocko import util # noqa |
||||
util.force_dummy_progressbar = True |
||||
util.setup_logging('grondtest', 'info') |
||||
|
||||
import warnings |
||||
import warnings # noqa |
||||
warnings.simplefilter(action='ignore', category=FutureWarning) |
||||
|
Loading…
Reference in new issue