跳转至

tnet: utilities holding temporal network info

moraine.api.tnet(源码)。每个名字也是 moraine.<name>(import moraine as mr)。

TempNet

TempNet(image_pairs, check_if_valid=True)

Bases: object

save

save(path: str)

Save the TempNet.

Parameters:

Name Type Description Default
path str

zarr path

required

load classmethod

load(zarr_path: str)

classmethod to load the saved HilbertRtree.

Parameters:

Name Type Description Default
zarr_path str

zarr path

required

nimage_from_npair

nimage_from_npair(npair)

infer number of images from number of pairs assuming all pairs are selected.

示例

构建本手册时运行;输出紧随每段代码。

import moraine as mr

tnet = mr.TempNet.from_bandwidth(6, bandwidth=2)   # 6 images, every image paired with the next two
print(tnet.image_pairs.shape, tnet.image_pairs.dtype)
print(tnet.image_pairs.tolist())
print(mr.nimage_from_npair(15))                    # 15 pairs of all images: 6 images
(9, 2) int32
[[0, 1], [0, 2], [1, 2], [1, 3], [2, 3], [2, 4], [3, 4], [3, 5], [4, 5]]
6

The image pairs file of the image-pairs command has the same two columns (reference, secondary); the interferogram of a pair is ref * conj(sec).