SandboxScene Module

class kite.sandbox_scene.SandboxSceneConfig(**kwargs)[source]

Undocumented.

frame

kite.scene.FrameConfig, default: <kite.scene.FrameConfig object at 0x7f8dfee3a470>

Frame/reference configuration

extent_north

int, default: 800

Model size towards north in [px]

extent_east

int, default: 800

Model size towards east in [px]

sources

list of pyrocko.guts.Any objects, default: []

List of sources

reference_scene

str, optional

Reference kite.Scene container

class kite.SandboxScene(config=None, **kwargs)[source]

Bases: kite.scene.BaseScene

addSource(source)[source]

Add displacement source to sandbox

Parameters:source (kite.sources.meta.SandboxSource) – Displacement Source
displacement
Getter:(Cached) Displacement projected to LOS
getKiteScene()[source]

Return a kite.Scene from current model.

Returns:Scene
Return type:Scene
classmethod load(filename)[source]

Load a kite.SandboxScene

Parameters:filename (str) – Config file to load [.yml]
Returns:A sandbox from config file
Return type:kite.SandboxScene
loadReferenceScene(filename)[source]

Load a reference kite scene container into the sandbox

A reference scene could be actually measured InSAR displacements.

Parameters:filename (str) – filename of the scene container to load [.npy, .yml]
max_horizontal_displacement
Getter:(Cached) Maximum horizontal displacement
processSources()[source]

Process displacement sources and update displacements

removeSource(source)[source]

Remove displacement source from sandbox

Parameters:source (kite.sources.meta.SandboxSource) – Displacement Source
save(filename)[source]

Save the sandbox as kite scene container

Parameters:filename (str) – filename to save under
setExtent(east, north)[source]

Set the sandbox’s extent in pixels

Parameters:
  • east (int) – Pixels in East
  • north (int) – Pixels in North
setReferenceScene(scene)[source]

Set a reference scene.

A reference scene could be actually measured InSAR displacements.

Parameters:scene (kite.Scene) – Kite scene
sources
Returns:List of sources attached sandbox
Return type:list