Seems like calibration can only be done after the Thermal Noise Removal.
The ideal threshold can be found by try-and-error, because the border noise strongly varies. There is no ultimate configuration which works for all images.
From the description of the S-1 GRD Border Noise Removal there is a reference to a technical note on how this needs to be done, and how this is implemented by SNAP.
However, the version of the tech note is outdated.
The main update is that starting with IPF 2.90, the no-value pixels at image borders are set to 0 value by the IPF. The masking of the borders thus does not require specific processing.Masking approachfor IPF version lower than 2.90
Could you please check if this is considered by SNAP ?
the IPF is not accessible to the user. It is rather the preparation of the data received at the ground segment by the satellite image provider. It is not part of the pre-processing of SLC or GRD data.