Usage of External DEM, Checkbox "Apply Earth Gravitation Model"

Hello,

I think there still exists an error within some GUI dialogs, when an External DEM is chosen and the checkbox “Apply Earth Gravitation Model” initially appears. Microwave Toolbox 11.0.0

E.g. the GUI dialog “Radar/Interferometric/Products/Interferogram Formation”. If one selects “Subtract Topographic Phase” with an External DEM, the initially appearing checkbox “Apply Earth Gravitation Model” is not selected in the GUI, but when displaying the parameters (File/Display Parameters…), the parameter value is unexpectedly “true”. After 1x select/deselect of the checkbox, the parameter value is as expected “false”. This can lead to unwanted parameter setting when running the process with an external DEM (see screenshots below).

I found old posts, where this behaviour already was described for “Range-Doppler Terrain Correction”

So I started the actual SNAP 11 “Range-Doppler Terrain Correction” dialog and there it works correct. The initially appearing checkbox “Apply Earth Gravitation Model” is selected.

Searching more the forum, I found another old post concerning externalDEM and EGM:

I therfore started also the actual SNAP 11 “SAR-Simulation Terrain Correction” dialog and there the same problem appears as above described for “Interferogram Formation”.

I took a quick look at the SNAP 11 source code. One difference I found is within the OpUI-method “private void enableExternalDEM(boolean flag)”. Within RangeDopplerGeocodingOpUI, last line of this method is “externalDEMApplyEGMCheckBox.setSelected(externalDEMApplyEGM)”. This line is missing in InterferogramOpUI and SARSimulationOpUI (and also within CoherenceOpUI).
I think this could be the reason for some reported problems in old posts and the following files should be revised if this is the case (I did no debugging):

  • InterferogramOpUI.java
  • SARSimulationOpUI.java
  • CoherenceOpUI.java

Here the screenshots for the Interferogram-example:

Thank you for reporting this issue.
JIRA ticket SNAP-3958 created.

The problem has been fixed and the fix should be in the next SNAP release. Thank you for pointing out the issue.