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

Implemented generic computation of anomalies on arbitrary time-scale.

parent f3f1c003
No related branches found
No related tags found
No related merge requests found
......@@ -235,11 +235,11 @@ class EoDataset(torch.utils.data.Dataset):
@staticmethod
def anomalies(ds, timescale='time.dayofyear', standard=False):
# group dataset by day of the year
LOGGER.info('Computing standardized anomalies ...')
# group dataset by time scale
LOGGER.info('Computing anomalies ...')
groups = ds.groupby('time.dayofyear').groups
# compute standardized anomalies for each day of the year over time
# compute anomalies over time
anomalies = {}
for time, time_scale in groups.items():
with warnings.catch_warnings():
......
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