nansencenter / sentinel1denoised

Thermal noise subtraction, scalloping correction, angular correction
GNU General Public License v3.0
42 stars 14 forks source link

S1 Thermal Denoise and dB Simultaneous #72

Open LinghuiXia opened 3 years ago

LinghuiXia commented 3 years ago

Hello, I have a question. I want to correct and dB the image after denoising (output.tif). How do I write the specific code of Docker?

xdenisx commented 3 years ago

Hello, I have a question. I want to correct and dB the image after denoising (output.tif). How do I write the specific code of Docker?

Hi!

I am not very familiar with Docker but regarding the first part of your question can suggest the following:

from s1denoise import Sentinel1Image
import matplotlib.pyplot as plt

# open access to file with S1 data
s1 = Sentinel1Image('/path/to/data/S1B_EW_GRDM_1SDH_INPUTFILE.zip')

# run thermal noise correction in HV polarisation with the NERSC algorithm
s0_hv = s1.remove_thermal_noise('HV')

# convert to dB
s0_hv = 10*np.log10(s0_hv)

# plot result
plt.imshow(s0_hv , cmap='gray')