shakemap-modules 1.0.7__tar.gz → 1.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {shakemap-modules-1.0.7/src/shakemap_modules.egg-info → shakemap-modules-1.0.9}/PKG-INFO +15 -2
- shakemap-modules-1.0.9/README.md +20 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/pyproject.toml +1 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/dyfi.py +1 -2
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/model.py +6 -6
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/modules.conf +3 -3
- shakemap-modules-1.0.9/src/shakemap_modules/utils/smclone.py +620 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9/src/shakemap_modules.egg-info}/PKG-INFO +15 -2
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules.egg-info/SOURCES.txt +1 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules.egg-info/requires.txt +1 -0
- shakemap-modules-1.0.7/README.md +0 -8
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/LICENSE.md +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/MANIFEST.in +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/setup.cfg +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/setup.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/base/base.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/base/cli.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/base/transfer_base.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/assemble.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/associate.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/augment.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/contour.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/coverage.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/exception.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/gridxml.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/history.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/info.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/kml.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/makecsv.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/mapping.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/plotregr.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/raster.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/rupture.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/save.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/shape.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/sleep.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/sm_select.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/stations.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/transfer_email.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/transfer_pdl.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/transfer_scp.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/uncertaintymaps.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/xtestimage.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/xtestplot.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/xtestplot_multi.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/coremods/xtestplot_spectra.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/fdsn_networks.json +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/WGS1984.prj +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/mi.lyr +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/mi.shp.xml +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/pga.lyr +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/pga.shp.xml +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/pgv.lyr +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/pgv.shp.xml +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/psa0p3.lyr +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/psa0p3.shp.xml +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/psa1p0.lyr +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/psa1p0.shp.xml +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/psa3p0.lyr +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gis/psa3p0.shp.xml +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/gmpe_sets.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/australia.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/california.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/chile.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/china.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/europe_share.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/greece.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/hawaii.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/induced.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/italy.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/japan.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/new_zealand.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/taiwan.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/layers/turkey.wkt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/logging.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/loggingspec.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/circle.png +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/intensity_legend.png +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/map_strings.cn +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/map_strings.en +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/map_strings.en-AU +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/map_strings.en-CA +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/map_strings.es +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/map_strings.fr-CA +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/map_strings.it +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/map_strings.tw +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/mapping/triangle.png +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/migrate.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/migratespec.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/model.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/modelspec.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/modulesspec.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/products.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/productsspec.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/queue.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/queuespec.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/select.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/selectspec.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/shake.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/shakespec.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/simulationspec.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/transfer.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/transfer_reviewed_origin.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/data/transferspec.conf +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/mapping/mapmaker.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/mapping/mercatormap.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/mapping/scalebar.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/amps.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/comcat.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/config.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/dataframe.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/generic_amp.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/layers.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/logging.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/macros.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/points_to_station.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/probs.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules/utils/utils.py +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules.egg-info/dependency_links.txt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules.egg-info/entry_points.txt +0 -0
- {shakemap-modules-1.0.7 → shakemap-modules-1.0.9}/src/shakemap_modules.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shakemap-modules
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.9
|
|
4
4
|
Summary: USGS Earthquake Impact ShakeMap Modules
|
|
5
5
|
Author-email: Bruce Worden <cbworden@contractor.usgs.gov>, Eric Thompson <emthompsone@usgs.gov>, Mike Hearne <mhearne@usgs.gov>
|
|
6
6
|
License: License
|
|
@@ -182,6 +182,7 @@ Requires-Dist: flake8>=3.9; extra == "dev"
|
|
|
182
182
|
Requires-Dist: ipython>=7.26; extra == "dev"
|
|
183
183
|
Requires-Dist: vcrpy>=5.1.0; extra == "dev"
|
|
184
184
|
Requires-Dist: esi-releases; extra == "dev"
|
|
185
|
+
Requires-Dist: deepdiff>=6.7.1; extra == "dev"
|
|
185
186
|
Provides-Extra: test
|
|
186
187
|
Requires-Dist: pytest>=6.2; extra == "test"
|
|
187
188
|
Requires-Dist: pytest-cov>=2.12; extra == "test"
|
|
@@ -197,7 +198,19 @@ Requires-Dist: shakemap-modules[assemble,associate,augment,contour,coverage,dyfi
|
|
|
197
198
|
|
|
198
199
|
## Introduction
|
|
199
200
|
|
|
200
|
-
ShakeMap processing modules
|
|
201
|
+
This repository holds the core modules of the ShakeMap processing software. The modules may be used either as
|
|
202
|
+
a library of classes that can be included in other programs (as they are with ShakeMap), or as standalone
|
|
203
|
+
programs. See the [ShakeMap Documentation](https://ghsc.code-pages.usgs.gov/esi/shakemap/) for more on ShakeMap
|
|
204
|
+
and its software architecture.
|
|
201
205
|
|
|
202
206
|
## Installation
|
|
203
207
|
|
|
208
|
+
To install the library modules, use pip:
|
|
209
|
+
|
|
210
|
+
pip install shakemap-modules
|
|
211
|
+
|
|
212
|
+
To install as standalone modules, clone the repository, and execute:
|
|
213
|
+
|
|
214
|
+
bash install.sh
|
|
215
|
+
|
|
216
|
+
which will create a conda environment with the various dependencies.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# shakemap-modules
|
|
2
|
+
|
|
3
|
+
## Introduction
|
|
4
|
+
|
|
5
|
+
This repository holds the core modules of the ShakeMap processing software. The modules may be used either as
|
|
6
|
+
a library of classes that can be included in other programs (as they are with ShakeMap), or as standalone
|
|
7
|
+
programs. See the [ShakeMap Documentation](https://ghsc.code-pages.usgs.gov/esi/shakemap/) for more on ShakeMap
|
|
8
|
+
and its software architecture.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
To install the library modules, use pip:
|
|
13
|
+
|
|
14
|
+
pip install shakemap-modules
|
|
15
|
+
|
|
16
|
+
To install as standalone modules, clone the repository, and execute:
|
|
17
|
+
|
|
18
|
+
bash install.sh
|
|
19
|
+
|
|
20
|
+
which will create a conda environment with the various dependencies.
|
|
@@ -9,10 +9,10 @@ import pandas as pd
|
|
|
9
9
|
|
|
10
10
|
# local imports
|
|
11
11
|
from shakemap_modules.base.base import CoreModule
|
|
12
|
+
from shakemap_modules.base.cli import get_module_args
|
|
12
13
|
from shakemap_modules.utils.comcat import get_bytes, get_detail_json
|
|
13
14
|
from shakemap_modules.utils.config import get_config_paths
|
|
14
15
|
from shakemap_modules.utils.dataframe import dataframe_to_xml
|
|
15
|
-
from shakemap_modules.base.cli import get_module_args
|
|
16
16
|
from shakemap_modules.utils.logging import get_generic_logger
|
|
17
17
|
|
|
18
18
|
# Get rid of stupid pandas warning
|
|
@@ -232,7 +232,6 @@ def _parse_geocoded_json(bytes_data, min_nresp):
|
|
|
232
232
|
|
|
233
233
|
|
|
234
234
|
def get_stddev(dataframe):
|
|
235
|
-
print(dataframe.columns)
|
|
236
235
|
nresp = dataframe["nresp"]
|
|
237
236
|
dataframe["stddev"] = stddev_function(nresp)
|
|
238
237
|
return
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
Process a ShakeMap, based on the configuration and data found in
|
|
3
3
|
shake_data.hdf, and produce output in shake_result.hdf.
|
|
4
4
|
"""
|
|
5
|
+
|
|
5
6
|
# stdlib imports
|
|
6
7
|
import argparse
|
|
7
8
|
import concurrent.futures as cf
|
|
8
9
|
import copy
|
|
10
|
+
import importlib.metadata
|
|
9
11
|
import inspect
|
|
10
12
|
import json
|
|
11
13
|
import os
|
|
@@ -13,7 +15,6 @@ import os.path
|
|
|
13
15
|
import pathlib
|
|
14
16
|
import re
|
|
15
17
|
import shutil
|
|
16
|
-
import importlib.metadata
|
|
17
18
|
import time as time
|
|
18
19
|
from datetime import date
|
|
19
20
|
from time import gmtime, strftime
|
|
@@ -26,7 +27,6 @@ import numpy.ma as ma
|
|
|
26
27
|
import openquake.hazardlib.const as oqconst
|
|
27
28
|
import pandas as pd
|
|
28
29
|
from esi_core.shakemap.covariance_matrix import make_sd_array, make_sigma_matrix
|
|
29
|
-
|
|
30
30
|
from esi_core.shakemap.geodetic_distances import geodetic_distance_fast
|
|
31
31
|
from esi_shakelib.directivity.rowshandel2013 import Rowshandel2013
|
|
32
32
|
from esi_shakelib.multigmpe import MultiGMPE
|
|
@@ -35,9 +35,9 @@ from esi_shakelib.utils.containers import ShakeMapInputContainer
|
|
|
35
35
|
from esi_shakelib.utils.imt_string import oq_to_file
|
|
36
36
|
from esi_shakelib.utils.utils import (
|
|
37
37
|
get_extent,
|
|
38
|
+
get_shakelib_version,
|
|
38
39
|
thirty_sec_max,
|
|
39
40
|
thirty_sec_min,
|
|
40
|
-
get_shakelib_version,
|
|
41
41
|
)
|
|
42
42
|
from esi_shakelib.virtualipe import VirtualIPE
|
|
43
43
|
|
|
@@ -1395,7 +1395,7 @@ class ModelModule(CoreModule):
|
|
|
1395
1395
|
self.ccf.getCorrelation(t1_22, t2_22, matrix22)
|
|
1396
1396
|
sta_phi_flat = sta_phi.flatten()
|
|
1397
1397
|
make_sigma_matrix(matrix22, sta_phi_flat, sta_phi_flat)
|
|
1398
|
-
np.fill_diagonal(matrix22, np.diag(matrix22) + sta_sig_extra
|
|
1398
|
+
np.fill_diagonal(matrix22, np.diag(matrix22) + sta_sig_extra**2)
|
|
1399
1399
|
cov_WD_WD_inv = np.linalg.pinv(matrix22)
|
|
1400
1400
|
#
|
|
1401
1401
|
# Hold on to some things we'll need later
|
|
@@ -2203,7 +2203,7 @@ class ModelModule(CoreModule):
|
|
|
2203
2203
|
else:
|
|
2204
2204
|
mytau = sdf[key + "_tau"][six]
|
|
2205
2205
|
myphi = sdf[key + "_phi"][six]
|
|
2206
|
-
mysigma = np.sqrt(mytau
|
|
2206
|
+
mysigma = np.sqrt(mytau**2 + myphi**2)
|
|
2207
2207
|
mysigma_rock = sdf[key + "_sigma_rock"][six]
|
|
2208
2208
|
mysigma_soil = sdf[key + "_sigma_soil"][six]
|
|
2209
2209
|
imt_name = key.lower().replace("_pred", "")
|
|
@@ -2677,7 +2677,7 @@ class ModelModule(CoreModule):
|
|
|
2677
2677
|
target_res = (
|
|
2678
2678
|
-(latspan + lonspan)
|
|
2679
2679
|
- np.sqrt(
|
|
2680
|
-
latspan
|
|
2680
|
+
latspan**2 + lonspan**2 + 2 * latspan * lonspan * (2 * nmax - 1)
|
|
2681
2681
|
)
|
|
2682
2682
|
) / (2 * (1 - nmax))
|
|
2683
2683
|
|
|
@@ -119,9 +119,9 @@
|
|
|
119
119
|
# example
|
|
120
120
|
# ##########################################################################
|
|
121
121
|
[gmice_modules]
|
|
122
|
-
WGRW12 = WGRW12,
|
|
123
|
-
Wald99 = Wald99,
|
|
124
|
-
AK07 = AK07,
|
|
122
|
+
WGRW12 = WGRW12, esi_shakelib.gmice.wgrw12
|
|
123
|
+
Wald99 = Wald99, esi_shakelib.gmice.wald99
|
|
124
|
+
AK07 = AK07, esi_shakelib.gmice.ak07
|
|
125
125
|
|
|
126
126
|
# ##########################################################################
|
|
127
127
|
# ccf_modules -- Cross-correlation modules. Similar to gmice_modules,
|