Commit 6a3991d7 authored by Graeme Weatherill's avatar Graeme Weatherill
Browse files

Merge branch 'pevens_import_fdsnws' into 'import_fdsnws'

Cleanup and fixes to fdsnws importer

See merge request pevans/shakyground2!1
parents 5c5db22a cfc499e3
Pipeline #22389 passed with stage
in 8 minutes and 48 seconds
......@@ -15,6 +15,7 @@ setup(
"geopandas",
"pyyaml",
"Rtree",
"rasterio",
],
packages=find_packages(),
python_requires=">=3.7",
......
......@@ -17,10 +17,9 @@ Can run standalone:
"""
import datetime
import os
import sys
from typing import List, Optional, Union
from typing import List, Union
import urllib.request as ul
from xml.etree import ElementTree as ET
import yaml
......@@ -63,15 +62,16 @@ def fetch_fm(root: ET.Element, ns: dict, preferredfmID: str) -> list:
d: List[dict] = [dict(), dict()]
for k in range(2):
plane = np.find("ns:nodalPlane" + str(k + 1), ns)
if plane == None:
if plane is None:
continue
for child in plane:
found = child.find("ns:value", ns)
if found == None:
if found is None:
continue
v = found.text
tag = child.tag
tag = tag[tag.index("}") + 1 :]
tag_idx = tag.index("}") + 1
tag = tag[tag_idx:]
try:
d[k][tag] = float(str(v))
except ValueError:
......@@ -87,10 +87,10 @@ def fetch_magnitude(
continue
child = m.find("ns:mag", ns)
if child == None:
if child is None:
return None
value = child.find("ns:value", ns)
if value == None:
if value is None:
return None
v = value.text
try:
......@@ -115,7 +115,8 @@ def fetch_origin(root, ns: dict, preferredoriginID: str) -> dict:
d = dict()
for child in o:
tag = child.tag
tag = tag[tag.index("}") + 1 :]
tag_idx = tag.index("}") + 1
tag = tag[tag_idx:]
if tag in ("depth", "latitude", "longitude", "time"):
v = child.find("ns:value", ns).text
......@@ -152,14 +153,11 @@ def fetch_quakeml_ws(evid: str) -> str:
)
)
# print(url)
req = ul.Request(url)
u = ul.urlopen(req)
buf = u.read().decode("utf8")
print("Got", len(buf), "char(s).")
with open("tmp.xml", "w") as fid:
fid.write(str(buf))
return buf
......@@ -186,7 +184,6 @@ def fetch_quakeml(path: str) -> Union[dict, None]:
ns = QUAKEML_NS
event = root[0][0]
# .find("ns:event", ns)
if not event:
print("Couldn't get an event!")
return None
......@@ -196,33 +193,26 @@ def fetch_quakeml(path: str) -> Union[dict, None]:
try:
# e.g. "smi:org.gfz-potsdam.de/geofon/gfz2021ekhv"
evid = event.attrib["publicID"].split("/")[-1]
# print("INFO Event ID from response:", evid)
except AttributeError:
_perror("Oops, couldn't get event id from " + event.attrib["publicID"])
# descr = root[0][0].find("ns:description", ns)
# text = descr.find("ns:text", ns)
# print("INFO Found description:", text.text)
preferredoriginIDElem = root[0][0].find("ns:preferredOriginID", ns)
if preferredoriginIDElem == None:
if preferredoriginIDElem is None:
_perror("Oops, couldn't find the preferred origin ID")
return None
preferredoriginID = preferredoriginIDElem.text
# print("DEBUG Found", preferredoriginID)
preferredmagID = None
preferredMagnitudeIDElem = root[0][0].find("ns:preferredMagnitudeID", ns)
if preferredMagnitudeIDElem != None:
if preferredMagnitudeIDElem is not None:
try:
preferredmagID = preferredMagnitudeIDElem.text
except AttributeError:
pass
preferredfmID = None
try:
preferredfmIDElem = root[0][0].find("ns:preferredFocalMechanismID", ns)
if preferredfmIDElem != None:
if preferredfmIDElem is not None:
preferredfmID = preferredfmIDElem.text
except AttributeError:
pass
......@@ -231,7 +221,6 @@ def fetch_quakeml(path: str) -> Union[dict, None]:
print("Oops, no preferredOriginID was found")
return None
origin = fetch_origin(root, ns, preferredoriginID)
(d, t) = origin.pop("time").split("T", 2)
# There's little point in forcing these into datetimes,
# since writing to YAML requires they be converted back
......@@ -283,7 +272,7 @@ http://geofon.gfz-potsdam.de/eqinfo/list.php
sys.exit(1)
ev_info = fetch_quakeml(evid)
if ev_info == None:
if ev_info is None:
print("Got no dictionary from QuakeML")
outfile = evid + ".yaml"
with open(outfile, "w") as fid:
......
"""
Implements the core shakemap class
"""
import io
import h5py
import numpy as np
import warnings
from typing import Dict, Optional, Tuple, List
import rasterio
import geopandas as gpd
import matplotlib.pyplot as plt
from typing import Dict, Optional, Tuple, List, Union
from shapely.geometry import LineString, MultiLineString
from openquake.hazardlib import const, imt
from openquake.hazardlib.contexts import ContextMaker
from shakyground2 import valid
......@@ -286,3 +291,229 @@ class Shakemap(object):
"stddev", aggregated_stddevs.shape, shakemap_dtypes
)
aggregated_stddev_dset[:] = aggregated_stddevs
def _transform_to_raster(
self, imt: str, shakemap: np.ndarray, is_stddev: bool = False
) -> np.ndarray:
"""
Transforms a shakemap output into a 2D array for raster export based
on the bounding box properties in the site model
Args:
imt: Intensity measure type
shakemap: shakemap outputs from `get_shakemap(...)`
is_stddev: shakemap values are standard deviations (True) or expected ground motion
Returns:
shakemap as 2D numpy array
"""
if not self.site_model.bbox_properties:
raise ValueError(
"No bounding bbox properties found in SiteModel - "
"cannot export to raster format"
)
if is_stddev:
# If the input is a standard deviation then no transformation of the data
results = np.copy(shakemap[imt])
else:
# For absolute ground motion take the natural exponent
results = np.exp(shakemap[imt])
assert (
results.shape[0] == self.site_model.shape
), "Shakemap dimensions do not correspond to site model"
# Reshape and export to raster
shakemap_shape = [
self.site_model.bbox_properties["nrow"],
self.site_model.bbox_properties["ncol"],
]
return results.reshape(shakemap_shape)
def to_geotiff(
self,
shakemap: np.ndarray,
imt: str,
filename: Optional[str] = None,
is_stddev: bool = False,
) -> Union[io.BytesIO, None]:
"""
Exports the shakemap for a given intensity measure type to GeoTiff format
Args:
shakemap: shakemap outputs from `get_shakemap(...)`
imt: Intensity measure type
filename: Path to geotiff file for export. If None then returns the geotiff as a
bytes object
is_stddev: shakemap values are standard deviations (True) or expected ground motion
"""
results = self._transform_to_raster(imt, shakemap, is_stddev)
spcx = self.site_model.bbox_properties["spcx"]
spcy = self.site_model.bbox_properties["spcy"]
# Build the transformation object (holds the geospatial information about the raster)
transform = (
rasterio.transform.Affine.translation(
self.site_model.bbox_properties["bbox"][0] - (spcx / 2.0),
self.site_model.bbox_properties["bbox"][1] - (spcy / 2.0),
)
* rasterio.transform.Affine.scale(spcx, spcy)
)
# Export to file
if filename:
with rasterio.open(
filename,
"w",
"GTiff",
height=results.shape[0],
width=results.shape[1],
count=1,
dtype=results.dtype,
crs="+proj=latlong",
transform=transform,
compress="lzw",
) as dst:
dst.write(results, 1)
return
# Returns a bytes object
with rasterio.MemoryFile(ext=".tif") as memfile:
with memfile.open(
driver="GTiff",
height=results.shape[0],
width=results.shape[1],
count=1,
dtype=results.dtype,
crs="+proj=latlong",
transform=transform,
compress="lzw",
) as dst:
dst.write(results, 1)
buffer = memfile.getbuffer()
io_buffer = io.BytesIO(buffer)
as_bytes = io_buffer.read()
return as_bytes
def to_esri_ascii(
self,
shakemap: np.ndarray,
imt: str,
filename: str,
is_stddev: bool = False,
nodata: Optional[float] = None,
fmt: str = "%.4e",
):
"""
Exports the shakemap for a given intensity measure type to ESRI ascii format
Args:
shakemap: shakemap outputs from `get_shakemap(...)`
imt: Intensity measure type
filename: Path to ESRI Ascii file for export
is_stddev: shakemap values are standard deviations (True) or expected ground motion
"""
if not np.isclose(
self.site_model.bbox_properties["spcx"], self.site_model.bbox_properties["spcy"]
):
# ESRI Grid files cannot accommodate this
raise IOError(
"ESRI ascii files cannot accommodate unequal spacing "
"in the X and Y dimension - try GeoTIFF instead"
)
results = self._transform_to_raster(imt, shakemap, is_stddev)
# Export the raster to file
with open(filename, "w") as f:
# Write header information
f.write("NCOLS %g\n" % self.site_model.bbox_properties["ncol"])
f.write("NROWS %g\n" % self.site_model.bbox_properties["nrow"])
f.write("XLLCENTER %.8f\n" % self.site_model.bbox_properties["bbox"][0])
f.write("YLLCENTER %.8f\n" % self.site_model.bbox_properties["bbox"][1])
f.write("CELLSIZE %.8e\n" % self.site_model.bbox_properties["spcx"])
if nodata is not None:
f.write("NODATA_VALUE %.8f\n" % nodata)
# Write the data
np.savetxt(f, results, fmt=fmt)
return
def get_contours(
self,
imt: str,
shakemap: np.ndarray,
levels: Union[int, np.ndarray] = 10,
is_stddev: bool = False,
) -> gpd.GeoDataFrame:
"""
For a shakemap of a given intensity measure type, retrieves the
set of contours and exports to a geopandas GeoDataframe
Args:
imt: Intensity measure type
shakemap: shakemap outputs from `get_shakemap(...)`
levels: Number of levels for the contours or pre-defined set of levels (see
documentation for matplotlib.pyplot.contour)
is_stddev: shakemap values are standard deviations (True) or expected ground motion
Returns:
Contour set as geopandas GeoDataframe
"""
# For contouring we need the shakemap in 2D
results = self._transform_to_raster(imt, shakemap, is_stddev)
new_shape = [
self.site_model.bbox_properties["nrow"],
self.site_model.bbox_properties["ncol"],
]
lons = self.site_model["lon"].reshape(new_shape)
lats = self.site_model["lat"].reshape(new_shape)
# Surpress plotting
plt.ioff()
fig = plt.figure()
ax = fig.add_subplot(111)
# Get the contours
contours = ax.contour(lons, lats, results, levels)
contour_levels = []
contour_geometries = []
# Retrieve the x, y coordinates of each contour
for level, segs in zip(contours.levels, contours.allsegs):
if not len(segs):
continue
else:
geometries = []
for seg in segs:
geometries.append(LineString([(row[0], row[1]) for row in seg]))
if len(geometries) > 1:
# Has multiple contour lines for this level
contour_geometries.append(MultiLineString(geometries))
else:
# Only a single contour for this level
contour_geometries.append(geometries[0])
contour_levels.append(level)
plt.close(fig)
# Re-allow plotting
plt.ion()
# Create geodataframe
dframe = gpd.GeoDataFrame(
{imt: contour_levels, "geometry": gpd.GeoSeries(contour_geometries)}
)
dframe.crs = {"init": "epsg:4326"}
return dframe
def contours_to_file(
self,
shakemap: np.ndarray,
imt: str,
filename: str,
levels: Union[int, np.ndarray] = 10,
is_stddev: bool = False,
driver: str = "GeoJSON",
):
"""
Exports the contours of a shapefile to a vector spatial format
Args:
imt: Intensity measure type
shakemap: shakemap outputs from `get_shakemap(...)`
levels: Number of levels for the contours or pre-defined set of levels (see
documentation for matplotlib.pyplot.contour)
is_stddev: shakemap values are standard deviations (True) or expected ground motion
driver: Any Vector spatial file driver supported by Fiona
https://github.com/Toblerity/Fiona/blob/master/fiona/drvsupport.py
"""
contours = self.get_contours(imt, shakemap, levels, is_stddev)
contours.to_file(filename, driver=driver)
return
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "PGA": 0.5 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ 0.426515017197592, 2.0 ], [ 0.425, 1.998987878548158 ], [ 0.4, 1.981411150875837 ], [ 0.391401484483202, 1.975 ], [ 0.375, 1.962463279684042 ], [ 0.359592121378487, 1.95 ], [ 0.35, 1.942000370156688 ], [ 0.330657045613193, 1.925 ], [ 0.325, 1.919842017255274 ], [ 0.304265822837927, 1.9 ], [ 0.3, 1.895736132043791 ], [ 0.280154620650375, 1.875 ], [ 0.275, 1.869331943860303 ], [ 0.258115501360889, 1.85 ], [ 0.25, 1.840138543198278 ], [ 0.237988205354094, 1.825 ], [ 0.225, 1.807459277708302 ], [ 0.219653924600675, 1.8 ], [ 0.202993377729003, 1.775 ], [ 0.2, 1.77015741943832 ], [ 0.187876724378883, 1.75 ], [ 0.175, 1.7262677752588 ], [ 0.174328110511847, 1.725 ], [ 0.162133321468056, 1.7 ], [ 0.151407582674679, 1.675 ], [ 0.15, 1.67133767335034 ], [ 0.141935786374931, 1.65 ], [ 0.133794145535744, 1.625 ], [ 0.126951188605422, 1.6 ], [ 0.125, 1.591457555932739 ], [ 0.121278046749282, 1.575 ], [ 0.116789582565568, 1.55 ], [ 0.113487616353815, 1.525 ], [ 0.111337690922445, 1.5 ], [ 0.110310040743172, 1.475 ], [ 0.110379260207605, 1.45 ], [ 0.111524001712059, 1.425 ], [ 0.113726700300758, 1.4 ], [ 0.11697332189832, 1.375 ], [ 0.121253132428465, 1.35 ], [ 0.125, 1.332444560731627 ], [ 0.126520042300115, 1.325 ], [ 0.132686493278153, 1.3 ], [ 0.139839454639792, 1.275 ], [ 0.147977457426054, 1.25 ], [ 0.15, 1.244524060867362 ], [ 0.156930545776277, 1.225 ], [ 0.16679079596062, 1.2 ], [ 0.175, 1.181090692997792 ], [ 0.177549543530138, 1.175 ], [ 0.189055720027954, 1.15 ], [ 0.2, 1.128031536628445 ], [ 0.201460845318679, 1.125 ], [ 0.214544522743568, 1.1 ], [ 0.225, 1.081362134936096 ], [ 0.228463049033666, 1.075 ], [ 0.243058914790408, 1.05 ], [ 0.25, 1.038840286812201 ], [ 0.258378215594043, 1.025 ], [ 0.274419851332936, 1.0 ], [ 0.275, 0.999147559954099 ], [ 0.291042586760744, 0.975 ], [ 0.3, 0.962191834574519 ], [ 0.308345150480162, 0.95 ], [ 0.325, 0.926821278642138 ], [ 0.326284228100021, 0.925 ], [ 0.344777040074991, 0.9 ], [ 0.35, 0.893236119795303 ], [ 0.363858438116479, 0.875 ], [ 0.375, 0.860910262073131 ], [ 0.383512891865907, 0.85 ], [ 0.4, 0.829638385977747 ], [ 0.403715667207004, 0.825 ], [ 0.424445822915823, 0.8 ], [ 0.425, 0.799353003272968 ], [ 0.445693593261996, 0.775 ], [ 0.45, 0.770075445464893 ], [ 0.467461476437812, 0.75 ], [ 0.475, 0.741555938075741 ], [ 0.489739680316007, 0.725 ], [ 0.5, 0.713742246879839 ], [ 0.512522728719281, 0.7 ], [ 0.525, 0.68658945680534 ], [ 0.535809411418687, 0.675 ], [ 0.55, 0.660059297803988 ], [ 0.559602790869857, 0.65 ], [ 0.575, 0.634119575405318 ], [ 0.583910265995581, 0.625 ], [ 0.6, 0.608743694387991 ], [ 0.608743694387987, 0.6 ], [ 0.625, 0.583910265995584 ], [ 0.634119575405314, 0.575 ], [ 0.65, 0.55960279086986 ], [ 0.660059297803984, 0.55 ], [ 0.675, 0.535809411418691 ], [ 0.686589456805336, 0.525 ], [ 0.7, 0.512522728719284 ], [ 0.713742246879835, 0.5 ], [ 0.725, 0.48973968031601 ], [ 0.741555938075737, 0.475 ], [ 0.75, 0.467461476437815 ], [ 0.770075445464889, 0.45 ], [ 0.775, 0.445693593261999 ], [ 0.799353003272964, 0.425 ], [ 0.8, 0.424445822915826 ], [ 0.825, 0.403715667207007 ], [ 0.829638385977743, 0.4 ], [ 0.85, 0.38351289186591 ], [ 0.860910262073126, 0.375 ], [ 0.875, 0.363858438116482 ], [ 0.893236119795299, 0.35 ], [ 0.9, 0.344777040074994 ], [ 0.925, 0.326284228100023 ], [ 0.926821278642134, 0.325 ], [ 0.95, 0.308345150480164 ], [ 0.962191834574514, 0.3 ], [ 0.975, 0.291042586760747 ], [ 0.999147559954094, 0.275 ], [ 1.0, 0.274419851332938 ], [ 1.025, 0.258378215594045 ], [ 1.038840286812196, 0.25 ], [ 1.05, 0.24305891479041 ], [ 1.075, 0.228463049033669 ], [ 1.08136213493609, 0.225 ], [ 1.1, 0.21454452274357 ], [ 1.125, 0.201460845318681 ], [ 1.128031536628438, 0.2 ], [ 1.15, 0.189055720027956 ], [ 1.175, 0.17754954353014 ], [ 1.181090692997784, 0.175 ], [ 1.2, 0.166790795960622 ], [ 1.225, 0.156930545776278 ], [ 1.244524060867352, 0.15 ], [ 1.25, 0.147977457426055 ], [ 1.275, 0.139839454639793 ], [ 1.3, 0.132686493278153 ], [ 1.325, 0.126520042300115 ], [ 1.33244456073161, 0.125 ], [ 1.35, 0.121253132428465 ], [ 1.375, 0.116973321898321 ], [ 1.4, 0.113726700300758 ], [ 1.425, 0.111524001712059 ], [ 1.45, 0.110379260207605 ], [ 1.475, 0.110310040743172 ], [ 1.5, 0.111337690922445 ], [ 1.525, 0.113487616353814 ], [ 1.55, 0.116789582565568 ], [ 1.575, 0.121278046749281 ], [ 1.591457555932755, 0.125 ], [ 1.6, 0.126951188605421 ], [ 1.625, 0.133794145535743 ], [ 1.65, 0.141935786374929 ], [ 1.671337673350349, 0.15 ], [ 1.675, 0.151407582674677 ], [ 1.7, 0.162133321468055 ], [ 1.725, 0.174328110511845 ], [ 1.726267775258807, 0.175 ], [ 1.75, 0.187876724378881 ], [ 1.770157419438326, 0.2 ], [ 1.775, 0.202993377729 ], [ 1.8, 0.219653924600672 ], [ 1.807459277708307, 0.225 ], [ 1.825, 0.237988205354092 ], [ 1.840138543198282, 0.25 ], [ 1.85, 0.258115501360886 ], [ 1.869331943860307, 0.275 ], [ 1.875, 0.280154620650371 ], [ 1.895736132043794, 0.3 ], [ 1.9, 0.304265822837924 ], [ 1.919842017255277, 0.325 ], [ 1.925, 0.33065704561319 ], [ 1.942000370156691, 0.35 ], [ 1.95, 0.359592121378482 ], [ 1.962463279684045, 0.375 ], [ 1.975, 0.391401484483197 ], [ 1.981411150875839, 0.4 ], [ 1.99898787854816, 0.425 ], [ 2.0, 0.426515017197587 ], [ 2.015417870761835, 0.45 ], [ 2.025, 0.465631378661736 ], [ 2.030671098697964, 0.475 ], [ 2.044894967455097, 0.5 ], [ 2.05, 0.509574133693369 ], [ 2.058174606436821, 0.525 ], [ 2.070504686458694, 0.55 ], [ 2.075, 0.55975952112229 ], [ 2.082018811355746, 0.575 ], [ 2.09270082412502, 0.6 ], [ 2.1, 0.618525661388272 ], [ 2.102565086217858, 0.625 ], [ 2.111781150797529, 0.65 ], [ 2.120189082085597, 0.675 ], [ 2.125, 0.690628673913318 ], [ 2.127921130753958, 0.7 ], [ 2.135057112892354, 0.725 ], [ 2.141482242662267, 0.75 ], [ 2.147228029571548, 0.775 ], [ 2.15, 0.788524169087071 ], [ 2.152401282865768, 0.8 ], [ 2.157021481040874, 0.825 ], [ 2.161016857107556, 0.85 ], [ 2.164406440272872, 0.875 ], [ 2.167206466908143, 0.9 ], [ 2.169430520377192, 0.925 ], [ 2.171089649022136, 0.95 ], [ 2.172192463849283, 0.975 ], [ 2.172745217202273, 1.0 ], [ 2.172751863478018, 1.025 ], [ 2.172214102729142, 1.05 ], [ 2.171131407800732, 1.075 ], [ 2.169501035466081, 1.1 ], [ 2.167318021852714, 1.125 ], [ 2.164575162283743, 1.15 ], [ 2.161262975497845, 1.175 ], [ 2.15736965205173, 1.2 ], [ 2.152880986549454, 1.225 ], [ 2.15, 1.239188705892262 ], [ 2.147856240909295, 1.25 ], [ 2.14232073002268, 1.275 ], [ 2.1361548458093, 1.3 ], [ 2.129334671259504, 1.325 ], [ 2.125, 1.33954510470835 ], [ 2.121936797160043, 1.35 ], [ 2.113993139680387, 1.375 ], [ 2.105330282240361, 1.4 ], [ 2.1, 1.41427267594579 ], [ 2.096039588754935, 1.425 ], [ 2.086145710644119, 1.45 ], [ 2.075441929543321, 1.475 ], [ 2.075, 1.475977918087874 ], [ 2.064208965703741, 1.5 ], [ 2.05211079881784, 1.525 ], [ 2.05, 1.529140229956646 ], [ 2.039382980064, 1.55 ], [ 2.025752243084561, 1.575 ], [ 2.025, 1.576318963249104 ], [ 2.011458161744399, 1.6 ], [ 2.0, 1.618819861691775 ], [ 1.996215561041156, 1.625 ], [ 1.98014337698995, 1.65 ], [ 1.975, 1.657624515899014 ], [ 1.963159097987675, 1.675 ], [ 1.95, 1.693336791433804 ], [ 1.945154039067124, 1.7 ], [ 1.926119508285945, 1.725 ], [ 1.925, 1.726418072623388 ], [ 1.906048676830312, 1.75 ], [ 1.9, 1.757219330180884 ], [ 1.884785478126893, 1.775 ], [ 1.875, 1.786008482768826 ], [ 1.86225615822362, 1.8 ], [ 1.85, 1.812998806835191 ], [ 1.838366479518775, 1.825 ], [ 1.825, 1.838366479518778 ], [ 1.812998806835187, 1.85 ], [ 1.8, 1.862256158223623 ], [ 1.786008482768822, 1.875 ], [ 1.775, 1.884785478126896 ], [ 1.757219330180879, 1.9 ], [ 1.75, 1.906048676830315 ], [ 1.726418072623385, 1.925 ], [ 1.725, 1.926119508285947 ], [ 1.7, 1.945154039067126 ], [ 1.693336791433799, 1.95 ], [ 1.675, 1.963159097987678 ], [ 1.657624515899008, 1.975 ], [ 1.65, 1.980143376989952 ], [ 1.625, 1.996215561041159 ], [ 1.618819861691769, 2.0 ] ], [ [ -0.225, -1.152880986549449 ], [ -0.2, -1.157369652051726 ], [ -0.175, -1.161262975497842 ], [ -0.15, -1.16457516228374 ], [ -0.125, -1.167318021852711 ], [ -0.1, -1.169501035466079 ], [ -0.075, -1.171131407800732 ], [ -0.05, -1.172214102729142 ], [ -0.025, -1.172751863478018 ], [ -0.0, -1.172745217202274 ], [ 0.025, -1.172192463849285 ], [ 0.05, -1.171089649022138 ], [ 0.075, -1.169430520377194 ], [ 0.1, -1.167206466908145 ], [ 0.125, -1.164406440272875 ], [ 0.15, -1.161016857107559 ], [ 0.175, -1.157021481040877 ], [ 0.2, -1.152401282865772 ], [ 0.211475830912827, -1.15 ], [ 0.225, -1.147228029571552 ], [ 0.25, -1.141482242662272 ], [ 0.275, -1.13505711289236 ], [ 0.3, -1.127921130753964 ], [ 0.309371326086614, -1.125 ], [ 0.325, -1.120189082085604 ], [ 0.35, -1.111781150797536 ], [ 0.375, -1.102565086217865 ], [ 0.381474338611673, -1.1 ], [ 0.4, -1.09270082412503 ], [ 0.425, -1.082018811355755 ], [ 0.440240478877663, -1.075 ], [ 0.45, -1.070504686458705 ], [ 0.475, -1.058174606436832 ], [ 0.490425866306591, -1.05 ], [ 0.5, -1.044894967455109 ], [ 0.525, -1.030671098697977 ], [ 0.534368621338229, -1.025 ], [ 0.55, -1.015417870761848 ], [ 0.573484982802382, -1.0 ], [ 0.575, -0.998987878548175 ], [ 0.6, -0.981411150875855 ], [ 0.608598515516774, -0.975 ], [ 0.625, -0.962463279684062 ], [ 0.640407878621492, -0.95 ], [ 0.65, -0.942000370156709 ], [ 0.669342954386787, -0.925 ], [ 0.675, -0.919842017255297 ], [ 0.695734177162055, -0.9 ], [ 0.7, -0.895736132043816 ], [ 0.719845379349609, -0.875 ], [ 0.725, -0.869331943860331 ], [ 0.741884498639096, -0.85 ], [ 0.75, -0.840138543198308 ], [ 0.762011794645892, -0.825 ], [ 0.775, -0.807459277708337 ], [ 0.780346075399313, -0.8 ], [ 0.797006622270986, -0.775 ], [ 0.8, -0.77015741943836 ], [ 0.812123275621107, -0.75 ], [ 0.825, -0.726267775258848 ], [ 0.825671889488144, -0.725 ], [ 0.837866678531936, -0.7 ], [ 0.848592417325314, -0.675 ], [ 0.85, -0.671337673350404 ], [ 0.858064213625063, -0.65 ], [ 0.866205854464251, -0.625 ], [ 0.873048811394574, -0.6 ], [ 0.875, -0.591457555932848 ], [ 0.878721953250715, -0.575 ], [ 0.883210417434429, -0.55 ], [ 0.886512383646184, -0.525 ], [ 0.888662309077553, -0.5 ], [ 0.889689959256828, -0.475 ], [ 0.889620739792395, -0.45 ], [ 0.888475998287942, -0.425 ], [ 0.886273299699244, -0.4 ], [ 0.883026678101683, -0.375 ], [ 0.878746867571539, -0.35 ], [ 0.875, -0.332444560731506 ], [ 0.873479957699889, -0.325 ], [ 0.867313506721852, -0.3 ], [ 0.860160545360214, -0.275 ], [ 0.852022542573952, -0.25 ], [ 0.85, -0.244524060867295 ], [ 0.84306945422373, -0.225 ], [ 0.833209204039387, -0.2 ], [ 0.825, -0.181090692997733 ], [ 0.82245045646987, -0.175 ], [ 0.810944279972054, -0.15 ], [ 0.8, -0.128031536628394 ], [ 0.798539154681329, -0.125 ], [ 0.785455477256442, -0.1 ], [ 0.775, -0.081362134936051 ], [ 0.771536950966344, -0.075 ], [ 0.756941085209603, -0.05 ], [ 0.75, -0.038840286812161 ], [ 0.741621784405968, -0.025 ], [ 0.725580148667076, -0.0 ], [ 0.725, 0.000852440045937 ], [ 0.708957413239268, 0.025 ], [ 0.7, 0.037808165425516 ], [ 0.691654849519851, 0.05 ], [ 0.675, 0.073178721357897 ], [ 0.673715771899992, 0.075 ], [ 0.655222959925022, 0.1 ], [ 0.65, 0.106763880204729 ], [ 0.636141561883535, 0.125 ], [ 0.625, 0.139089737926901 ], [ 0.616487108134107, 0.15 ], [ 0.6, 0.170361614022284 ], [ 0.596284332793011, 0.175 ], [ 0.575554177084192, 0.2 ], [ 0.575, 0.200646996727061 ], [ 0.554306406738019, 0.225 ], [ 0.55, 0.229924554535135 ], [ 0.532538523562204, 0.25 ], [ 0.525, 0.258444061924287 ], [ 0.510260319684009, 0.275 ], [ 0.5, 0.286257753120188 ], [ 0.487477271280735, 0.3 ], [ 0.475, 0.313410543194687 ], [ 0.464190588581329, 0.325 ], [ 0.45, 0.339940702196038 ], [ 0.44039720913016, 0.35 ], [ 0.425, 0.365880424594708 ], [ 0.416089734004437, 0.375 ], [ 0.4, 0.391256305612034 ], [ 0.391256305612031, 0.4 ], [ 0.375, 0.41608973400444 ], [ 0.365880424594704, 0.425 ], [ 0.35, 0.440397209130164 ], [ 0.339940702196034, 0.45 ], [ 0.325, 0.464190588581333 ], [ 0.313410543194683, 0.475 ], [ 0.3, 0.487477271280739 ], [ 0.286257753120185, 0.5 ], [ 0.275, 0.510260319684013 ], [ 0.258444061924283, 0.525 ], [ 0.25, 0.532538523562207 ], [ 0.229924554535131, 0.55 ], [ 0.225, 0.554306406738023 ], [ 0.200646996727056, 0.575 ], [ 0.2, 0.575554177084195 ], [ 0.175, 0.596284332793013 ], [ 0.170361614022279, 0.6 ], [ 0.15, 0.616487108134109 ], [ 0.139089737926897, 0.625 ], [ 0.125, 0.636141561883538 ], [ 0.106763880204724, 0.65 ], [ 0.1, 0.655222959925025 ], [ 0.075, 0.673715771899995 ], [ 0.073178721357892, 0.675 ], [ 0.05, 0.691654849519853 ], [ 0.037808165425511, 0.7 ], [ 0.025, 0.70895741323927 ], [ 0.000852440045932, 0.725 ], [ -0.0, 0.725580148667079 ], [ -0.025, 0.741621784405971 ], [ -0.038840286812167, 0.75 ], [ -0.05, 0.756941085209605 ], [ -0.075, 0.771536950966345 ], [ -0.081362134936057, 0.775 ], [ -0.1, 0.785455477256443 ], [ -0.125, 0.798539154681331 ], [ -0.128031536628401, 0.8 ], [ -0.15, 0.810944279972056 ], [ -0.175, 0.822450456469871 ], [ -0.181090692997742, 0.825 ], [ -0.2, 0.833209204039389 ], [ -0.225, 0.843069454223731 ], [ -0.244524060867305, 0.85 ], [ -0.25, 0.852022542573954 ], [ -0.275, 0.860160545360215 ], [ -0.3, 0.867313506721853 ], [ -0.325, 0.87347995769989 ], [ -0.332444560731523, 0.875 ], [ -0.35, 0.87874686757154 ], [ -0.375, 0.883026678101683 ], [ -0.4, 0.886273299699244 ], [ -0.425, 0.888475998287942 ], [ -0.45, 0.889620739792395 ], [ -0.475, 0.889689959256828 ], [ -0.5, 0.888662309077553 ], [ -0.525, 0.886512383646183 ], [ -0.55, 0.883210417434429 ], [ -0.575, 0.878721953250714 ], [ -0.591457555932832, 0.875 ], [ -0.6, 0.873048811394573 ], [ -0.625, 0.86620585446425 ], [ -0.65, 0.858064213625062 ], [ -0.671337673350395, 0.85 ], [ -0.675, 0.848592417325313 ], [ -0.7, 0.837866678531934 ], [ -0.725, 0.825671889488143 ], [ -0.726267775258841, 0.825 ], [ -0.75, 0.812123275621105 ], [ -0.770157419438354, 0.8 ], [ -0.775, 0.797006622270984 ], [ -0.8, 0.78034607539931 ], [ -0.807459277708332, 0.775 ], [ -0.825, 0.76201179464589 ], [ -0.840138543198303, 0.75 ], [ -0.85, 0.741884498639093 ], [ -0.869331943860327, 0.725 ], [ -0.875, 0.719845379349605 ], [ -0.895736132043812, 0.7 ], [ -0.9, 0.695734177162052 ], [ -0.919842017255294, 0.675 ], [ -0.925, 0.669342954386783 ], [ -0.942000370156706, 0.65 ], [ -0.95, 0.640407878621488 ], [ -0.962463279684059, 0.625 ], [ -0.975, 0.608598515516769 ], [ -0.981411150875852, 0.6 ], [ -0.998987878548172, 0.575 ], [ -1.0, 0.573484982802376 ], [ -1.015417870761846, 0.55 ], [ -1.025, 0.534368621338223 ], [ -1.030671098697975, 0.525 ], [ -1.044894967455107, 0.5 ], [ -1.05, 0.490425866306584 ], [ -1.05817460643683, 0.475 ], [ -1.070504686458703, 0.45 ], [ -1.075, 0.440240478877655 ], [ -1.082018811355754, 0.425 ], [ -1.092700824125028, 0.4 ], [ -1.1, 0.381474338611664 ], [ -1.102565086217864, 0.375 ], [ -1.111781150797535, 0.35 ], [ -1.120189082085603, 0.325 ], [ -1.125, 0.309371326086603 ], [ -1.127921130753963, 0.3 ], [ -1.135057112892359, 0.275 ], [ -1.141482242662271, 0.25 ], [ -1.147228029571552, 0.225 ], [ -1.15, 0.211475830912809 ], [ -1.152401282865771, 0.2 ], [ -1.157021481040877, 0.175 ], [ -1.161016857107559, 0.15 ], [ -1.164406440272874, 0.125 ], [ -1.167206466908145, 0.1 ], [ -1.169430520377194, 0.075 ], [ -1.171089649022137, 0.05 ], [ -1.172192463849284, 0.025 ], [ -1.172745217202274, -0.0 ], [ -1.172751863478018, -0.025 ], [ -1.172214102729142, -0.05 ], [ -1.171131407800732, -0.075 ], [ -1.16950103546608, -0.1 ], [ -1.167318021852712, -0.125 ], [ -1.16457516228374, -0.15 ], [ -1.161262975497842, -0.175 ], [ -1.157369652051727, -0.2 ], [ -1.15288098654945, -0.225 ], [ -1.15, -0.239188705892138 ], [ -1.147856240909292, -0.25 ], [ -1.142320730022676, -0.275 ], [ -1.136154845809295, -0.3 ], [ -1.129334671259499, -0.325 ], [ -1.125, -0.339545104708267 ], [ -1.121936797160037, -0.35 ], [ -1.113993139680381, -0.375 ], [ -1.105330282240355, -0.4 ], [ -1.1, -0.414272675945723 ], [ -1.096039588754929, -0.425 ], [ -1.086145710644112, -0.45 ], [ -1.075441929543312, -0.475 ], [ -1.075, -0.475977918087817 ], [ -1.064208965703732, -0.5 ], [ -1.052110798817831, -0.525 ], [ -1.05, -0.529140229956597 ], [ -1.039382980063991, -0.55 ], [ -1.025752243084551, -0.575 ], [ -1.025, -0.576318963249061 ], [ -1.011458161744389, -0.6 ], [ -1.0, -0.618819861691734 ], [ -0.996215561041146, -0.625 ], [ -0.980143376989938, -0.65 ], [ -0.975, -0.657624515898976 ], [ -0.963159097987663, -0.675 ], [ -0.95, -0.693336791433769 ], [ -0.945154039067111, -0.7 ], [ -0.92611950828593, -0.725 ], [ -0.925, -0.726418072623357 ], [ -0.906048676830297, -0.75 ], [ -0.9, -0.757219330180854 ], [ -0.884785478126877, -0.775 ], [ -0.875, -0.786008482768798 ], [ -0.862256158223604, -0.8 ], [ -0.85, -0.812998806835165 ], [ -0.838366479518757, -0.825 ], [ -0.825, -0.838366479518754 ], [ -0.812998806835169, -0.85 ], [ -0.8, -0.8622561582236 ], [ -0.786008482768802, -0.875 ], [ -0.775, -0.884785478126874 ], [ -0.757219330180858, -0.9 ], [ -0.75, -0.906048676830294 ], [ -0.726418072623362, -0.925 ], [ -0.725, -0.926119508285928 ], [ -0.7, -0.945154039067108 ], [ -0.693336791433774, -0.95 ], [ -0.675, -0.96315909798766 ], [ -0.657624515898982, -0.975 ], [ -0.65, -0.980143376989935 ], [ -0.625, -0.996215561041144 ], [ -0.61881986169174, -1.0 ], [ -0.6, -1.011458161744386 ], [ -0.576318963249067, -1.025 ], [ -0.575, -1.025752243084549 ], [ -0.55, -1.039382980063989 ], [ -0.529140229956604, -1.05 ], [ -0.525, -1.05211079881783 ], [ -0.5, -1.064208965703731 ], [ -0.475977918087825, -1.075 ], [ -0.475, -1.07544192954331 ], [ -0.45, -1.08614571064411 ], [ -0.425, -1.096039588754927 ], [ -0.414272675945733, -1.1 ], [ -0.4, -1.105330282240354 ], [ -0.375, -1.11399313968038 ], [ -0.35, -1.121936797160036 ], [ -0.339545104708279, -1.125 ], [ -0.325, -1.129334671259498 ], [ -0.3, -1.136154845809294 ], [ -0.275, -1.142320730022675 ], [ -0.25, -1.147856240909291 ], [ -0.239188705892156, -1.15 ], [ -0.225, -1.152880986549449 ] ] ] } },
{ "type": "Feature", "properties": { "PGA": 1.0 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -0.175, -0.802617462485206 ], [ -0.15, -0.807167006909721 ], [ -0.125, -0.810871479613424 ], [ -0.1, -0.813741166119541 ], [ -0.075, -0.815782660137741 ], [ -0.05, -0.816998858886562 ], [ -0.025, -0.817388927958831 ], [ -0.0, -0.816948234527189 ], [ 0.025, -0.815668247239462 ], [ 0.05, -0.813536400659232 ], [ 0.075, -0.810535921553582 ], [ 0.1, -0.806645613703628 ], [ 0.125, -0.801839597197243 ], [ 0.133055238866764, -0.8 ], [ 0.15, -0.796097328168235 ], [ 0.175, -0.789376050752097 ], [ 0.2, -0.781626935818596 ], [ 0.218843868117458, -0.775 ], [ 0.225, -0.772797085015057 ], [ 0.25, -0.76281637223206 ], [ 0.275, -0.75162356096789 ], [ 0.278312542394184, -0.75 ], [ 0.3, -0.739076486039909 ], [ 0.325, -0.725120720967325 ], [ 0.325200179775617, -0.725 ], [ 0.35, -0.709495239017367 ], [ 0.363901157454851, -0.7 ], [ 0.375, -0.692084191597444 ], [ 0.397077002750513, -0.675 ], [ 0.4, -0.672619299925589 ], [ 0.425, -0.650690107749335 ], [ 0.425735935407929, -0.65 ], [ 0.45, -0.625752150341716 ], [ 0.450705398885803, -0.625 ], [ 0.472558385186576, -0.6 ], [ 0.475, -0.596969989671079 ], [ 0.491702014918141, -0.575 ], [ 0.5, -0.562974041584877 ], [ 0.50848890930571, -0.55 ], [ 0.523136199185221, -0.525 ], [ 0.525, -0.521446789984194 ], [ 0.535733465965739, -0.5 ], [ 0.546542599467036, -0.475 ], [ 0.55, -0.465702257236788 ], [ 0.555604559576041, -0.45 ], [ 0.563040099825429, -0.425 ], [ 0.568955265601644, -0.4 ], [ 0.573409043759394, -0.375 ], [ 0.575, -0.362100208579785 ], [ 0.576444542890372, -0.35 ], [ 0.578121914297142, -0.325 ], [ 0.57849821887595, -0.3 ], [ 0.577614460319002, -0.275 ], [ 0.57550855169425, -0.25 ], [ 0.575, -0.246203550051349 ], [ 0.572199010549849, -0.225 ], [ 0.567728017219686, -0.2 ], [ 0.562131087942637, -0.175 ], [ 0.555438736265752, -0.15 ], [ 0.55, -0.132563601833905 ], [ 0.547662591236765, -0.125 ], [ 0.538804008431011, -0.1 ], [ 0.528934572817977, -0.075 ], [ 0.525, -0.066020965747039 ], [ 0.518017534108073, -0.05 ], [ 0.506107865346114, -0.025 ], [ 0.5, -0.013187706271573 ], [ 0.493194756445339, -0.0 ], [ 0.47931394319671, 0.025 ], [ 0.475, 0.032249935263828 ], [ 0.464424812295982, 0.05 ], [ 0.45, 0.072830043080849 ], [ 0.448623025312237, 0.075 ], [ 0.431781030611387, 0.1 ], [ 0.425, 0.109566278878942 ], [ 0.413977714717513, 0.125 ], [ 0.4, 0.143685785141437 ], [ 0.39522673659516, 0.15 ], [ 0.375494803259869, 0.175 ], [ 0.375, 0.175601444746728 ], [ 0.35465340952996, 0.2 ], [ 0.35, 0.205385779034977 ], [ 0.33276925780032, 0.225 ], [ 0.325, 0.233563525718622 ], [ 0.309791847168961, 0.25 ], [ 0.3, 0.260279871231943 ], [ 0.285655936203564, 0.275 ], [ 0.275, 0.285655936203568 ], [ 0.260279871231939, 0.3 ], [ 0.25, 0.309791847168964 ], [ 0.233563525718618, 0.325 ], [ 0.225, 0.332769257800324 ], [ 0.205385779034973, 0.35 ], [ 0.2, 0.354653409529963 ], [ 0.175601444746724, 0.375 ], [ 0.175, 0.375494803259872 ], [ 0.15, 0.395226736595162 ], [ 0.143685785141432, 0.4 ], [ 0.125, 0.413977714717515 ], [ 0.109566278878937, 0.425 ], [ 0.1, 0.431781030611389 ], [ 0.075, 0.448623025312239 ], [ 0.072830043080843, 0.45 ], [ 0.05, 0.464424812295984 ], [ 0.032249935263822, 0.475 ], [ 0.025, 0.479313943196712 ], [ -0.0, 0.493194756445341 ], [ -0.013187706271579, 0.5 ], [ -0.025, 0.506107865346116 ], [ -0.05, 0.518017534108075 ], [ -0.066020965747047, 0.525 ], [ -0.075, 0.528934572817979 ], [ -0.1, 0.538804008431012 ], [ -0.125, 0.547662591236766 ], [ -0.132563601833916, 0.55 ], [ -0.15, 0.555438736265753 ], [ -0.175, 0.562131087942638 ], [ -0.2, 0.567728017219687 ], [ -0.225, 0.57219901054985 ], [ -0.246203550051376, 0.575 ], [ -0.25, 0.57550855169425 ], [ -0.275, 0.577614460319002 ], [ -0.3, 0.57849821887595 ], [ -0.325, 0.578121914297142 ], [ -0.35, 0.576444542890372 ], [ -0.362100208579757, 0.575 ], [ -0.375, 0.573409043759393 ], [ -0.4, 0.568955265601643 ], [ -0.425, 0.563040099825428 ], [ -0.45, 0.55560455957604 ], [ -0.465702257236778, 0.55 ], [ -0.475, 0.546542599467035 ], [ -0.5, 0.535733465965737 ], [ -0.521446789984187, 0.525 ], [ -0.525, 0.523136199185219 ], [ -0.55, 0.508488909305708 ], [ -0.562974041584872, 0.5 ], [ -0.575, 0.491702014918139 ], [ -0.596969989671075, 0.475 ], [ -0.6, 0.472558385186573 ], [ -0.625, 0.4507053988858 ], [ -0.625752150341712, 0.45 ], [ -0.65, 0.425735935407926 ], [ -0.650690107749332, 0.425 ], [ -0.672619299925586, 0.4 ], [ -0.675, 0.397077002750509 ], [ -0.692084191597441, 0.375 ], [ -0.7, 0.363901157454846 ], [ -0.709495239017365, 0.35 ], [ -0.725, 0.325200179775611 ], [ -0.725120720967323, 0.325 ], [ -0.739076486039907, 0.3 ], [ -0.75, 0.278312542394177 ], [ -0.751623560967888, 0.275 ], [ -0.762816372232058, 0.25 ], [ -0.772797085015055, 0.225 ], [ -0.775, 0.218843868117447 ], [ -0.781626935818594, 0.2 ], [ -0.789376050752096, 0.175 ], [ -0.796097328168234, 0.15 ], [ -0.8, 0.133055238866748 ], [ -0.801839597197242, 0.125 ], [ -0.806645613703627, 0.1 ], [ -0.810535921553582, 0.075 ], [ -0.813536400659232, 0.05 ], [ -0.815668247239462, 0.025 ], [ -0.816948234527188, -0.0 ], [ -0.817388927958831, -0.025 ], [ -0.816998858886562, -0.05 ], [ -0.815782660137741, -0.075 ], [ -0.813741166119541, -0.1 ], [ -0.810871479613425, -0.125 ], [ -0.807167006909721, -0.15 ], [ -0.802617462485207, -0.175 ], [ -0.8, -0.187143807138588 ], [ -0.797225114624551, -0.2 ], [ -0.790977615754359, -0.225 ], [ -0.783838854034723, -0.25 ], [ -0.775783611537485, -0.275 ], [ -0.775, -0.27720145056949 ], [ -0.766814803083945, -0.3 ], [ -0.756875866808608, -0.325 ], [ -0.75, -0.340786583323933 ], [ -0.745932850665444, -0.35 ], [ -0.733951743577586, -0.375 ], [ -0.725, -0.392208713664635 ], [ -0.720872077291869, -0.4 ], [ -0.706639556882792, -0.425 ], [ -0.7, -0.435877388373392 ], [ -0.691176065828691, -0.45 ], [ -0.675, -0.474157507073059 ], [ -0.67442029837107, -0.475 ], [ -0.656227356383019, -0.5 ], [ -0.65, -0.508068809388504 ], [ -0.636502442391054, -0.525 ], [ -0.625, -0.538663161589781 ], [ -0.615101089696331, -0.55 ], [ -0.6, -0.566455713434066 ], [ -0.591832924538053, -0.575 ], [ -0.575, -0.59183292453805 ], [ -0.56645571343407, -0.6 ], [ -0.55, -0.615101089696328 ], [ -0.538663161589785, -0.625 ], [ -0.525, -0.636502442391051 ], [ -0.508068809388508, -0.65 ], [ -0.5, -0.656227356383016 ], [ -0.475, -0.674420298371068 ], [ -0.474157507073064, -0.675 ], [ -0.45, -0.691176065828689 ], [ -0.435877388373397, -0.7 ], [ -0.425, -0.70663955688279 ], [ -0.4, -0.720872077291867 ], [ -0.392208713664641, -0.725 ], [ -0.375, -0.733951743577584 ], [ -0.35, -0.745932850665442 ], [ -0.340786583323941, -0.75 ], [ -0.325, -0.756875866808607 ], [ -0.3, -0.766814803083944 ], [ -0.277201450569501, -0.775 ], [ -0.275, -0.775783611537484 ], [ -0.25, -0.783838854034722 ], [ -0.225, -0.790977615754358 ], [ -0.2, -0.79722511462455 ], [ -0.187143807138605, -0.8 ], [ -0.175, -0.802617462485206 ] ], [ [ 1.25, 0.424491448305753 ], [ 1.275, 0.422385539680999 ], [ 1.3, 0.42150178112405 ], [ 1.325, 0.421878085702857 ], [ 1.35, 0.423555457109625 ], [ 1.36210020857961, 0.425 ], [ 1.375, 0.426590956240603 ], [ 1.4, 0.431044734398352 ], [ 1.425, 0.436959900174565 ], [ 1.45, 0.444395440423952 ], [ 1.46570225723673, 0.45 ], [ 1.475, 0.453457400532955 ], [ 1.5, 0.464266534034251 ], [ 1.521446789984154, 0.475 ], [ 1.525, 0.476863800814768 ], [ 1.55, 0.491511090694276 ], [ 1.562974041584845, 0.5 ], [ 1.575, 0.508297985081843 ], [ 1.596969989671053, 0.525 ], [ 1.6, 0.527441614813407 ], [ 1.625, 0.549294601114177 ], [ 1.625752150341693, 0.55 ], [ 1.65, 0.574264064592048 ], [ 1.650690107749315, 0.575 ], [ 1.672619299925572, 0.6 ], [ 1.675, 0.60292299724946 ], [ 1.692084191597428, 0.625 ], [ 1.7, 0.636098842545119 ], [ 1.709495239017353, 0.65 ], [ 1.725, 0.674799820224348 ], [ 1.725120720967313, 0.675 ], [ 1.739076486039898, 0.7 ], [ 1.75, 0.721687457605772 ], [ 1.751623560967879, 0.725 ], [ 1.76281637223205, 0.75 ], [ 1.772797085015048, 0.775 ], [ 1.775, 0.781156131882482 ], [ 1.781626935818588, 0.8 ], [ 1.789376050752091, 0.825 ], [ 1.796097328168229, 0.85 ], [ 1.8, 0.866944761133142 ], [ 1.801839597197239, 0.875 ], [ 1.806645613703624, 0.9 ], [ 1.810535921553579, 0.925 ], [ 1.81353640065923, 0.95 ], [ 1.815668247239461, 0.975 ], [ 1.816948234527187, 1.0 ], [ 1.817388927958831, 1.025 ], [ 1.816998858886563, 1.05 ], [ 1.815782660137742, 1.075 ], [ 1.813741166119543, 1.1 ], [ 1.810871479613427, 1.125 ], [ 1.807167006909724, 1.15 ], [ 1.80261746248521, 1.175 ], [ 1.8, 1.187143807138704 ], [ 1.797225114624555, 1.2 ], [ 1.790977615754364, 1.225 ], [ 1.783838854034729, 1.25 ], [ 1.775783611537491, 1.275 ], [ 1.775, 1.277201450569561 ], [ 1.766814803083951, 1.3 ], [ 1.756875866808616, 1.325 ], [ 1.75, 1.34078658332399 ], [ 1.745932850665452, 1.35 ], [ 1.733951743577595, 1.375 ], [ 1.725, 1.392208713664681 ], [ 1.720872077291879, 1.4 ], [ 1.706639556882802, 1.425 ], [ 1.7, 1.435877388373432 ], [ 1.691176065828703, 1.45 ], [ 1.675, 1.474157507073096 ], [ 1.674420298371083, 1.475 ], [ 1.656227356383033, 1.5 ], [ 1.65, 1.508068809388535 ], [ 1.636502442391069, 1.525 ], [ 1.625, 1.53866316158981 ], [ 1.615101089696347, 1.55 ], [ 1.6, 1.566455713434092 ], [ 1.591832924538071, 1.575 ], [ 1.575, 1.591832924538075 ], [ 1.566455713434089, 1.6 ], [ 1.55, 1.615101089696351 ], [ 1.538663161589806, 1.625 ], [ 1.525, 1.636502442391071 ], [ 1.508068809388531, 1.65 ], [ 1.5, 1.656227356383035 ], [ 1.475, 1.674420298371085 ], [ 1.474157507073091, 1.675 ], [ 1.45, 1.691176065828705 ], [ 1.435877388373426, 1.7 ], [ 1.425, 1.706639556882804 ], [ 1.4, 1.720872077291881 ], [ 1.392208713664675, 1.725 ], [ 1.375, 1.733951743577597 ], [ 1.35, 1.745932850665454 ], [ 1.340786583323982, 1.75 ], [ 1.325, 1.756875866808617 ], [ 1.3, 1.766814803083953 ], [ 1.27720145056955, 1.775 ], [ 1.275, 1.775783611537493 ], [ 1.25, 1.78383885403473 ], [ 1.225, 1.790977615754364 ], [ 1.2, 1.797225114624556 ], [ 1.187143807138687, 1.8 ], [ 1.175, 1.802617462485211 ], [ 1.15, 1.807167006909725 ], [ 1.125, 1.810871479613428 ], [ 1.1, 1.813741166119543 ], [ 1.075, 1.815782660137742 ], [ 1.05, 1.816998858886563 ], [ 1.025, 1.817388927958831 ], [ 1.0, 1.816948234527187 ], [ 0.975, 1.81566824723946 ], [ 0.95, 1.81353640065923 ], [ 0.925, 1.810535921553579 ], [ 0.9, 1.806645613703624 ], [ 0.875, 1.801839597197238 ], [ 0.866944761133158, 1.8 ], [ 0.85, 1.796097328168228 ], [ 0.825, 1.78937605075209 ], [ 0.8, 1.781626935818587 ], [ 0.781156131882493, 1.775 ], [ 0.775, 1.772797085015047 ], [ 0.75, 1.762816372232049 ], [ 0.725, 1.751623560967878 ], [ 0.72168745760578, 1.75 ], [ 0.7, 1.739076486039896 ], [ 0.675, 1.725120720967311 ], [ 0.674799820224353, 1.725 ], [ 0.65, 1.709495239017351 ], [ 0.636098842545124, 1.7 ], [ 0.625, 1.692084191597425 ], [ 0.602922997249465, 1.675 ], [ 0.6, 1.672619299925569 ], [ 0.575, 1.650690107749312 ], [ 0.574264064592052, 1.65 ], [ 0.55, 1.625752150341689 ], [ 0.54929460111418, 1.625 ], [ 0.52744161481341, 1.6 ], [ 0.525, 1.596969989671048 ], [ 0.508297985081846, 1.575 ], [ 0.5, 1.56297404158484 ], [ 0.491511090694279, 1.55 ], [ 0.476863800814769, 1.525 ], [ 0.475, 1.521446789984147 ], [ 0.464266534034253, 1.5 ], [ 0.453457400532957, 1.475 ], [ 0.45, 1.46570225723672 ], [ 0.444395440423953, 1.45 ], [ 0.436959900174566, 1.425 ], [ 0.431044734398353, 1.4 ], [ 0.426590956240603, 1.375 ], [ 0.425, 1.362100208579581 ], [ 0.423555457109626, 1.35 ], [ 0.421878085702857, 1.325 ], [ 0.42150178112405, 1.3 ], [ 0.422385539680999, 1.275 ], [ 0.424491448305752, 1.25 ], [ 0.425, 1.246203550051532 ], [ 0.427800989450153, 1.225 ], [ 0.432271982780317, 1.2 ], [ 0.437868912057368, 1.175 ], [ 0.444561263734253, 1.15 ], [ 0.45, 1.132563601833986 ], [ 0.452337408763241, 1.125 ], [ 0.461195991568996, 1.1 ], [ 0.47106542718203, 1.075 ], [ 0.475, 1.066020965747095 ], [ 0.481982465891935, 1.05 ], [ 0.493892134653894, 1.025 ], [ 0.5, 1.013187706271621 ], [ 0.50680524355467, 1.0 ], [ 0.5206860568033, 0.975 ], [ 0.525, 0.967750064736213 ], [ 0.535575187704029, 0.95 ], [ 0.55, 0.927169956919191 ], [ 0.551376974687775, 0.925 ], [ 0.568218969388625, 0.9 ], [ 0.575, 0.890433721121093 ], [ 0.5860222852825, 0.875 ], [ 0.6, 0.856314214858596 ], [ 0.604773263404854, 0.85 ], [ 0.624505196740145, 0.825 ], [ 0.625, 0.824398555253301 ], [ 0.645346590470055, 0.8 ], [ 0.65, 0.794614220965052 ], [ 0.667230742199695, 0.775 ], [ 0.675, 0.766436474281405 ], [ 0.690208152831056, 0.75 ], [ 0.7, 0.739720128768083 ], [ 0.714344063796453, 0.725 ], [ 0.725, 0.714344063796456 ], [ 0.73972012876808, 0.7 ], [ 0.75, 0.690208152831059 ], [ 0.766436474281401, 0.675 ], [ 0.775, 0.667230742199699 ], [ 0.794614220965047, 0.65 ], [ 0.8, 0.645346590470058 ], [ 0.824398555253297, 0.625 ], [ 0.825, 0.624505196740148 ], [ 0.85, 0.604773263404857 ], [ 0.856314214858592, 0.6 ], [ 0.875, 0.586022285282503 ], [ 0.890433721121088, 0.575 ], [ 0.9, 0.568218969388628 ], [ 0.925, 0.551376974687777 ], [ 0.927169956919186, 0.55 ], [ 0.95, 0.535575187704031 ], [ 0.967750064736207, 0.525 ], [ 0.975, 0.520686056803302 ], [ 1.0, 0.506805243554672 ], [ 1.013187706271614, 0.5 ], [ 1.025, 0.493892134653896 ], [ 1.05, 0.481982465891936 ], [ 1.066020965747087, 0.475 ], [ 1.075, 0.471065427182032 ], [ 1.1, 0.461195991568997 ], [ 1.125, 0.452337408763242 ], [ 1.132563601833974, 0.45 ], [ 1.15, 0.444561263734254 ], [ 1.175, 0.437868912057368 ], [ 1.2, 0.432271982780318 ], [ 1.225, 0.427800989450154 ], [ 1.246203550051504, 0.425 ], [ 1.25, 0.424491448305753 ] ] ] } },
{ "type": "Feature", "properties": { "PGA": 1.5 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -0.15, -0.475764641033456 ], [ -0.125, -0.481197010279427 ], [ -0.1, -0.485121972029924 ], [ -0.075, -0.487529401013578 ], [ -0.05, -0.488399812332677 ], [ -0.025, -0.487703747996471 ], [ -0.0, -0.48540100629354 ], [ 0.025, -0.481439688760965 ], [ 0.05, -0.475755033225805 ], [ 0.052552695357665, -0.475 ], [ 0.075, -0.46793084763585 ], [ 0.1, -0.458054742325802 ], [ 0.116856873297251, -0.45 ], [ 0.125, -0.445792187179445 ], [ 0.15, -0.430566008900327 ], [ 0.157898876817071, -0.425 ], [ 0.175, -0.411712724658731 ], [ 0.188183007571166, -0.4 ], [ 0.2, -0.388197741230068 ], [ 0.211729129896725, -0.375 ], [ 0.225, -0.357790554918011 ], [ 0.230399512548697, -0.35 ], [ 0.245083803516813, -0.325 ], [ 0.25, -0.31478600575375 ], [ 0.256475802592336, -0.3 ], [ 0.265034814230307, -0.275 ], [ 0.271202406807838, -0.25 ], [ 0.275, -0.225656486863012 ], [ 0.275094347429846, -0.225 ], [ 0.276743454146592, -0.2 ], [ 0.276458351068229, -0.175 ], [ 0.275, -0.157960822798485 ], [ 0.274297673313548, -0.15 ], [ 0.270217096418164, -0.125 ], [ 0.264395273218343, -0.1 ], [ 0.256926048640244, -0.075 ], [ 0.25, -0.055911398503594 ], [ 0.247779018176317, -0.05 ], [ 0.236692046087086, -0.025 ], [ 0.225, -0.00169563345506 ], [ 0.224114946129393, -0.0 ], [ 0.209397088248197, 0.025 ], [ 0.2, 0.03954239379488 ], [ 0.192937288907559, 0.05 ], [ 0.175, 0.074441882526439 ], [ 0.174569603716137, 0.075 ], [ 0.153701556524171, 0.1 ], [ 0.15, 0.104148668602716 ], [ 0.130361526227587, 0.125 ], [ 0.125, 0.13036152622759 ], [ 0.104148668602712, 0.15 ], [ 0.1, 0.153701556524174 ], [ 0.075, 0.17456960371614 ], [ 0.074441882526434, 0.175 ], [ 0.05, 0.192937288907561 ], [ 0.039542393794874, 0.2 ], [ 0.025, 0.209397088248199 ], [ -0.0, 0.224114946129395 ], [ -0.001695633455067, 0.225 ], [ -0.025, 0.236692046087088 ], [ -0.05, 0.247779018176319 ], [ -0.055911398503604, 0.25 ], [ -0.075, 0.256926048640245 ], [ -0.1, 0.264395273218344 ], [ -0.125, 0.270217096418165 ], [ -0.15, 0.274297673313549 ], [ -0.157960822798524, 0.275 ], [ -0.175, 0.276458351068229 ], [ -0.2, 0.276743454146592 ], [ -0.225, 0.275094347429846 ], [ -0.225656486862988, 0.275 ], [ -0.25, 0.271202406807837 ], [ -0.275, 0.265034814230306 ], [ -0.3, 0.256475802592334 ], [ -0.314786005753743, 0.25 ], [ -0.325, 0.245083803516811 ], [ -0.35, 0.230399512548694 ], [ -0.357790554918006, 0.225 ], [ -0.375, 0.211729129896722 ], [ -0.388197741230064, 0.2 ], [ -0.4, 0.188183007571162 ], [ -0.411712724658728, 0.175 ], [ -0.425, 0.157898876817066 ], [ -0.430566008900325, 0.15 ], [ -0.445792187179443, 0.125 ], [ -0.45, 0.116856873297243 ], [ -0.4580547423258, 0.1 ], [ -0.467930847635849, 0.075 ], [ -0.475, 0.052552695357653 ], [ -0.475755033225804, 0.05 ], [ -0.481439688760965, 0.025 ], [ -0.48540100629354, -0.0 ], [ -0.48770374799647, -0.025 ], [ -0.488399812332677, -0.05 ], [ -0.487529401013578, -0.075 ], [ -0.485121972029924, -0.1 ], [ -0.481197010279427, -0.125 ], [ -0.475764641033457, -0.15 ], [ -0.475, -0.152759423744144 ], [ -0.468574202847777, -0.175 ], [ -0.459786607638981, -0.2 ], [ -0.45, -0.223605418687522 ], [ -0.449392948703294, -0.225 ], [ -0.43688829622309, -0.25 ], [ -0.425, -0.270958986549198 ], [ -0.422575669137881, -0.275 ], [ -0.405857401499094, -0.3 ], [ -0.4, -0.307938129062979 ], [ -0.386579699795463, -0.325 ], [ -0.375, -0.338468385092911 ], [ -0.364351717459487, -0.35 ], [ -0.35, -0.364351717459484 ], [ -0.338468385092915, -0.375 ], [ -0.325, -0.38657969979546 ], [ -0.307938129062984, -0.4 ], [ -0.3, -0.405857401499091 ], [ -0.275, -0.422575669137879 ], [ -0.270958986549204, -0.425 ], [ -0.25, -0.436888296223088 ], [ -0.225, -0.449392948703293 ], [ -0.22360541868753, -0.45 ], [ -0.2, -0.45978660763898 ], [ -0.175, -0.468574202847776 ], [ -0.152759423744157, -0.475 ], [ -0.15, -0.475764641033456 ] ], [ [ 1.175, 0.723541648931772 ], [ 1.2, 0.723256545853407 ], [ 1.225, 0.724905652570151 ], [ 1.225656486862863, 0.725 ], [ 1.25, 0.728797593192158 ], [ 1.275, 0.734965185769687 ], [ 1.3, 0.743524197407656 ], [ 1.314786005753704, 0.75 ], [ 1.325, 0.754916196483176 ], [ 1.35, 0.769600487451289 ], [ 1.357790554917981, 0.775 ], [ 1.375, 0.788270870103257 ], [ 1.388197741230045, 0.8 ], [ 1.4, 0.811816992428811 ], [ 1.411712724658713, 0.825 ], [ 1.425, 0.8421011231829 ], [ 1.430566008900313, 0.85 ], [ 1.445792187179434, 0.875 ], [ 1.45, 0.883143126702707 ], [ 1.458054742325792, 0.9 ], [ 1.467930847635843, 0.925 ], [ 1.475, 0.947447304642262 ], [ 1.475755033225799, 0.95 ], [ 1.481439688760961, 0.975 ], [ 1.485401006293537, 1.0 ], [ 1.487703747996469, 1.025 ], [ 1.488399812332677, 1.05 ], [ 1.487529401013579, 1.075 ], [ 1.485121972029926, 1.1 ], [ 1.481197010279431, 1.125 ], [ 1.475764641033461, 1.15 ], [ 1.475, 1.152759423744233 ], [ 1.468574202847783, 1.175 ], [ 1.459786607638988, 1.2 ], [ 1.45, 1.223605418687582 ], [ 1.449392948703303, 1.225 ], [ 1.4368882962231, 1.25 ], [ 1.425, 1.270958986549241 ], [ 1.422575669137893, 1.275 ], [ 1.405857401499106, 1.3 ], [ 1.4, 1.307938129063012 ], [ 1.386579699795478, 1.325 ], [ 1.375, 1.33846838509294 ], [ 1.364351717459504, 1.35 ], [ 1.35, 1.364351717459508 ], [ 1.338468385092935, 1.375 ], [ 1.325, 1.38657969979548 ], [ 1.307938129063007, 1.4 ], [ 1.3, 1.405857401499108 ], [ 1.275, 1.422575669137895 ], [ 1.270958986549235, 1.425 ], [ 1.25, 1.436888296223102 ], [ 1.225, 1.449392948703304 ], [ 1.223605418687573, 1.45 ], [ 1.2, 1.459786607638989 ], [ 1.175, 1.468574202847784 ], [ 1.152759423744218, 1.475 ], [ 1.15, 1.475764641033462 ], [ 1.125, 1.481197010279431 ], [ 1.1, 1.485121972029927 ], [ 1.075, 1.487529401013579 ], [ 1.05, 1.488399812332677 ], [ 1.025, 1.487703747996469 ], [ 1.0, 1.485401006293537 ], [ 0.975, 1.48143968876096 ], [ 0.95, 1.475755033225798 ], [ 0.947447304642275, 1.475 ], [ 0.925, 1.467930847635841 ], [ 0.9, 1.45805474232579 ], [ 0.883143126702714, 1.45 ], [ 0.875, 1.445792187179431 ], [ 0.85, 1.430566008900311 ], [ 0.842101123182905, 1.425 ], [ 0.825, 1.41171272465871 ], [ 0.811816992428815, 1.4 ], [ 0.8, 1.388197741230042 ], [ 0.78827087010326, 1.375 ], [ 0.775, 1.357790554917977 ], [ 0.769600487451291, 1.35 ], [ 0.754916196483178, 1.325 ], [ 0.75, 1.314786005753696 ], [ 0.743524197407657, 1.3 ], [ 0.734965185769688, 1.275 ], [ 0.728797593192159, 1.25 ], [ 0.725, 1.225656486862839 ], [ 0.724905652570151, 1.225 ], [ 0.723256545853407, 1.2 ], [ 0.723541648931772, 1.175 ], [ 0.725, 1.157960822798773 ], [ 0.725702326686455, 1.15 ], [ 0.72978290358184, 1.125 ], [ 0.735604726781661, 1.1 ], [ 0.743073951359762, 1.075 ], [ 0.75, 1.055911398503663 ], [ 0.752220981823691, 1.05 ], [ 0.763307953912922, 1.025 ], [ 0.775, 1.00169563345511 ], [ 0.775885053870617, 1.0 ], [ 0.790602911751814, 0.975 ], [ 0.8, 0.960457606205158 ], [ 0.807062711092454, 0.95 ], [ 0.825, 0.925558117473595 ], [ 0.825430396283878, 0.925 ], [ 0.846298443475844, 0.9 ], [ 0.85, 0.89585133139731 ], [ 0.86963847377243, 0.875 ], [ 0.875, 0.869638473772433 ], [ 0.895851331397306, 0.85 ], [ 0.9, 0.846298443475847 ], [ 0.925, 0.825430396283881 ], [ 0.925558117473591, 0.825 ], [ 0.95, 0.807062711092457 ], [ 0.960457606205153, 0.8 ], [ 0.975, 0.790602911751816 ], [ 1.0, 0.775885053870619 ], [ 1.001695633455104, 0.775 ], [ 1.025, 0.763307953912923 ], [ 1.05, 0.752220981823692 ], [ 1.055911398503654, 0.75 ], [ 1.075, 0.743073951359763 ], [ 1.1, 0.735604726781662 ], [ 1.125, 0.729782903581841 ], [ 1.15, 0.725702326686455 ], [ 1.157960822798733, 0.725 ], [ 1.175, 0.723541648931772 ] ] ] } }
]
}
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "PGA": 0.5 }, "geometry": { "type": "LineString", "coordinates": [ [ -0.225, -1.152880986549449 ], [ -0.2, -1.157369652051726 ], [ -0.175, -1.161262975497842 ], [ -0.15, -1.16457516228374 ], [ -0.125, -1.167318021852711 ], [ -0.1, -1.169501035466079 ], [ -0.075, -1.171131407800732 ], [ -0.05, -1.172214102729142 ], [ -0.025, -1.172751863478018 ], [ -0.0, -1.172745217202274 ], [ 0.025, -1.172192463849285 ], [ 0.05, -1.171089649022138 ], [ 0.075, -1.169430520377194 ], [ 0.1, -1.167206466908145 ], [ 0.125, -1.164406440272875 ], [ 0.15, -1.161016857107559 ], [ 0.175, -1.157021481040877 ], [ 0.2, -1.152401282865772 ], [ 0.211475830912827, -1.15 ], [ 0.225, -1.147228029571552 ], [ 0.25, -1.141482242662272 ], [ 0.275, -1.13505711289236 ], [ 0.3, -1.127921130753964 ], [ 0.309371326086614, -1.125 ], [ 0.325, -1.120189082085604 ], [ 0.35, -1.111781150797536 ], [ 0.375, -1.102565086217865 ], [ 0.381474338611673, -1.1 ], [ 0.4, -1.09270082412503 ], [ 0.425, -1.082018811355755 ], [ 0.440240478877663, -1.075 ], [ 0.45, -1.070504686458705 ], [ 0.475, -1.058174606436832 ], [ 0.490425866306591, -1.05 ], [ 0.5, -1.044894967455109 ], [ 0.525, -1.030671098697977 ], [ 0.534368621338229, -1.025 ], [ 0.55, -1.015417870761848 ], [ 0.573484982802382, -1.0 ], [ 0.575, -0.998987878548175 ], [ 0.6, -0.981411150875855 ], [ 0.608598515516774, -0.975 ], [ 0.625, -0.962463279684062 ], [ 0.640407878621492, -0.95 ], [ 0.65, -0.942000370156709 ], [ 0.669342954386787, -0.925 ], [ 0.675, -0.919842017255297 ], [ 0.695734177162055, -0.9 ], [ 0.7, -0.895736132043816 ], [ 0.719845379349609, -0.875 ], [ 0.725, -0.869331943860331 ], [ 0.741884498639096, -0.85 ], [ 0.75, -0.840138543198308 ], [ 0.762011794645892, -0.825 ], [ 0.775, -0.807459277708337 ], [ 0.780346075399313, -0.8 ], [ 0.797006622270986, -0.775 ], [ 0.8, -0.77015741943836 ], [ 0.812123275621107, -0.75 ], [ 0.825, -0.726267775258848 ], [ 0.825671889488144, -0.725 ], [ 0.837866678531936, -0.7 ], [ 0.848592417325314, -0.675 ], [ 0.85, -0.671337673350404 ], [ 0.858064213625063, -0.65 ], [ 0.866205854464251, -0.625 ], [ 0.873048811394574, -0.6 ], [ 0.875, -0.591457555932848 ], [ 0.878721953250715, -0.575 ], [ 0.883210417434429, -0.55 ], [ 0.886512383646184, -0.525 ], [ 0.888662309077553, -0.5 ], [ 0.889689959256828, -0.475 ], [ 0.889620739792395, -0.45 ], [ 0.888475998287942, -0.425 ], [ 0.886273299699244, -0.4 ], [ 0.883026678101683, -0.375 ], [ 0.878746867571539, -0.35 ], [ 0.875, -0.332444560731506 ], [ 0.873479957699889, -0.325 ], [ 0.867313506721852, -0.3 ], [ 0.860160545360214, -0.275 ], [ 0.852022542573952, -0.25 ], [ 0.85, -0.244524060867295 ], [ 0.84306945422373, -0.225 ], [ 0.833209204039387, -0.2 ], [ 0.825, -0.181090692997733 ], [ 0.82245045646987, -0.175 ], [ 0.810944279972054, -0.15 ], [ 0.8, -0.128031536628394 ], [ 0.798539154681329, -0.125 ], [ 0.785455477256442, -0.1 ], [ 0.775, -0.081362134936051 ], [ 0.771536950966344, -0.075 ], [ 0.756941085209603, -0.05 ], [ 0.75, -0.038840286812161 ], [ 0.741621784405968, -0.025 ], [ 0.725580148667076, -0.0 ], [ 0.725, 0.000852440045937 ], [ 0.708957413239268, 0.025 ], [ 0.7, 0.037808165425516 ], [ 0.691654849519851, 0.05 ], [ 0.675, 0.073178721357897 ], [ 0.673715771899992, 0.075 ], [ 0.655222959925022, 0.1 ], [ 0.65, 0.106763880204729 ], [ 0.636141561883535, 0.125 ], [ 0.625, 0.139089737926901 ], [ 0.616487108134107, 0.15 ], [ 0.6, 0.170361614022284 ], [ 0.596284332793011, 0.175 ], [ 0.575554177084192, 0.2 ], [ 0.575, 0.200646996727061 ], [ 0.554306406738019, 0.225 ], [ 0.55, 0.229924554535135 ], [ 0.532538523562204, 0.25 ], [ 0.525, 0.258444061924287 ], [ 0.510260319684009, 0.275 ], [ 0.5, 0.286257753120188 ], [ 0.487477271280735, 0.3 ], [ 0.475, 0.313410543194687 ], [ 0.464190588581329, 0.325 ], [ 0.45, 0.339940702196038 ], [ 0.44039720913016, 0.35 ], [ 0.425, 0.365880424594708 ], [ 0.416089734004437, 0.375 ], [ 0.4, 0.391256305612034 ], [ 0.391256305612031, 0.4 ], [ 0.375, 0.41608973400444 ], [ 0.365880424594704, 0.425 ], [ 0.35, 0.440397209130164 ], [ 0.339940702196034, 0.45 ], [ 0.325, 0.464190588581333 ], [ 0.313410543194683, 0.475 ], [ 0.3, 0.487477271280739 ], [ 0.286257753120185, 0.5 ], [ 0.275, 0.510260319684013 ], [ 0.258444061924283, 0.525 ], [ 0.25, 0.532538523562207 ], [ 0.229924554535131, 0.55 ], [ 0.225, 0.554306406738023 ], [ 0.200646996727056, 0.575 ], [ 0.2, 0.575554177084195 ], [ 0.175, 0.596284332793013 ], [ 0.170361614022279, 0.6 ], [ 0.15, 0.616487108134109 ], [ 0.139089737926897, 0.625 ], [ 0.125, 0.636141561883538 ], [ 0.106763880204724, 0.65 ], [ 0.1, 0.655222959925025 ], [ 0.075, 0.673715771899995 ], [ 0.073178721357892, 0.675 ], [ 0.05, 0.691654849519853 ], [ 0.037808165425511, 0.7 ], [ 0.025, 0.70895741323927 ], [ 0.000852440045932, 0.725 ], [ -0.0, 0.725580148667079 ], [ -0.025, 0.741621784405971 ], [ -0.038840286812167, 0.75 ], [ -0.05, 0.756941085209605 ], [ -0.075, 0.771536950966345 ], [ -0.081362134936057, 0.775 ], [ -0.1, 0.785455477256443 ], [ -0.125, 0.798539154681331 ], [ -0.128031536628401, 0.8 ], [ -0.15, 0.810944279972056 ], [ -0.175, 0.822450456469871 ], [ -0.181090692997742, 0.825 ], [ -0.2, 0.833209204039389 ], [ -0.225, 0.843069454223731 ], [ -0.244524060867305, 0.85 ], [ -0.25, 0.852022542573954 ], [ -0.275, 0.860160545360215 ], [ -0.3, 0.867313506721853 ], [ -0.325, 0.87347995769989 ], [ -0.332444560731523, 0.875 ], [ -0.35, 0.87874686757154 ], [ -0.375, 0.883026678101683 ], [ -0.4, 0.886273299699244 ], [ -0.425, 0.888475998287942 ], [ -0.45, 0.889620739792395 ], [ -0.475, 0.889689959256828 ], [ -0.5, 0.888662309077553 ], [ -0.525, 0.886512383646183 ], [ -0.55, 0.883210417434429 ], [ -0.575, 0.878721953250714 ], [ -0.591457555932832, 0.875 ], [ -0.6, 0.873048811394573 ], [ -0.625, 0.86620585446425 ], [ -0.65, 0.858064213625062 ], [ -0.671337673350395, 0.85 ], [ -0.675, 0.848592417325313 ], [ -0.7, 0.837866678531934 ], [ -0.725, 0.825671889488143 ], [ -0.726267775258841, 0.825 ], [ -0.75, 0.812123275621105 ], [ -0.770157419438354, 0.8 ], [ -0.775, 0.797006622270984 ], [ -0.8, 0.78034607539931 ], [ -0.807459277708332, 0.775 ], [ -0.825, 0.76201179464589 ], [ -0.840138543198303, 0.75 ], [ -0.85, 0.741884498639093 ], [ -0.869331943860327, 0.725 ], [ -0.875, 0.719845379349605 ], [ -0.895736132043812, 0.7 ], [ -0.9, 0.695734177162052 ], [ -0.919842017255294, 0.675 ], [ -0.925, 0.669342954386783 ], [ -0.942000370156706, 0.65 ], [ -0.95, 0.640407878621488 ], [ -0.962463279684059, 0.625 ], [ -0.975, 0.608598515516769 ], [ -0.981411150875852, 0.6 ], [ -0.998987878548172, 0.575 ], [ -1.0, 0.573484982802376 ], [ -1.015417870761846, 0.55 ], [ -1.025, 0.534368621338223 ], [ -1.030671098697975, 0.525 ], [ -1.044894967455107, 0.5 ], [ -1.05, 0.490425866306584 ], [ -1.05817460643683, 0.475 ], [ -1.070504686458703, 0.45 ], [ -1.075, 0.440240478877655 ], [ -1.082018811355754, 0.425 ], [ -1.092700824125028, 0.4 ], [ -1.1, 0.381474338611664 ], [ -1.102565086217864, 0.375 ], [ -1.111781150797535, 0.35 ], [ -1.120189082085603, 0.325 ], [ -1.125, 0.309371326086603 ], [ -1.127921130753963, 0.3 ], [ -1.135057112892359, 0.275 ], [ -1.141482242662271, 0.25 ], [ -1.147228029571552, 0.225 ], [ -1.15, 0.211475830912809 ], [ -1.152401282865771, 0.2 ], [ -1.157021481040877, 0.175 ], [ -1.161016857107559, 0.15 ], [ -1.164406440272874, 0.125 ], [ -1.167206466908145, 0.1 ], [ -1.169430520377194, 0.075 ], [ -1.171089649022137, 0.05 ], [ -1.172192463849284, 0.025 ], [ -1.172745217202274, -0.0 ], [ -1.172751863478018, -0.025 ], [ -1.172214102729142, -0.05 ], [ -1.171131407800732, -0.075 ], [ -1.16950103546608, -0.1 ], [ -1.167318021852712, -0.125 ], [ -1.16457516228374, -0.15 ], [ -1.161262975497842, -0.175 ], [ -1.157369652051727, -0.2 ], [ -1.15288098654945, -0.225 ], [ -1.15, -0.239188705892138 ], [ -1.147856240909292, -0.25 ], [ -1.142320730022676, -0.275 ], [ -1.136154845809295, -0.3 ], [ -1.129334671259499, -0.325 ], [ -1.125, -0.339545104708267 ], [ -1.121936797160037, -0.35 ], [ -1.113993139680381, -0.375 ], [ -1.105330282240355, -0.4 ], [ -1.1, -0.414272675945723 ], [ -1.096039588754929, -0.425 ], [ -1.086145710644112, -0.45 ], [ -1.075441929543312, -0.475 ], [ -1.075, -0.475977918087817 ], [ -1.064208965703732, -0.5 ], [ -1.052110798817831, -0.525 ], [ -1.05, -0.529140229956597 ], [ -1.039382980063991, -0.55 ], [ -1.025752243084551, -0.575 ], [ -1.025, -0.576318963249061 ], [ -1.011458161744389, -0.6 ], [ -1.0, -0.618819861691734 ], [ -0.996215561041146, -0.625 ], [ -0.980143376989938, -0.65 ], [ -0.975, -0.657624515898976 ], [ -0.963159097987663, -0.675 ], [ -0.95, -0.693336791433769 ], [ -0.945154039067111, -0.7 ], [ -0.92611950828593, -0.725 ], [ -0.925, -0.726418072623357 ], [ -0.906048676830297, -0.75 ], [ -0.9, -0.757219330180854 ], [ -0.884785478126877, -0.775 ], [ -0.875, -0.786008482768798 ], [ -0.862256158223604, -0.8 ], [ -0.85, -0.812998806835165 ], [ -0.838366479518757, -0.825 ], [ -0.825, -0.838366479518754 ], [ -0.812998806835169, -0.85 ], [ -0.8, -0.8622561582236 ], [ -0.786008482768802, -0.875 ], [ -0.775, -0.884785478126874 ], [ -0.757219330180858, -0.9 ], [ -0.75, -0.906048676830294 ], [ -0.726418072623362, -0.925 ], [ -0.725, -0.926119508285928 ], [ -0.7, -0.945154039067108 ], [ -0.693336791433774, -0.95 ], [ -0.675, -0.96315909798766 ], [ -0.657624515898982, -0.975 ], [ -0.65, -0.980143376989935 ], [ -0.625, -0.996215561041144 ], [ -0.61881986169174, -1.0 ], [ -0.6, -1.011458161744386 ], [ -0.576318963249067, -1.025 ], [ -0.575, -1.025752243084549 ], [ -0.55, -1.039382980063989 ], [ -0.529140229956604, -1.05 ], [ -0.525, -1.05211079881783 ], [ -0.5, -1.064208965703731 ], [ -0.475977918087825, -1.075 ], [ -0.475, -1.07544192954331 ], [ -0.45, -1.08614571064411 ], [ -0.425, -1.096039588754927 ], [ -0.414272675945733, -1.1 ], [ -0.4, -1.105330282240354 ], [ -0.375, -1.11399313968038 ], [ -0.35, -1.121936797160036 ], [ -0.339545104708279, -1.125 ], [ -0.325, -1.129334671259498 ], [ -0.3, -1.136154845809294 ], [ -0.275, -1.142320730022675 ], [ -0.25, -1.147856240909291 ], [ -0.239188705892156, -1.15 ], [ -0.225, -1.152880986549449 ] ] } },
{ "type": "Feature", "properties": { "PGA": 1.0 }, "geometry": { "type": "LineString", "coordinates": [ [ -0.175, -0.802617462485206 ], [ -0.15, -0.807167006909721 ], [ -0.125, -0.810871479613424 ], [ -0.1, -0.813741166119541 ], [ -0.075, -0.815782660137741 ], [ -0.05, -0.816998858886562 ], [ -0.025, -0.817388927958831 ], [ -0.0, -0.816948234527189 ], [ 0.025, -0.815668247239462 ], [ 0.05, -0.813536400659232 ], [ 0.075, -0.810535921553582 ], [ 0.1, -0.806645613703628 ], [ 0.125, -0.801839597197243 ], [ 0.133055238866764, -0.8 ], [ 0.15, -0.796097328168235 ], [ 0.175, -0.789376050752097 ], [ 0.2, -0.781626935818596 ], [ 0.218843868117458, -0.775 ], [ 0.225, -0.772797085015057 ], [ 0.25, -0.76281637223206 ], [ 0.275, -0.75162356096789 ], [ 0.278312542394184, -0.75 ], [ 0.3, -0.739076486039909 ], [ 0.325, -0.725120720967325 ], [ 0.325200179775617, -0.725 ], [ 0.35, -0.709495239017367 ], [ 0.363901157454851, -0.7 ], [ 0.375, -0.692084191597444 ], [ 0.397077002750513, -0.675 ], [ 0.4, -0.672619299925589 ], [ 0.425, -0.650690107749335 ], [ 0.425735935407929, -0.65 ], [ 0.45, -0.625752150341716 ], [ 0.450705398885803, -0.625 ], [ 0.472558385186576, -0.6 ], [ 0.475, -0.596969989671079 ], [ 0.491702014918141, -0.575 ], [ 0.5, -0.562974041584877 ], [ 0.50848890930571, -0.55 ], [ 0.523136199185221, -0.525 ], [ 0.525, -0.521446789984194 ], [ 0.535733465965739, -0.5 ], [ 0.546542599467036, -0.475 ], [ 0.55, -0.465702257236788 ], [ 0.555604559576041, -0.45 ], [ 0.563040099825429, -0.425 ], [ 0.568955265601644, -0.4 ], [ 0.573409043759394, -0.375 ], [ 0.575, -0.362100208579785 ], [ 0.576444542890372, -0.35 ], [ 0.578121914297142, -0.325 ], [ 0.57849821887595, -0.3 ], [ 0.577614460319002, -0.275 ], [ 0.57550855169425, -0.25 ], [ 0.575, -0.246203550051349 ], [ 0.572199010549849, -0.225 ], [ 0.567728017219686, -0.2 ], [ 0.562131087942637, -0.175 ], [ 0.555438736265752, -0.15 ], [ 0.55, -0.132563601833905 ], [ 0.547662591236765, -0.125 ], [ 0.538804008431011, -0.1 ], [ 0.528934572817977, -0.075 ], [ 0.525, -0.066020965747039 ], [ 0.518017534108073, -0.05 ], [ 0.506107865346114, -0.025 ], [ 0.5, -0.013187706271573 ], [ 0.493194756445339, -0.0 ], [ 0.47931394319671, 0.025 ], [ 0.475, 0.032249935263828 ], [ 0.464424812295982, 0.05 ], [ 0.45, 0.072830043080849 ], [ 0.448623025312237, 0.075 ], [ 0.431781030611387, 0.1 ], [ 0.425, 0.109566278878942 ], [ 0.413977714717513, 0.125 ], [ 0.4, 0.143685785141437 ], [ 0.39522673659516, 0.15 ], [ 0.375494803259869, 0.175 ], [ 0.375, 0.175601444746728 ], [ 0.35465340952996, 0.2 ], [ 0.35, 0.205385779034977 ], [ 0.33276925780032, 0.225 ], [ 0.325, 0.233563525718622 ], [ 0.309791847168961, 0.25 ], [ 0.3, 0.260279871231943 ], [ 0.285655936203564, 0.275 ], [ 0.275, 0.285655936203568 ], [ 0.260279871231939, 0.3 ], [ 0.25, 0.309791847168964 ], [ 0.233563525718618, 0.325 ], [ 0.225, 0.332769257800324 ], [ 0.205385779034973, 0.35 ], [ 0.2, 0.354653409529963 ], [ 0.175601444746724, 0.375 ], [ 0.175, 0.375494803259872 ], [ 0.15, 0.395226736595162 ], [ 0.143685785141432, 0.4 ], [ 0.125, 0.413977714717515 ], [ 0.109566278878937, 0.425 ], [ 0.1, 0.431781030611389 ], [ 0.075, 0.448623025312239 ], [ 0.072830043080843, 0.45 ], [ 0.05, 0.464424812295984 ], [ 0.032249935263822, 0.475 ], [ 0.025, 0.479313943196712 ], [ -0.0, 0.493194756445341 ], [ -0.013187706271579, 0.5 ], [ -0.025, 0.506107865346116 ], [ -0.05, 0.518017534108075 ], [ -0.066020965747047, 0.525 ], [ -0.075, 0.528934572817979 ], [ -0.1, 0.538804008431012 ], [ -0.125, 0.547662591236766 ], [ -0.132563601833916, 0.55 ], [ -0.15, 0.555438736265753 ], [ -0.175, 0.562131087942638 ], [ -0.2, 0.567728017219687 ], [ -0.225, 0.57219901054985 ], [ -0.246203550051376, 0.575 ], [ -0.25, 0.57550855169425 ], [ -0.275, 0.577614460319002 ], [ -0.3, 0.57849821887595 ], [ -0.325, 0.578121914297142 ], [ -0.35, 0.576444542890372 ], [ -0.362100208579757, 0.575 ], [ -0.375, 0.573409043759393 ], [ -0.4, 0.568955265601643 ], [ -0.425, 0.563040099825428 ], [ -0.45, 0.55560455957604 ], [ -0.465702257236778, 0.55 ], [ -0.475, 0.546542599467035 ], [ -0.5, 0.535733465965737 ], [ -0.521446789984187, 0.525 ], [ -0.525, 0.523136199185219 ], [ -0.55, 0.508488909305708 ], [ -0.562974041584872, 0.5 ], [ -0.575, 0.491702014918139 ], [ -0.596969989671075, 0.475 ], [ -0.6, 0.472558385186573 ], [ -0.625, 0.4507053988858 ], [ -0.625752150341712, 0.45 ], [ -0.65, 0.425735935407926 ], [ -0.650690107749332, 0.425 ], [ -0.672619299925586, 0.4 ], [ -0.675, 0.397077002750509 ], [ -0.692084191597441, 0.375 ], [ -0.7, 0.363901157454846 ], [ -0.709495239017365, 0.35 ], [ -0.725, 0.325200179775611 ], [ -0.725120720967323, 0.325 ], [ -0.739076486039907, 0.3 ], [ -0.75, 0.278312542394177 ], [ -0.751623560967888, 0.275 ], [ -0.762816372232058, 0.25 ], [ -0.772797085015055, 0.225 ], [ -0.775, 0.218843868117447 ], [ -0.781626935818594, 0.2 ], [ -0.789376050752096, 0.175 ], [ -0.796097328168234, 0.15 ], [ -0.8, 0.133055238866748 ], [ -0.801839597197242, 0.125 ], [ -0.806645613703627, 0.1 ], [ -0.810535921553582, 0.075 ], [ -0.813536400659232, 0.05 ], [ -0.815668247239462, 0.025 ], [ -0.816948234527188, -0.0 ], [ -0.817388927958831, -0.025 ], [ -0.816998858886562, -0.05 ], [ -0.815782660137741, -0.075 ], [ -0.813741166119541, -0.1 ], [ -0.810871479613425, -0.125 ], [ -0.807167006909721, -0.15 ], [ -0.802617462485207, -0.175 ], [ -0.8, -0.187143807138588 ], [ -0.797225114624551, -0.2 ], [ -0.790977615754359, -0.225 ], [ -0.783838854034723, -0.25 ], [ -0.775783611537485, -0.275 ], [ -0.775, -0.27720145056949 ], [ -0.766814803083945, -0.3 ], [ -0.756875866808608, -0.325 ], [ -0.75, -0.340786583323933 ], [ -0.745932850665444, -0.35 ], [ -0.733951743577586, -0.375 ], [ -0.725, -0.392208713664635 ], [ -0.720872077291869, -0.4 ], [ -0.706639556882792, -0.425 ], [ -0.7, -0.435877388373392 ], [ -0.691176065828691, -0.45 ], [ -0.675, -0.474157507073059 ], [ -0.67442029837107, -0.475 ], [ -0.656227356383019, -0.5 ], [ -0.65, -0.508068809388504 ], [ -0.636502442391054, -0.525 ], [ -0.625, -0.538663161589781 ], [ -0.615101089696331, -0.55 ], [ -0.6, -0.566455713434066 ], [ -0.591832924538053, -0.575 ], [ -0.575, -0.59183292453805 ], [ -0.56645571343407, -0.6 ], [ -0.55, -0.615101089696328 ], [ -0.538663161589785, -0.625 ], [ -0.525, -0.636502442391051 ], [ -0.508068809388508, -0.65 ], [ -0.5, -0.656227356383016 ], [ -0.475, -0.674420298371068 ], [ -0.474157507073064, -0.675 ], [ -0.45, -0.691176065828689 ], [ -0.435877388373397, -0.7 ], [ -0.425, -0.70663955688279 ], [ -0.4, -0.720872077291867 ], [ -0.392208713664641, -0.725 ], [ -0.375, -0.733951743577584 ], [ -0.35, -0.745932850665442 ], [ -0.340786583323941, -0.75 ], [ -0.325, -0.756875866808607 ], [ -0.3, -0.766814803083944 ], [ -0.277201450569501, -0.775 ], [ -0.275, -0.775783611537484 ], [ -0.25, -0.783838854034722 ], [ -0.225, -0.790977615754358 ], [ -0.2, -0.79722511462455 ], [ -0.187143807138605, -0.8 ], [ -0.175, -0.802617462485206 ] ] } },
{ "type": "Feature", "properties": { "PGA": 1.5 }, "geometry": { "type": "LineString", "coordinates": [ [ -0.15, -0.475764641033456 ], [ -0.125, -0.481197010279427 ], [ -0.1, -0.485121972029924 ], [ -0.075, -0.487529401013578 ], [ -0.05, -0.488399812332677 ], [ -0.025, -0.487703747996471 ], [ -0.0, -0.48540100629354 ], [ 0.025, -0.481439688760965 ], [ 0.05, -0.475755033225805 ], [ 0.052552695357665, -0.475 ], [ 0.075, -0.46793084763585 ], [ 0.1, -0.458054742325802 ], [ 0.116856873297251, -0.45 ], [ 0.125, -0.445792187179445 ], [ 0.15, -0.430566008900327 ], [ 0.157898876817071, -0.425 ], [ 0.175, -0.411712724658731 ], [ 0.188183007571166, -0.4 ], [ 0.2, -0.388197741230068 ], [ 0.211729129896725, -0.375 ], [ 0.225, -0.357790554918011 ], [ 0.230399512548697, -0.35 ], [ 0.245083803516813, -0.325 ], [ 0.25, -0.31478600575375 ], [ 0.256475802592336, -0.3 ], [ 0.265034814230307, -0.275 ], [ 0.271202406807838, -0.25 ], [ 0.275, -0.225656486863012 ], [ 0.275094347429846, -0.225 ], [ 0.276743454146592, -0.2 ], [ 0.276458351068229, -0.175 ], [ 0.275, -0.157960822798485 ], [ 0.274297673313548, -0.15 ], [ 0.270217096418164, -0.125 ], [ 0.264395273218343, -0.1 ], [ 0.256926048640244, -0.075 ], [ 0.25, -0.055911398503594 ], [ 0.247779018176317, -0.05 ], [ 0.236692046087086, -0.025 ], [ 0.225, -0.00169563345506 ], [ 0.224114946129393, -0.0 ], [ 0.209397088248197, 0.025 ], [ 0.2, 0.03954239379488 ], [ 0.192937288907559, 0.05 ], [ 0.175, 0.074441882526439 ], [ 0.174569603716137, 0.075 ], [ 0.153701556524171, 0.1 ], [ 0.15, 0.104148668602716 ], [ 0.130361526227587, 0.125 ], [ 0.125, 0.13036152622759 ], [ 0.104148668602712, 0.15 ], [ 0.1, 0.153701556524174 ], [ 0.075, 0.17456960371614 ], [ 0.074441882526434, 0.175 ], [ 0.05, 0.192937288907561 ], [ 0.039542393794874, 0.2 ], [ 0.025, 0.209397088248199 ], [ -0.0, 0.224114946129395 ], [ -0.001695633455067, 0.225 ], [ -0.025, 0.236692046087088 ], [ -0.05, 0.247779018176319 ], [ -0.055911398503604, 0.25 ], [ -0.075, 0.256926048640245 ], [ -0.1, 0.264395273218344 ], [ -0.125, 0.270217096418165 ], [ -0.15, 0.274297673313549 ], [ -0.157960822798524, 0.275 ], [ -0.175, 0.276458351068229 ], [ -0.2, 0.276743454146592 ], [ -0.225, 0.275094347429846 ], [ -0.225656486862988, 0.275 ], [ -0.25, 0.271202406807837 ], [ -0.275, 0.265034814230306 ], [ -0.3, 0.256475802592334 ], [ -0.314786005753743, 0.25 ], [ -0.325, 0.245083803516811 ], [ -0.35, 0.230399512548694 ], [ -0.357790554918006, 0.225 ], [ -0.375, 0.211729129896722 ], [ -0.388197741230064, 0.2 ], [ -0.4, 0.188183007571162 ], [ -0.411712724658728, 0.175 ], [ -0.425, 0.157898876817066 ], [ -0.430566008900325, 0.15 ], [ -0.445792187179443, 0.125 ], [ -0.45, 0.116856873297243 ], [ -0.4580547423258, 0.1 ], [ -0.467930847635849, 0.075 ], [ -0.475, 0.052552695357653 ], [ -0.475755033225804, 0.05 ], [ -0.481439688760965, 0.025 ], [ -0.48540100629354, -0.0 ], [ -0.48770374799647, -0.025 ], [ -0.488399812332677, -0.05 ], [ -0.487529401013578, -0.075 ], [ -0.485121972029924, -0.1 ], [ -0.481197010279427, -0.125 ], [ -0.475764641033457, -0.15 ], [ -0.475, -0.152759423744144 ], [ -0.468574202847777, -0.175 ], [ -0.459786607638981, -0.2 ], [ -0.45, -0.223605418687522 ], [ -0.449392948703294, -0.225 ], [ -0.43688829622309, -0.25 ], [ -0.425, -0.270958986549198 ], [ -0.422575669137881, -0.275 ], [ -0.405857401499094, -0.3 ], [ -0.4, -0.307938129062979 ], [ -0.386579699795463, -0.325 ], [ -0.375, -0.338468385092911 ], [ -0.364351717459487, -0.35 ], [ -0.35, -0.364351717459484 ], [ -0.338468385092915, -0.375 ], [ -0.325, -0.38657969979546 ], [ -0.307938129062984, -0.4 ], [ -0.3, -0.405857401499091 ], [ -0.275, -0.422575669137879 ], [ -0.270958986549204, -0.425 ], [ -0.25, -0.436888296223088 ], [ -0.225, -0.449392948703293 ], [ -0.22360541868753, -0.45 ], [ -0.2, -0.45978660763898 ], [ -0.175, -0.468574202847776 ], [ -0.152759423744157, -0.475 ], [ -0.15, -0.475764641033456 ] ] } }
]
}
......@@ -4,7 +4,9 @@ Set of test cases for the shakemap class
import os
import unittest
import h5py
import rasterio
import numpy as np
from geopandas import GeoDataFrame
from shakyground2.earthquake import Earthquake
from shakyground2.site_model import SiteModel
from shakyground2.shakemap import Shakemap
......@@ -105,3 +107,191 @@ class ShakemapTestCase(unittest.TestCase):
def tearDown(self):
# Delete the cache file
os.remove(self.cache_test_file)
class ShakemapExportersTestCase(unittest.TestCase):
"""
General test case for the shakemap exporters - synthetic 2D shakemap based on the function
matplotlib contour demo (https://tinyurl.com/22sdmajk)
"""
def setUp(self):
self.site_model = SiteModel.from_bbox(
[-3.0, -2.0, 3.0, 2.0], 0.025, 0.025, vs30=800.0, z1pt0=10.0
)
self.shakemap = Shakemap(
Earthquake("XYZ", 0.0, 0.0, 10.0, 6.0),
self.site_model,
[("B14", GSIM_LIST["BindiEtAl2014Rjb"](), 1.0)],
"ASC",
)
# 2D smooth function for contouring
z1 = np.exp(-self.site_model["lon"] ** 2 - self.site_model["lat"] ** 2)
z2 = np.exp(-((self.site_model["lon"] - 1) ** 2) - (self.site_model["lat"] - 1) ** 2)
self.dummy = (z1 - z2) * 2
def test_transform_to_raster(self):
# Test transformation to raster
# Map the 2D function (double peaked) into a shakemap output format
results = np.zeros(self.site_model.shape, dtype=np.dtype([("PGA", np.float64)]))
results["PGA"] = np.log(np.fabs(self.dummy) + 0.001)
results_as_raster = self.shakemap._transform_to_raster("PGA", results)
# Verify that this gives the expected results
delta = 0.025
x = np.arange(-3.0, 3.0 + delta, delta)
y = np.arange(-2.0, 2.0 + delta, delta)
X, Y = np.meshgrid(x, y)
Z1 = np.exp(-(X ** 2.0) - Y ** 2)
Z2 = np.exp(-((X - 1) ** 2) - (Y - 1) ** 2)
Z = np.fabs((Z1 - Z2) * 2) + 0.001
np.testing.assert_array_almost_equal(results_as_raster, Z)
def test_incorrect_raster_formulations(self):
# Tests the cases where the raster cannot be built
# Case 1 - No bbox properties in Site Model
site_model = SiteModel.from_bbox(
[-3.0, -2.0, 3.0, 2.0], 0.025, 0.025, vs30=800.0, z1pt0=10.0
)
# Re-set bounding box properties
site_model.bbox_properties = {}
shakemap = Shakemap(
Earthquake("XYZ", 0.0, 0.0, 10.0, 6.0),
site_model,
[("B14", GSIM_LIST["BindiEtAl2014Rjb"](), 1.0)],
"ASC",
)
results = np.zeros(site_model.shape, dtype=np.dtype([("PGA", np.float64)]))
results["PGA"] = np.log(np.fabs(self.dummy) + 0.001)
with self.assertRaises(ValueError) as ve:
shakemap._transform_to_raster("PGA", results)
self.assertEqual(
str(ve.exception),
"No bounding bbox properties found in SiteModel - cannot export to raster format",
)
# Case 2 - Site Model has difference size to shakemap
site_model2 = SiteModel.from_bbox(
[-3.0, -2.0, 3.0, 2.0], 0.5, 0.5, vs30=800.0, z1pt0=10.0
)
# Re-set bounding box properties
shakemap2 = Shakemap(
Earthquake("XYZ", 0.0, 0.0, 10.0, 6.0),
site_model2,
[("B14", GSIM_LIST["BindiEtAl2014Rjb"](), 1.0)],
"ASC",
)
with self.assertRaises(AssertionError) as ae:
shakemap2._transform_to_raster("PGA", results)
self.assertEqual(
str(ae.exception), "Shakemap dimensions do not correspond to site model"
)
def test_export_to_raster_geotiff_file(self):
# Test raster export to geotiff as a round trip
results = np.zeros(self.site_model.shape, dtype=np.dtype([("PGA", np.float64)]))
results["PGA"] = np.copy(self.dummy)
results_as_raster = self.shakemap._transform_to_raster("PGA", results)
geotiff_fname = os.path.join(DATA_PATH, "dummy_raster.tif")
self.shakemap.to_geotiff(results, "PGA", geotiff_fname)
# Load back in the geotiff and verify that the data content is the same
data = rasterio.open(geotiff_fname)
self.assertEqual(data.height, results_as_raster.shape[0])
self.assertEqual(data.width, results_as_raster.shape[1])
np.testing.assert_array_almost_equal(data.read(1), results_as_raster)
os.remove(geotiff_fname)
def test_export_to_raster_geotiff_bytes(self):
# Test raster export to geotiff as an in memory file - compares this against the
# case that the raster is exported directly to file and verifies that the relevant
# content is the same
results = np.zeros(self.site_model.shape, dtype=np.dtype([("PGA", np.float64)]))
results["PGA"] = np.copy(self.dummy)
data_bytes = self.shakemap.to_geotiff(results, "PGA")
byte_shakemap_file = os.path.join(DATA_PATH, "dummy_shakemap_from_bytes.tif")
with open(byte_shakemap_file, "wb") as f:
f.write(data_bytes)
# Verify that this produces the same shakemap as direct export
shakemap_file = os.path.join(DATA_PATH, "dummy_shakemap.tif")
self.shakemap.to_geotiff(results, "PGA", shakemap_file)
# Compare the two files
raster_1 = rasterio.open(byte_shakemap_file)
raster_2 = rasterio.open(shakemap_file)
# Compare bounding boxes
for pos in ["left", "right", "top", "bottom"]:
self.assertAlmostEqual(getattr(raster_1.bounds, pos), getattr(raster_2.bounds, pos))
# Compare dimensions
self.assertEqual(raster_1.width, raster_2.width)
self.assertEqual(raster_1.height, raster_2.height)
for i in range(2):
self.assertAlmostEqual(raster_1.res[i], raster_2.res[i])
# Check data are equal
np.testing.assert_array_almost_equal(raster_1.read(1), raster_2.read(1))
# Remove testing diles
os.remove(byte_shakemap_file)
os.remove(shakemap_file)
def test_export_to_esri_ascii(self):
# Test raster export to ESRI ascii as a round trip
results = np.zeros(self.site_model.shape, dtype=np.dtype([("PGA", np.float64)]))
results["PGA"] = np.copy(self.dummy)
results_as_raster = self.shakemap._transform_to_raster("PGA", results, is_stddev=True)
ascii_fname = os.path.join(DATA_PATH, "dummy_raster.asc")
self.shakemap.to_esri_ascii(results, "PGA", ascii_fname, is_stddev=True)
# Reload in the ascii file and verify that the data content is the same
data = np.genfromtxt(ascii_fname, delimiter=" ", skip_header=5)
np.testing.assert_array_almost_equal(data, results_as_raster, 4)
os.remove(ascii_fname)
def _compare_contour_geodataframes(
self, dframe1: GeoDataFrame, dframe2: GeoDataFrame, imt: str, tol: float = 1.0e-7
):
"""
Checks that both the geodataframes are equal for a given intensity measure type
"""
self.assertIsInstance(dframe1, GeoDataFrame)
self.assertIsInstance(dframe2, GeoDataFrame)
np.testing.assert_array_almost_equal(
dframe1[imt].to_numpy(), dframe1[imt].to_numpy(), tol
)