跳转至

tnet: Temporal network (image pairs) for the CLI

moraine.cli.tnet 的命令(源码);同样的函数在 Python 里以 mc.<name>(...) 调用(import moraine.cli as mc)。下面的帮助由 docstring 生成,与 moraine COMMAND --help 相同(docstring 为英文)。

命令 摘要
image-pairs Write the image pairs of a temporal network to a text file, for the image_pairs arguments.

image-pairs

Write the image pairs of a temporal network to a text file, for the image_pairs arguments.

moraine image-pairs --out STR [--rslc STR] [--nimages VALUE] [--bandwidth VALUE]
参数 类型 默认值 说明
--out str 必需 output text file with two columns, reference and secondary image index
--rslc str None input rslc stack (..., nimages), used to get the number of images; alternative to nimages
--nimages int None number of images; alternative to rslc
--bandwidth int None connect every image with the next bandwidth images (1: sequential interferograms); all image pairs by default

全局选项:--json、--traceback、--log FILE、-q / --quiet(约定)。

在 pipeline 文件中(examples/02_ps.toml,步骤 pairs_seq):

[[step]]
name = "pairs_seq"                # sequential image pairs (bandwidth 1)
run = "image-pairs"
rslc = "raw/rslc.zarr"
bandwidth = 1
out = "ps/pairs_seq.txt"

也用于 examples/04_refine.toml(步骤 pairs_seq), examples/05_unwrap.toml(步骤 pairs_seq)。

在 Python 中:

import moraine.cli as mc
mc.image_pairs(out, rslc=None, nimages=None, bandwidth=None)