Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
climix
climix
Commits
e7c21810
Commit
e7c21810
authored
May 10, 2019
by
Klaus Zimmermann
Browse files
Detect precipiation in input data, not threshold parameter (closes
#39
)
parent
7d6ce2d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
climix/index_functions.py
View file @
e7c21810
...
...
@@ -12,7 +12,7 @@ class SpellLength:
self
.
reducer
=
reducer
def
prepare
(
self
,
input_cube
):
if
is_precipitation
(
self
.
threshold
):
if
is_precipitation
(
self
.
input_cube
):
change_pr_units
(
self
.
threshold
,
new_unit
=
input_cube
.
units
,
new_stname
=
input_cube
.
standard_name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment