shakemap-modules 1.1.2__tar.gz → 1.1.3__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.1.2 → shakemap_modules-1.1.3}/CHANGELOG.md +3 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/PKG-INFO +4 -2
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/code.json +36 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/install.sh +1 -1
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/pyproject.toml +1 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/mapping.py +26 -8
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules.egg-info/PKG-INFO +4 -2
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules.egg-info/requires.txt +1 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/.gitignore +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/.gitlab-ci.yml +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/DISCLAIMER.md +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/LICENSE.md +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/MANIFEST.in +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/README.md +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/pytest.ini +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/setup.cfg +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/setup.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/base/base.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/base/cli.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/base/transfer_base.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/assemble.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/associate.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/augment.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/contour.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/coverage.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/dyfi.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/exception.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/gridxml.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/history.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/info.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/kml.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/makecsv.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/model.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/plotregr.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/raster.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/rupture.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/save.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/shape.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/sleep.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/sm_select.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/stations.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/transfer_email.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/transfer_pdl.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/transfer_scp.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/uncertaintymaps.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/xtestimage.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/xtestplot.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/xtestplot_multi.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/xtestplot_spectra.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/fdsn_networks.json +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/WGS1984.prj +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/mi.lyr +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/mi.shp.xml +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/pga.lyr +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/pga.shp.xml +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/pgv.lyr +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/pgv.shp.xml +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/psa0p3.lyr +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/psa0p3.shp.xml +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/psa1p0.lyr +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/psa1p0.shp.xml +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/psa3p0.lyr +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/psa3p0.shp.xml +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gmpe_sets.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/alaska.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/australia.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/california.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/cascadia.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/chile.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/china.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/europe_share.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/hawaii.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/induced.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/japan.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/new_zealand.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/south_africa.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/taiwan.wkt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/logging.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/loggingspec.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/circle.png +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/intensity_legend.png +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.cn +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.en +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.en-AU +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.en-CA +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.es +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.fr-CA +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.it +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.tw +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/triangle.png +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/migrate.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/migratespec.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/model.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/modelspec.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/modules.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/modulesspec.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/products.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/productsspec.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/queue.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/queuespec.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/select.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/selectspec.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/shake.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/shakespec.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/simulationspec.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/transfer.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/transfer_reviewed_origin.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/transferspec.conf +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/mapping/mapmaker.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/mapping/mercatormap.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/mapping/scalebar.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/amps.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/comcat.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/config.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/dataframe.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/generic_amp.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/layers.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/logging.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/macros.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/points_to_station.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/probs.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/smclone.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/utils.py +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules.egg-info/SOURCES.txt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules.egg-info/dependency_links.txt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules.egg-info/entry_points.txt +0 -0
- {shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules.egg-info/top_level.txt +0 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# main
|
|
2
2
|
|
|
3
|
+
## 1.1.3 / 2025-03-20
|
|
4
|
+
- Added an option to mapping module to save figure objects to files that can be overplotted later.
|
|
5
|
+
|
|
3
6
|
## 1.1.2 / 2025-03-13
|
|
4
7
|
- Fix points mode in model to use the same bounds that grid mode would use, insuring consistent bias between modes.
|
|
5
8
|
- Set a fixed seed for FFSimmer RNG (RFF) to make results between runs and across deployments consistent.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: shakemap-modules
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
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
|
|
@@ -90,6 +90,7 @@ Requires-Dist: scipy; extra == "kml"
|
|
|
90
90
|
Requires-Dist: shapely; extra == "kml"
|
|
91
91
|
Requires-Dist: simplekml>=1.3.6; extra == "kml"
|
|
92
92
|
Provides-Extra: mapping
|
|
93
|
+
Requires-Dist: dill; extra == "mapping"
|
|
93
94
|
Requires-Dist: esi-utils-colors>=1.0.3; extra == "mapping"
|
|
94
95
|
Requires-Dist: esi-utils-geo>=0.9.2; extra == "mapping"
|
|
95
96
|
Requires-Dist: esi-utils-gmice>=1.0; extra == "mapping"
|
|
@@ -162,6 +163,7 @@ Requires-Dist: twine; extra == "build"
|
|
|
162
163
|
Requires-Dist: esi-releases; extra == "build"
|
|
163
164
|
Provides-Extra: all
|
|
164
165
|
Requires-Dist: shakemap-modules[assemble,associate,augment,contour,coverage,dyfi,exception,gridxml,history,info,kml,mapping,model,plotregr,raster,rupture,save,shape,sleep,sm-select,stations,transfer-email,transfer-pdl,transfer-scp,uncertaintymaps,xtestimage,xtestplot,xtestplot-multi,xtestplot-spectra]; extra == "all"
|
|
166
|
+
Dynamic: license-file
|
|
165
167
|
|
|
166
168
|
# shakemap-modules
|
|
167
169
|
|
|
@@ -1,4 +1,40 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"name": "shakemap-modules",
|
|
4
|
+
"description": "ShakeMap processing modules.",
|
|
5
|
+
"version": "v1.1.3",
|
|
6
|
+
"status": "Development",
|
|
7
|
+
"organization": "U.S. Geological Survey",
|
|
8
|
+
"vcs": "git",
|
|
9
|
+
"repositoryURL": "https://code.usgs.gov/ghsc/esi/shakemap-modules.git",
|
|
10
|
+
"homepageURL": "https://code.usgs.gov/ghsc/esi/shakemap-modules",
|
|
11
|
+
"downloadURL": "https://code.usgs.gov/ghsc/esi/shakemap-modules/-/archive/v1.1.3/shakemap-modules-v1.1.3.zip",
|
|
12
|
+
"disclaimerURL": "https://code.usgs.gov/ghsc/esi/shakemap-modules/-/raw/v1.1.3/DISCLAIMER.md",
|
|
13
|
+
"permissions": {
|
|
14
|
+
"usageType": "openSource",
|
|
15
|
+
"licenses": [
|
|
16
|
+
{
|
|
17
|
+
"name": "Public Domain, CC0-1.0",
|
|
18
|
+
"URL": "https://code.usgs.gov/ghsc/esi/shakemap-modules/-/raw/v1.1.3/LICENSE.md"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"laborHours": 1,
|
|
23
|
+
"languages": [
|
|
24
|
+
"python"
|
|
25
|
+
],
|
|
26
|
+
"tags": [
|
|
27
|
+
"earthquake",
|
|
28
|
+
"utilities"
|
|
29
|
+
],
|
|
30
|
+
"contact": {
|
|
31
|
+
"name": "Bruce Worden",
|
|
32
|
+
"email": "cbworden@contractor.usgs.gov"
|
|
33
|
+
},
|
|
34
|
+
"date": {
|
|
35
|
+
"metadataLastUpdated": "2025-03-20"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
2
38
|
{
|
|
3
39
|
"name": "shakemap-modules",
|
|
4
40
|
"description": "ShakeMap processing modules.",
|
|
@@ -58,7 +58,7 @@ conda activate base
|
|
|
58
58
|
|
|
59
59
|
# Create a conda virtual environment
|
|
60
60
|
echo "Creating the $VENV virtual environment:"
|
|
61
|
-
conda create -y -n $VENV -c conda-forge python=3.
|
|
61
|
+
conda create -y -n $VENV -c conda-forge python=3.11
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
# Bail out at this point if the conda create command fails.
|
|
@@ -5,21 +5,19 @@ import copy
|
|
|
5
5
|
import inspect
|
|
6
6
|
import json
|
|
7
7
|
import os.path
|
|
8
|
-
from PIL import Image
|
|
9
|
-
from configobj import ConfigObj
|
|
10
8
|
|
|
11
9
|
# third party
|
|
12
10
|
import cartopy.crs as ccrs
|
|
13
11
|
import cartopy.feature as cfeature
|
|
12
|
+
import dill
|
|
14
13
|
import matplotlib
|
|
15
14
|
import matplotlib.pyplot as plt
|
|
16
|
-
from matplotlib.ticker import NullLocator
|
|
17
15
|
import numpy as np
|
|
18
16
|
import rasterio.features
|
|
19
17
|
from cartopy.feature import ShapelyFeature
|
|
20
18
|
from cartopy.io.shapereader import Reader
|
|
21
|
-
from
|
|
22
|
-
|
|
19
|
+
from configobj import ConfigObj
|
|
20
|
+
from esi_shakelib.utils.imt_string import oq_to_file
|
|
23
21
|
|
|
24
22
|
# local imports
|
|
25
23
|
from esi_utils_colors.cpalette import ColorPalette
|
|
@@ -28,8 +26,11 @@ from esi_utils_io.smcontainers import ShakeMapOutputContainer
|
|
|
28
26
|
from mapio.geodict import GeoDict
|
|
29
27
|
from mapio.grid2d import Grid2D
|
|
30
28
|
from mapio.reader import read
|
|
31
|
-
from
|
|
29
|
+
from matplotlib.ticker import NullLocator
|
|
30
|
+
from PIL import Image
|
|
31
|
+
from scipy.interpolate import griddata
|
|
32
32
|
from shakemap_modules.base.base import Contents, CoreModule
|
|
33
|
+
from shakemap_modules.base.cli import get_cli_args
|
|
33
34
|
from shakemap_modules.mapping.mapmaker import draw_map
|
|
34
35
|
from shakemap_modules.utils.config import (
|
|
35
36
|
check_extra_values,
|
|
@@ -39,10 +40,8 @@ from shakemap_modules.utils.config import (
|
|
|
39
40
|
get_custom_validator,
|
|
40
41
|
get_data_path,
|
|
41
42
|
)
|
|
42
|
-
from shakemap_modules.base.cli import get_cli_args
|
|
43
43
|
from shakemap_modules.utils.logging import get_generic_logger
|
|
44
44
|
|
|
45
|
-
|
|
46
45
|
WATERCOLOR = "#7AA1DA"
|
|
47
46
|
|
|
48
47
|
|
|
@@ -67,6 +66,7 @@ class MappingModule(CoreModule):
|
|
|
67
66
|
configs = ["products.conf"]
|
|
68
67
|
|
|
69
68
|
display_magnitude = None
|
|
69
|
+
pickle_plots = False
|
|
70
70
|
|
|
71
71
|
def __init__(self, eventid, process="shakemap", logger=None):
|
|
72
72
|
super(MappingModule, self).__init__(eventid, logger=logger)
|
|
@@ -87,6 +87,13 @@ class MappingModule(CoreModule):
|
|
|
87
87
|
type=float,
|
|
88
88
|
help="Override the magnitude displayed in " "map labels.",
|
|
89
89
|
)
|
|
90
|
+
parser.add_argument(
|
|
91
|
+
"-p",
|
|
92
|
+
"--pickle-plots",
|
|
93
|
+
action="store_true",
|
|
94
|
+
default=False,
|
|
95
|
+
help="Save the figure objects from each plot as a binary file that can be plotted over.",
|
|
96
|
+
)
|
|
90
97
|
#
|
|
91
98
|
# This line should be in any modules that overrides this
|
|
92
99
|
# one. It will collect up everything after the current
|
|
@@ -99,6 +106,8 @@ class MappingModule(CoreModule):
|
|
|
99
106
|
args = parser.parse_args(arglist)
|
|
100
107
|
if args.display_magnitude:
|
|
101
108
|
self.display_magnitude = args.display_magnitude
|
|
109
|
+
if args.pickle_plots:
|
|
110
|
+
self.pickle_plots = args.pickle_plots
|
|
102
111
|
return args.rem
|
|
103
112
|
|
|
104
113
|
def execute(self, datafile=None, outdir=None, config=None):
|
|
@@ -342,6 +351,7 @@ class MappingModule(CoreModule):
|
|
|
342
351
|
"config": model_config,
|
|
343
352
|
"tdict": text_dict,
|
|
344
353
|
"display_magnitude": self.display_magnitude,
|
|
354
|
+
"pickle_plots": self.pickle_plots,
|
|
345
355
|
"pdf_dpi": config["products"]["mapping"]["pdf_dpi"],
|
|
346
356
|
"img_dpi": config["products"]["mapping"]["img_dpi"],
|
|
347
357
|
"license_logo": llogo,
|
|
@@ -444,11 +454,19 @@ def make_map(adict):
|
|
|
444
454
|
fig2.gca().xaxis.set_major_locator(NullLocator())
|
|
445
455
|
fig2.gca().yaxis.set_major_locator(NullLocator())
|
|
446
456
|
fig2.savefig(legend_file, bbox_inches="tight", pad_inches=0)
|
|
457
|
+
if adict["pickle_plots"]:
|
|
458
|
+
pickle_name = os.path.join(adict["datadir"], "intensity.pickle")
|
|
459
|
+
with open(pickle_name, "wb") as fobj:
|
|
460
|
+
dill.dump(fig1, fobj)
|
|
447
461
|
plt.close(fig2)
|
|
448
462
|
else:
|
|
449
463
|
fileimt = oq_to_file(imtype)
|
|
450
464
|
pdf_file = os.path.join(adict["datadir"], f"{fileimt}.pdf")
|
|
451
465
|
jpg_file = os.path.join(adict["datadir"], f"{fileimt}.jpg")
|
|
466
|
+
if adict["pickle_plots"]:
|
|
467
|
+
pickle_name = os.path.join(adict["datadir"], f"{fileimt}.pickle")
|
|
468
|
+
with open(pickle_name, "wb") as fobj:
|
|
469
|
+
dill.dump(fig1, fobj)
|
|
452
470
|
|
|
453
471
|
fig1.savefig(pdf_file, bbox_inches="tight", dpi=adict["pdf_dpi"])
|
|
454
472
|
fig1.savefig(jpg_file, bbox_inches="tight", dpi=adict["img_dpi"])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: shakemap-modules
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
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
|
|
@@ -90,6 +90,7 @@ Requires-Dist: scipy; extra == "kml"
|
|
|
90
90
|
Requires-Dist: shapely; extra == "kml"
|
|
91
91
|
Requires-Dist: simplekml>=1.3.6; extra == "kml"
|
|
92
92
|
Provides-Extra: mapping
|
|
93
|
+
Requires-Dist: dill; extra == "mapping"
|
|
93
94
|
Requires-Dist: esi-utils-colors>=1.0.3; extra == "mapping"
|
|
94
95
|
Requires-Dist: esi-utils-geo>=0.9.2; extra == "mapping"
|
|
95
96
|
Requires-Dist: esi-utils-gmice>=1.0; extra == "mapping"
|
|
@@ -162,6 +163,7 @@ Requires-Dist: twine; extra == "build"
|
|
|
162
163
|
Requires-Dist: esi-releases; extra == "build"
|
|
163
164
|
Provides-Extra: all
|
|
164
165
|
Requires-Dist: shakemap-modules[assemble,associate,augment,contour,coverage,dyfi,exception,gridxml,history,info,kml,mapping,model,plotregr,raster,rupture,save,shape,sleep,sm-select,stations,transfer-email,transfer-pdl,transfer-scp,uncertaintymaps,xtestimage,xtestplot,xtestplot-multi,xtestplot-spectra]; extra == "all"
|
|
166
|
+
Dynamic: license-file
|
|
165
167
|
|
|
166
168
|
# shakemap-modules
|
|
167
169
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/base/transfer_base.py
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/associate.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/exception.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/sm_select.py
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/transfer_email.py
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/transfer_pdl.py
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/transfer_scp.py
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/uncertaintymaps.py
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/xtestimage.py
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/xtestplot.py
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/xtestplot_multi.py
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/coremods/xtestplot_spectra.py
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/fdsn_networks.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/psa0p3.shp.xml
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/psa1p0.shp.xml
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/gis/psa3p0.shp.xml
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/alaska.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/australia.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/california.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/cascadia.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/chile.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/china.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/europe_share.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/hawaii.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/induced.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/japan.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/new_zealand.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/south_africa.wkt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/layers/taiwan.wkt
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/loggingspec.conf
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/circle.png
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.cn
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.en
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.es
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.it
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/map_strings.tw
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/mapping/triangle.png
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/migratespec.conf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/modulesspec.conf
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/productsspec.conf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/simulationspec.conf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/data/transferspec.conf
RENAMED
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/mapping/mercatormap.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules/utils/points_to_station.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{shakemap_modules-1.1.2 → shakemap_modules-1.1.3}/src/shakemap_modules.egg-info/top_level.txt
RENAMED
|
File without changes
|