Commit 6c5e7174 authored by Alex Breuer's avatar Alex Breuer

Added converted HSP2a solutions for SISMOWINE.

parent 1d286366
......@@ -11,3 +11,6 @@ Used Commands
.. code-block:: bash
gmsh -format msh2 -3 tet4_300.geo 2>&1 | tee tet4_300.msh.log
gmsh -3 tet4_300.msh -o /tmp/tet4_300.vtk
mesh_probe /tmp/tet4_300.vtk > tet4_300.csv
mesh_probe /tmp/tet4_300.vtk --sphere 2622 5196 1183 8908 > tet4_300_sphere.csv
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
......@@ -41,3 +41,12 @@ Visualization
wget http://www.sismowine.org/WP1_HSP2a/ref.zip
unzip ref.zip
python vis.py
Reformat
--------
Reformats the receivers for http://sismowine.org/:
.. code-block:: bash
cd sismowine
bash extract.sh 2>&1 | tee extract.sh.log
.. image:: http://i.creativecommons.org/p/zero/1.0/88x31.png
:alt: CC0
:target: http://creativecommons.org/publicdomain/zero/1.0/
To the extent possible under law, `Alexander Nikolas Breuer <https://dial3343.org/>`_ has waived all copyright and related or neighboring rights to the following work:
* `o4_v2.tar.xz`
* `o4_v3.tar.xz`
* `o4_v4.tar.xz`
* `o4_v5.tar.xz`
* `o5_v2.tar.xz`
* `o5_v3.tar.xz`
* `o5_v4.tar.xz`
* `o5_v5.tar.xz`
This work is published from: Germany.
#!/bin/bash
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (anbreuer AT ucsd.edu)
#
# @section LICENSE
# Copyright (c) 2019, Alexander Breuer
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# @section DESCRIPTION
# Extracts the receiver data in SISMOWINE's format.
##
echo "$(date) extracting data for SISMOWINE"
for config in o4_v2 o4_v3 o4_v4 o4_v5 o5_v2 o5_v3 o5_v4 o5_v5
do
mkdir ${config}
cd ${config}
ln -s ../../${config}/hsp2a_uns_300/0/*.csv .
# extract columns and sample seismograms
recvs_csv_to_plain.r . 4
echo "250 0.02 12" > hsp2a_${config}_u.sismowine
echo "250 0.02 12" > hsp2a_${config}_v.sismowine
echo "250 0.02 12" > hsp2a_${config}_w.sismowine
for recv in 1 2 3 4 5 6 7 8 9 10 11 12
do
tail -n +2 hsp2a_${recv}_Q6_C0.dat >> hsp2a_${config}_u.sismowine
tail -n +2 hsp2a_${recv}_Q7_C0.dat >> hsp2a_${config}_v.sismowine
tail -n +2 hsp2a_${recv}_Q8_C0.dat >> hsp2a_${config}_w.sismowine
done
cd ..
done
echo "$(date) done"
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment