a function “substract flat-earth phase” works well in “Interferogram Formation” of InSAR in SNAP, but I have to use the flat-earth phas to process in my code. I would like to ask is there any way to get the flat-earth phase?
go to file snap_source\s1tbx-master\s1tbx-op-insar\src\main\java\org\esa\s1tbx\insar\gpf\InterferogramOp.java, replace if (subtractFlatEarthPhase && OUTPUT_PHASE) { with if (subtractFlatEarthPhase) { in line 528, replace if (OUTPUT_PHASE) { with if (true) { in line 930.
rebuild code, for example run mvn clean install -Dmaven.test.skip=true in command.
return IDE, run project. waiting for snap desktop start.
in snap, Radar > Interferometric > Products > Interferogram Formation > select Subtract flat-earth phase > Run. After processing, there will be an additional band named fep_xx which is flat-earth phase, like: