📄 snaphu.1
字号:
.TH "snaphu" 1.SH NAMEsnaphu \- phase unwrapping algorithm for SAR interferometry.SH SYNOPSIS.B snaphu[options][infile][linelength][options].SH DESCRIPTION\fBsnaphu\fR is a \fBs\fRtatistical-cost \fBn\fRetwork-flow\fBa\fRlgorithm for \fBph\fRase \fBu\fRnwrapping. Given an inputinterferogram and other observable data, \fBsnaphu\fR attempts tocompute congruent phase-unwrapped solutions that are maximallyprobable in an approximate \fIa posteriori\fR sense. The algorithm'ssolver routine is based on network optimization. By default,\fBsnaphu\fR assumes that its input is a synthetic aperture radar(SAR) interferogram measuring surface topography. Deformationmeasurements are assumed if the \fB\-d\fR option is given. Smooth,generic data are assumed if the \fB\-s\fR option is given.This man page documents only \fBsnaphu\fR's syntax and usage. Itstheoretical foundations are discussed in the references cited below.The most common input parameters may be given on the command line,while many other twiddle parameters are handled via the \fB\-f\fRoption and configuration files. At the very least, the name of awrapped-phase input file and its line length must be specified. Rangeshould increase towards the right in the interferogram, and theflat-earth phase ramp should be removed from the input interferogrambefore \fBsnaphu\fR is run. For deformation interferograms, phasevariations due to topography should be removed as well.Except for the input file name and the line length, all inputparameters take default values if not specified. However, theseparameters should be customized whenever possible since the accuracyof the solution depends on how well the statistics of the estimationproblem are modeled. To avoid poor-quality solutions, users arestrongly encouraged to provide their best estimates of the relevantproblem parameters. Parameters are set in the order in which they aregiven on the command line, so multiple configuration files or optionsmay be given, with later values overriding earlier ones.Allowable file formats are detailed below. The default format for theinput file is COMPLEX_DATA, but any of the described formats may beused. If either of the ALT_LINE_DATA or ALT_SAMPLE_DATA formats areused, the magnitude and phase (in radians) of the interferogram shouldbe in the first and second channels of the file, respectively. If theFLOAT_DATA format is used, the input file should contain only thephase of the interferogram (in radians); the magnitude may be passedwith the \fB\-m\fR option..SH OPTIONS.TP\fB\-a\fP \fIampfile\fP Read brightness data from the file \fIampfile\fP. The file shouldcontain the amplitudes (not powers) of the two individual SAR imagesforming the interferogram if the formats ALT_SAMPLE_DATA (default) orALT_LINE_DATA are used. It should contain an average of those twoimages if the FLOAT_DATA format is used. If (1) the amplitudes ofboth images are available, (2) the interferogram magnitude is alsoavailable, and (3) the \fB\-c\fP option is not used, then a coherenceestimate is automatically formed from the available data. The numberof looks used for this estimate can be set in a configuration file.If no amplitude or power data are specified, then the magnitude of theinput interferogram is used as the average amplitude, and no coherenceestimate is formed. Note that the magnitude of the interferogram isnot equal to the average amplitude of the SAR images. The amplitudedata should be in the same system of units used for the inputinterferogram, and also coregistered to it..TP\fB\-A\fP \fIpwrfile\fPSimilar to the \fB\-a\fP option, except the data in the specified fileis assumed to represent the powers of the two individual SAR images..TP\fB\-b\fP \fIBperp\fPFor topography mode, use \fIBperp\fP (decimal value, in meters) as thevalue of the perpendicular component of the interferometric baseline.The sign is defined such that \fIBperp\fP is negative if the unwrappedphase increases with the elevation. By default, repeat-pass orping-pong mode is assumed; for single-antenna-transmit data, the valueof \fIBperp\fP should be halved, or the transmit mode should be setaccordingly in a configuration file (see the \fB\-f\fP option). Thebaseline value is only used in topography mode..TP\fB\-c\fP \fIcorrfile\fPRead correlation data from the file \fIcorrfile\fP. The correlationdata should be the same size as, and registered to, the inputinterferogram. Consequently, a raw correlation estimate may need tobe upsampled if it incorporates more looks than the interferogram.If the \fB\-c\fP option is not given, a coherence estimate is formedfrom the available data if possible. Otherwise, a uniform defaultcoherence is assumed for the entire interferogram. If theALT_LINE_DATA (default) or ALT_SAMPLE_DATA formats are used, thecorrelation data should be in the second data channel of the file; thefirst channel is ignored. The FLOAT_DATA format may also be used.The correlation values should be between zero and one, inclusive..TP.B \-dRun in deformation mode. The problem statistics and resulting costfunctions are based on the assumption that the true unwrapped phaserepresents surface displacement rather than elevation..TP\fB\-e\fP \fIestimatefile\fPFlatten using the unwrapped phase estimate in the file\fIestimatefile\fP. The estimate is subtracted from the inputinterferogram before unwrapping, and is inserted back into thesolution just before the output is written. The estimate also affectsthe cost functions used, since subtracting a constant from a randomvariable shifts the probability density function of the randomvariable. If the formats ALT_LINE_DATA (default) or ALT_SAMPLE_DATAare used, the unwrapped estimate (in radians) should be in the seconddata channel of the file; the first channel is ignored. TheFLOAT_DATA format may also be used..TP\fB\-f\fP \fIconfigfile\fP Read configuration parameters from file \fIconfigfile\fP. The file isparsed line by line for key-value pairs. Template configuration filesare included with the \fBsnaphu\fP source code: \fIsnaphu.conf.full\fPcontains all valid key-value pairs; \fIsnaphu.conf.brief\fP containsthe most important parameters. Lines not beginning with alphanumericcharacters are treated as comment lines. Command line optionsspecified after \fB\-f\fP will override parameters specified in the\fIconfigfile\fP and vice versa. The \fB\-f\fP option may be givenmultiple times with different configuration files, with parameters inlater-specified files overriding those in earlier ones..TP.B \-g \fImaskfile\fPGrow a connected component mask for the unwrapped solution and writethe mask to the file \fImaskfile\fP. A connected component is aregion of pixels in the solution that is believed to have beenunwrapped in a relative, internally self-consistent manner accordingto the statistical costs used. Regions that are smaller than apreselected threshold are masked out. Parameters for this option canbe set in the configuration file. The connected component file iscomposed of unsigned characters, with all pixels of the same valuebelonging to the same connected component and zero corresponding tomasked pixels..TP.B \-G \fImaskfile\fPGrow a connected component mask (see the \fB\-g\fP option) for theinput data array, assuming that it is already unwrapped, and write themask to the file \fImaskfile\fP. Statistical cost functions arecomputed for forming the mask, but a new unwrapped solution is notcomputed..TP.B \-hPrint a help message summarizing command-line options and exit..TP.B \-iRun in initialize-only mode. Normally, \fBsnaphu\fP uses either anapproximate minimum spanning tree (MST) algorithm or a minimum costflow (MCF) algorithm for generating the initialization to itsiterative, modified network-simplex solver. If \fB\-i\fP is given,the initialization is written to the output and the program exitswithout running the iterative solver..TP\fB\-l\fP \fIlogfile\fPLog all runtime parameters and some other environment information intothe specified file. The log file is a text file in the same format asa configuration file..TP\fB\-m\fP \fImagfile\fPRead interferogram magnitude data from the specified file. Thisoption is useful mainly if the wrapped-phase input file is given as aset of real phase values rather than complex interferogram values.The interferogram magnitude is used to form a coherence estimate ifappropriate amplitude data are given as well. The default file formatis FLOAT_DATA. If the formats ALT_LINE_DATA or ALT_SAMPLE_DATA areused, the magnitude should be in the first data channel of the file;the second channel is ignored. If the COMPLEX_DATA format is used,the phase information is ignored..TP.B \-nRun in no-statistical-costs mode. If the \fB\-i\fP or \fB\-p\fPoptions are given, \fBsnaphu\fP will not use statistical costs.Information from a weight file (\fB\-w\fP option) will still be usedif given..TP\fB\-o\fP \fIoutfile\fPWrite the unwrapped output to file called \fIoutfile\fP. If the fileformats ALT_LINE_DATA (default) or ALT_SAMPLE_DATA are used, theunwrapped phase is written into the second data channel, while theinterferogram magnitude is written into the first channel. The formatFLOAT_DATA may also be used..TP\fB\-p\fP \fIvalue\fPRun in Lp-norm mode with p=\fIvalue\fP, where \fIvalue\fP is anonnegative decimal. Instead of statistical cost functions, theprogram uses Lp cost functions with statistically based weights(unless \fB\-n\fP is also given). Solutions are still alwayscongruent. Moreover, congruence is enforced within the solverroutine, not as a post-optimization processing step. Therefore, ifp=2, for example, least-squares cost functions are used, but thesolution will probably be more accurate than one generated from atransform-based least-squares algorithm..TP.B \-qRun in quantify-only mode. The input data are assumed to be unwrappedalready, and the total cost of this solution is calculated andprinted. The unwrapped phase is wrapped assuming congruence for thecost calculation. Round-off errors may limit the precision of thequantified cost. See the \fB\-u\fP option for allowable file formats..TP.B \-sRun in smooth-solution mode. The problem statistics and resultingcost functions are based on the assumption that the true unwrappedphase represents a generic surface with no discontinuities. This isthe same as deformation mode with the DEFOMAX parameter set to zero..TP.B \-tRun in topography mode. The problem statistics and resulting costfunctions are based on the assumption that the true unwrapped phaserepresents surface elevation. This is the default..TP.B \-uAssume that the input file is unwrapped rather than wrapped. Thealgorithm makes iterative improvements to this solution instead ofusing an initialization routine. The input file may be in the formatsALT_LINE_DATA (default) or ALT_SAMPLE_DATA; the interferogrammagnitude should be in the first data channel and the unwrapped phaseshould be in the second data channel. The format FLOAT_DATA may alsobe used..TP.B \-vRun in verbose mode. Extra information on the algorithm's progress isprinted to the standard output..TP\fB\-w\fP \fIweightfile\fPRead external, scalar weights from file \fIweightfile\fP. Theweights, which should be positive short integers, are applied towhichever cost functions are used. There is one weight value for eacharc in the network, so \fIweightfile\fP should be the concatenation ofraster horizontal-flow and vertical-flow arc weights. Thus, for an Nrow by M column interferogram, \fIweightfile\fP would consist of arasterized (N-1) by M array followed by a rasterized N by (M-1) arrayof short integer data. This option is not well tested..TP\fB\-\-aa\fP \fIampfile1 ampfile2\fP Amplitude data are read from the files specified. The data from thetwo individual SAR images forming the interferogram are assumed to beseparately stored in files \fIampfile1\fP and \fIampfile2\fP. Thesefiles should be in the format FLOAT_DATA. This option is similar tothe \fB\-a\fP option..TP\fB\-\-AA\fP \fIpwrfile1 pwrfile2\fPSimilar to the \fB\-\-aa\fP option, but power data are read from thespecified files..TP\fB\-\-assemble \fIdirname\fPAssemble the tile-mode temporary files in the specified directory.Most configuration options (from the command line and anyconfiguration files) must be specified. This option is usefulif the user wishes to modify tile-assembly parameters withoutunwrapping the individual tiles over again..TP.B \-\-copyright, \-\-infoPrint the software copyright notice and bug report info, then exit..TP\fB\-\-costinfile\fP \fIcostfile\fPRead statistical cost arrays from file \fIcostfile\fP. This fileshould be in the format written by the \fB\-\-costoutfile\fP option.The cost file does not control whether \fBsnaphu\fP runs intopography, deformation, or smooth-solution mode; the latter two mustbe specified explicitly even if \fIcostfile\fP was generated whilerunning in those modes..TP\fB\-\-costoutfile\fP \fIcostfile\fPWrite statistical cost arrays to file \fIcostfile\fP. This option canbe used with the \fB\-\-costinfile\fP option to save the time ofgenerating statistical costs if the same costs are used multiple times..TP.B \-\-debug, \-\-dumpallDump all sorts of intermediate arrays to files. .TP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -