This repository was archived by the owner on Jul 11, 2023. It is now read-only.
File tree 2 files changed +45
-2
lines changed
2 files changed +45
-2
lines changed Original file line number Diff line number Diff line change 45
45
"date" : {
46
46
"metadataLastUpdated" : " 2018-08-23"
47
47
}
48
+ },
49
+ {
50
+ "name" : " shakemap" ,
51
+ "organization" : " U.S. Geological Survey" ,
52
+ "description" : " Near-real-time maps of ground motion and shaking intensity" ,
53
+ "version" : " 4.1.0" ,
54
+ "status" : " Production" ,
55
+
56
+ "permissions" : {
57
+ "usageType" : " openSource" ,
58
+ "licenses" : [
59
+ {
60
+ "name" : " Public Domain, CC0-1.0" ,
61
+ "URL" : " https://github.com/usgs/shakemap/blob/master/LICENSE.md"
62
+ }
63
+ ]
64
+ },
65
+
66
+ "homepageURL" : " https://usgs.github.io/shakemap/sm4_index.html" ,
67
+ "downloadURL" : " https://github.com/usgs/shakemap/archive/master.zip" ,
68
+ "disclaimerURL" : " https://github.com/usgs/shakemap/blob/master/LICENSE.md" ,
69
+ "repositoryURL" : " https://github.com/usgs/shakemap.git" ,
70
+ "vcs" : " git" ,
71
+
72
+ "laborHours" : null ,
73
+
74
+ "tags" : [
75
+ " earthquake" ,
76
+ " shakemap"
77
+ ],
78
+
79
+ "languages" : [
80
+ " python"
81
+ ],
82
+
83
+ "contact" : {
84
+ "name" : " C. Bruce Worden" ,
85
+
86
+ },
87
+
88
+ "date" : {
89
+ "metadataLastUpdated" : " 2022-04-28"
90
+ }
48
91
}
49
92
]
50
93
}
Original file line number Diff line number Diff line change @@ -1418,7 +1418,7 @@ def arclen(path):
1418
1418
props = contour_object ["properties" ]
1419
1419
multi_lines = sShape (contour_object ["geometry" ])
1420
1420
pmulti_lines = proj .project_geometry (multi_lines , src_crs = geoproj )
1421
- for multi_line in pmulti_lines :
1421
+ for multi_line in pmulti_lines . geoms :
1422
1422
pmulti_line = mapping (multi_line )["coordinates" ]
1423
1423
x , y = zip (* pmulti_line )
1424
1424
contour_lens [props ["value" ]].append (arclen (pmulti_line ))
@@ -1444,7 +1444,7 @@ def arclen(path):
1444
1444
# isovalue)
1445
1445
min_len = np .array (contour_lens [props ["value" ]]).mean ()
1446
1446
1447
- for multi_line in pmulti_lines :
1447
+ for multi_line in pmulti_lines . geoms :
1448
1448
pmulti_line = mapping (multi_line )["coordinates" ]
1449
1449
x , y = zip (* pmulti_line )
1450
1450
# color = imt_cmap.getDataColor(props['value'])
You can’t perform that action at this time.
0 commit comments