Skip to content

Commit

Permalink
- Change default threshold_outlier value for EWMA
Browse files Browse the repository at this point in the history
- Small bug fix in report method
Fixes #2 and #4
  • Loading branch information
loicdtx committed Mar 16, 2023
1 parent dcebac0 commit 4a7c078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nrt/monitor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def _report(self, layers, dtype):
returned_layer = [getattr(self, x) for x in layers]
return np.stack(returned_layer, axis=0).astype(dtype)

def report(self, filename, layers=['mask', 'date'],
def report(self, filename, layers=['mask', 'detection_date'],
driver='GTiff', crs=CRS.from_epsg(3035),
dtype=np.int16):
"""Write the result of reporting to a raster geospatial file
Expand Down
2 changes: 1 addition & 1 deletion nrt/monitor/ewma.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class EWMA(BaseNrt):
``.from_netcdf()``
"""
def __init__(self, trend=True, harmonic_order=2, sensitivity=2, mask=None,
lambda_=0.3, threshold_outlier=2, **kwargs):
lambda_=0.3, threshold_outlier=10, **kwargs):
super().__init__(mask=mask,
trend=trend,
harmonic_order=harmonic_order,
Expand Down

0 comments on commit 4a7c078

Please sign in to comment.