Skip to content
GitLab
菜单
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
NJU Geophy
seispy
提交
e5d75ebf
提交
e5d75ebf
编辑于
4月 03, 2022
作者:
Mijian Xu
😷
浏览文件
fix depmod.depths_extend
上级
21ce8612
变更
1
Hide whitespace changes
Inline
Side-by-side
seispy/utils.py
浏览文件 @
e5d75ebf
...
...
@@ -49,6 +49,7 @@ class DepModel(object):
self
.
dep_val
=
np
.
average
(
np
.
diff
(
self
.
depths
))
if
elevation
==
0
:
self
.
depths_elev
=
self
.
depths
self
.
depths_extend
=
self
.
depths
else
:
dep_append
=
np
.
arange
(
self
.
depths
[
-
1
]
+
self
.
dep_val
,
self
.
depths
[
-
1
]
+
self
.
dep_val
+
np
.
floor
(
elevation
/
self
.
dep_val
+
1
),
self
.
dep_val
)
...
...
编辑
预览
支持
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录