Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Climax
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
earth_observation_public
Climax
Commits
5e61c31b
Commit
5e61c31b
authored
3 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Implemented generic computation of anomalies on arbitrary time-scale.
parent
f3f1c003
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
climax/core/dataset.py
+3
-3
3 additions, 3 deletions
climax/core/dataset.py
with
3 additions
and
3 deletions
climax/core/dataset.py
+
3
−
3
View file @
5e61c31b
...
...
@@ -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
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment