コード例 #1
0
from kite import SandboxScene
from kite.sources import EllipsoidSource

km = 1e3

sandbox = SandboxScene()

ellipsoid_source = EllipsoidSource(northing=40 * km,
                                   easting=40 * km,
                                   depth=4 * km,
                                   length_x=100,
                                   length_y=200,
                                   length_z=350,
                                   roation_x=42.)
sandbox.addSource(ellipsoid_source)

sandbox.save('/tmp/sandbox_scene.yml')
playground = SandboxScene.load('/tmp/sandbox_scene.yml')
コード例 #2
0
ファイル: test_source_okada.py プロジェクト: wuxyair/kite
    def testModelSaveLoad(self):
        filename = self.tmpdir + '/testsave.yml'
        msc = TestSandboxScene.randomOkada(nsources=2)
        msc.save(filename=filename)

        msd2 = SandboxScene.load(filename=filename)  # noqa