Skip to content
Snippets Groups Projects
Commit a3672cc0 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Implemented generic computation of anomalies on arbitrary time-scale.

parent 5e61c31b
No related branches found
No related tags found
No related merge requests found
......@@ -237,7 +237,7 @@ class EoDataset(torch.utils.data.Dataset):
def anomalies(ds, timescale='time.dayofyear', standard=False):
# group dataset by time scale
LOGGER.info('Computing anomalies ...')
groups = ds.groupby('time.dayofyear').groups
groups = ds.groupby(timescale).groups
# compute anomalies over time
anomalies = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment