Before running the code, you need to install the Sentinel Toolbox Application (SNAP) and configure Python to use the SNAP-Python (snappy) interface
The code reads in unzipped Sentinel-1 GRD products (EW and IW modes).
Sentinel-1 pre-processing steps:
(1) Apply orbit file
(2) Thermal noise removal
(3) Radiometric calibration
(4) Speckle filtering
(5) Terrain correction
(6) Subset
This is the general pre-processing steps for Sentinel-1. Since each step is written in a separate function, it can be cutomized based on user needs (Tips: If you would like to modify the parameters, you can refer to the graph builder file (.xml) which can be created in the Graph Builder of SNAP software.). IW images are downsampled from 10m to 40m (the same resolution as EW images) in the terrain correction step.