dtopotools_horiz_okada_and_1d.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:finite_volume_seismic_model 作者: cjvogl 项目源码 文件源码
def containing_rect(self):
        r"""Find containing rectangle of fault in x-y plane.

        Returns tuple of x-limits and y-limits.

        """

        extent = [numpy.infty, -numpy.infty, numpy.infty, -numpy.infty]
        for subfault in self.subfaults:
            for corner in subfault.corners:
                extent[0] = min(corner[0], extent[0])
                extent[1] = max(corner[0], extent[1])
                extent[2] = min(corner[1], extent[2])
                extent[3] = max(corner[1], extent[3])

        return extent
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号