Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S1 Thermal Denoise and dB Simultaneous #72

Open
LinghuiXia opened this issue Jan 5, 2021 · 1 comment
Open

S1 Thermal Denoise and dB Simultaneous #72

LinghuiXia opened this issue Jan 5, 2021 · 1 comment

Comments

@LinghuiXia
Copy link

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
Copy link
Contributor

xdenisx commented Jun 8, 2021

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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants