Skip to content

Commit ef5f20b

Browse files
committed
getting clemence's updates merged with mine
1 parent d83e8aa commit ef5f20b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hypernets_processor/calibration/calibrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ def clip_and_mask(self, dataset, k_unc=3):
259259
ids = np.where(dataset['series_id'] == series_ids[i])
260260
intsig = np.nansum((dataset["digital_number"].values[:, ids]), axis=0)[0]
261261
noisestd, noiseavg = self.sigma_clip(intsig)
262-
maski = np.ones_like(intsig)
263-
maski[np.where(np.abs(intsig - noiseavg) >= k_unc * noisestd)] = 2
262+
maski = np.zeros_like(intsig)
263+
maski[np.where(np.abs(intsig - noiseavg) >= k_unc * noisestd)] = 1
264264
mask = np.append(mask, maski)
265265
# print("mask",mask)
266266

hypernets_processor/surface_reflectance/measurement_functions/water_network_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def function(self,upwelling_radiance,downwelling_radiance,irradiance,rhof,epsilo
1313

1414
rhow_all = [r - epsilon for r in rhow_nosc_all]
1515

16-
return lw_all, rhow_nosc_all, rhow_all, epsilon
16+
return lw_all, rhow_nosc_all, rhow_all
1717

1818
@staticmethod
1919
def get_name():

0 commit comments

Comments
 (0)