isce-framework / fringe

Fine Resolution InSAR With Generalized Eigenvectors (FRInGE)
Apache License 2.0
80 stars 42 forks source link

unwrap with Phass and Snaphu using isce3 env #69

Open mgovorcin opened 2 years ago

mgovorcin commented 2 years ago

This PR contains functions to prepare and run unwrapping with Phass and Snaphu version 2.0.4 as isce3.unwrap modules:

functions: _unwrapphass :: unwrap wrapped interferogram in radians using Phass, added extra function vrt_cpx2rad which creates vrt file that extracts phase from complex format on-the-fly using gdal pixel function

_unwrapsnaphu :: unwrap complex wrapped interferogram with Snaphu v2.0.4, with additional options as tiling, masking, defo_threshold etc.., added deformation_threshold to deal with snaphu infinite loop due to cost overflow when unwrapped result contains too many discontinuities (example: unwrapping Ridgcrest high-resolution coseismic interferograms with tiling option). Snaphu man page suggests either increasing the value of DEFOTHRESHFACTOR or decreasing the value of DEFOCONST

_unw_vrtxml :: creates vrt and xml files for unwrapping outputs similar to isceobj.createImage.renderHdr/renderVRT but without depending on isce2