Added configuration for large La Habra simulation domain.

parent 28cceb9d
......@@ -2,3 +2,6 @@ la_habra_flat.xml filter=lfs diff=lfs merge=lfs -text
la_habra_topo.xml filter=lfs diff=lfs merge=lfs -text
receivers_flat.xml filter=lfs diff=lfs merge=lfs -text
receivers_topo.xml filter=lfs diff=lfs merge=lfs -text
receivers_large_flat.xml filter=lfs diff=lfs merge=lfs -text
la_habra_flat_large.xml filter=lfs diff=lfs merge=lfs -text
la_habra_v20_07_1.stl filter=lfs diff=lfs merge=lfs -text
Runtime Configuration for the La Habra Simulations
==================================================
* Stations obtained from: http://hypocenter.usc.edu/research/High-F/merged_lahabra_sites.txt
* Stations for the small domain have been obtained from: http://hypocenter.usc.edu/research/High-F/merged_lahabra_sites.txt
* Stations for the large domain have been obtained from: http://hypocenter.usc.edu/research/High-F/la_habra_v20_07_1.stl
Generation of station coordinates:
.. code-block:: bash
./receivers.sh 2>&1 | tee ./receivers.sh.log
\ No newline at end of file
./receivers.sh 2>&1 | tee ./receivers.sh.log
./receivers_large_flat.sh 2>&1 | tee ./receivers_large_flat.sh.log
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
#!/bin/bash
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (anbreuer AT mytum.de)
#
# @section LICENSE
# Copyright (c) 2020, 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
# Converts the stations in lat-lon to their map-projected counterpart (large domain).
##
date
# create empy files
echo -n > receivers_large_flat.xml
while read line
do
# ignore comments
if [[ "$line" =~ ^#.*$ ]]
then
continue
fi
projected=$(echo $line | awk '{print $1,$2,$3}' | cs2cs +proj=latlong +datum=WGS84 +to +proj=tmerc +units=m +axis=end +no_defs +ellps=GRS80 +k=0.9996 +lon_0=-117.916 +lat_0=33.933 | awk '{print $1,$2,$4}')
echo "projected coordinates: ${projected}"
# write receiver without topography
echo "<receiver>" >> receivers_large_flat.xml
echo " <name>$(echo $projected | awk '{print $3}')</name>" >> receivers_large_flat.xml
echo " <coords>" >> receivers_large_flat.xml
echo " <x>$(echo $projected | awk '{print $1}')</x>" >> receivers_large_flat.xml
echo " <y>$(echo $projected | awk '{print $2}')</y>" >> receivers_large_flat.xml
echo " <z>0.0</z>" >> receivers_large_flat.xml
echo " </coords>" >> receivers_large_flat.xml
echo "</receiver>" >> receivers_large_flat.xml
done < la_habra_v20_07_1.stl
date
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.
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