📄 snaphu_man1.html
字号:
<table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%"><pre> snaphu -f configfile -i wrappedfile 1024 -o mstfile</pre>Read the unwrapped data in ``mstfile'' and use that as the initialization to the modified network-simplex solver:</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%"><pre> snaphu -f configfile -u mstfile 1024 -o unwrappedfile</pre>Note that in the previous two examples, the output file name in the configuration file is overrided by the one given on the command line. The previous two commands together are in principle equivalent to the preceding one, although round-off errors in flow-to-phase conversions may cause minor differences</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">Unwrap the interferogram as above, but use the MCF algorithmfor initialization:</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%"><pre> snaphu -f configfile wrappedfile 1024 --mcf</pre>Unwrap the interferogram once again, but first flatten it with the unwrapped data in ``estfile,'' then reinsert the subtracted phase after unwrapping:</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%"><pre> snaphu -f configfile wrappedfile 1024 -e estfile</pre>The following assumes that the wrapped input interferogram measures deformation, not topography. Unwrap the interferogram with the given correlation data:</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%"><pre> snaphu -d wrappedfile 1024 -c corrfile</pre>Unwrap the input interferogram by minimizing the unweighted congruent L2 norm:</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%"><pre> snaphu -p 2 -n wrappedfile 1024</pre>Unwrap the interferogram as a three-by-four set of tiles that overlap by 30 pixels, with the specified configuration file, using two processors:</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%"><pre> snaphu wrappedfile 1024 -f configfile \ --tile 3 4 30 30 --nproc 2</pre></td></table><p><a name="HINTS AND TIPS"></a><h2>HINTS AND TIPS</h2><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">The program may print a warning message about costs beingclipped to avoid overflow. If too many costs are clipped,the value of COSTSCALE may need to be decreased in aconfiguration file (via the <b>-f</b> option). If theprogram prints a warning message about an unexpectedincrease in the total solution cost, this is an indicationthat too many costs are clipped. It is usually okay if justa few costs are clipped.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">In topography mode, if the unwrapped result contains toomany discontinuities, try increasing the value of LAYMINEIor decreasing the value of LAYCONST. The former determinesthe normalized intensity threshold for layover, and thelatter is the relative layover probability. If there are toomany discontinuities running in azimuth, try decreasing thevalue of AZDZFACTOR, which affects the ratio of azimuth torange costs. If the baseline is not known, take a guess atit and be sure its sign is correct. Specify the SAR imaginggeometry parameters as well as possible. The defaults assumeERS data with five looks taken in azimuth.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">In deformation mode, if the unwrapped result contains toomany discontinuities, try increasing the value ofDEFOTHRESHFACTOR or decreasing the value of DEFOCONST. Ifthe surface displacement varies slowly and truediscontinuities are not expected at all, DEFOMAX_CYCLE canbe set to zero. This behavior is also invoked with the<b>-s</b> option. The resulting cost functions will besimilar to correlation-weighted L2 cost functions, thoughthe former are not necessarily centered on the wrappedgradients. Congruence is still enforced during rather thanafter optimization.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">The program can be run in initialize-only (<b>-i</b>) modefor quick down-and-dirty MST or MCF solutions.</td></table><p><a name="SIGNALS"></a><h2>SIGNALS</h2><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">Once the iterative solver has started, <b>snaphu</b> trapsthe interrupt (INT) and hangup (HUP) signals. Upon receivingan interrupt, for example if the user types Ctrl-C, theprogram finishes a minor iteration, dumps its currentsolution to the output, and exits. If a second interrupt isgiven after the first (caught) interrupt, the program exitsimmediately. If a hangup signal is received, the programdumps its current solution then continues to executenormally.</td></table><p><a name="EXIT STATUS"></a><h2>EXIT STATUS</h2><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">Upon successful termination, the program exits with code 0.Errors result in exit code 1.</td></table><p><a name="FILES"></a><h2>FILES</h2><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">The following files may be useful for reference, but are notrequired. They are included in the program sourcedistribution and may be installed somewhere on thesystem.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%"><i>snaphu.conf.full</i></td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="21%"></td><td width="79%">Template configuration file setting all valid inputparameters (though some may be commented out).</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%"><i>snaphu.conf.brief</i></td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="21%"></td><td width="79%">General-purpose template configuration file setting the mostimportant or commonly modified inputparameters.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">In addition to parameters read from configuration filesspecified on the command line, default parameters may beread from a system-wide configuration file if such a file isnamed when the program is compiled.</td></table><p><a name="BUGS"></a><h2>BUGS</h2><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">The <b>-w</b> option has not been testedexhaustively.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">Extreme shadow discontinuities (i.e., abrupt elevation dropsin increasing range due to cliffs facing away from theradar) are not modeled that well in the cost functions fortopography mode.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">Abrupt changes in surface reflectivity, such as those ofcoastlines between bright land and dark water, might bemisinterpreted as layover and assigned inappropriatecosts.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">The algorithm's behavior may be unpredictable if the costsare badly scaled and excessively clipped to fit into theirshort-integer data types.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">There is no error checking that ensures that the networknode potentials (incost and outcost) do not overflow theirlong-integer data types.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">Automatic flow clipping is built into the MSTinitialization, but it can give erratic results and may loopinfinitely for certain input data sets. It is consequentlyturned off by default.</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">Dedicated programs for specific Lp objective functions maywork better than <b>snaphu</b> in Lp mode. Note that snaphuenforces congruence as part of the problem formulation,however, not as a post-optimization processingstep.</td></table><p><a name="REFERENCES"></a><h2>REFERENCES</h2><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">C. W. Chen and H. A. Zebker, ``Two-dimensional phaseunwrapping with use of statistical models for cost functionsin nonlinear optimization,'' <i>Journal of the OpticalSociety of America A</i>, <b>18</b>, 338-351(2001).</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">C. W. Chen and H. A. Zebker, ``Network approaches totwo-dimensional phase unwrapping: intractability and two newalgorithms,'' <i>Journal of the Optical Society of AmericaA</i>, <b>17</b>, 401-414 (2000).</td></table><p><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="90%">C. W. Chen and H. A. Zebker, ``Phase unwrapping for largeSAR interferograms: Statistical segmentation and generalizednetwork models,'' <i>IEEE Transactions on Geoscience andRemote Sensing</i>, <b>40</b>, 1709-1719(2002).</td></table><p><hr></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -