Skip to content

Commit

Permalink
update get_raw_sigma0_full_size to mask values with DN=0
Browse files Browse the repository at this point in the history
  • Loading branch information
akorosov committed May 31, 2023
1 parent d8e596f commit 1380b92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions s1denoise/sentinel1image.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ def get_raw_sigma0_full_size(self, polarization):
cal_s0 = self.get_calibration_vectors(polarization, line, pixel)

sigma0_fs = dn.astype(float)**2 / self.get_calibration_full_size(polarization, power=2)
sigma0_fs[dn == 0] = np.nan

return sigma0_fs

Expand Down

0 comments on commit 1380b92

Please sign in to comment.