no attribute 'MAX_RUN' #5179
-
Hi, I'm trying to calculate the longest run of precipitation exceeding 1 mm/day. I found this example in the docs: https://scitools-iris.readthedocs.io/en/stable/generated/api/iris/analysis.html#iris.analysis.MAX_RUN For example: The longest run of days with precipitation exceeding 10 (in cube data units) at each grid location could be calculated with: result = precip_cube.collapsed('time', iris.analysis.MAX_RUN, However, when I try this I get the following error I don't get this error with any of the other aggregator instances that I've tried. Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @awells96, thanks for getting in touch. What version of Iris do you get when you run the following in the command line? python -c "import iris; print(iris.__version__)" |
Beta Was this translation helpful? Give feedback.
Hi @awells96, thanks for getting in touch.
iris.analysis.MAX_RUN
was introduced fairly recently - Irisv3.3
- so there is a chance that your environment is simply using an older version of Iris.What version of Iris do you get when you run the following in the command line?
python -c "import iris; print(iris.__version__)"