-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concatenating cubes realises auxiliary coordinates. #5115
Comments
Please let me know if there is anything I can do, I have some time to work on this! I took a look and managed to get a cube with lazy aux coords after concatenation just by changing Line 57 in 4a945ec
However there are other parts of |
Thanks for the offer @sloosvel 😊. We are pretty stretched at the moment so any help is welcome. You would need to use As for where else the change is needed, I wouldn't know without actually doing the work. Stepping through code would probably help you get to the bottom of this. |
Great, thanks for the tip!
I'll check the other parts of the code further then! If I get something decent, should I just open a PR? |
Yes, we'd love that |
Closed by #5142 |
🐛 Bug Report
It looks like after the concatenation of cubes, the auxiliary coordinates of the input cubes and the resulting concatenated cube get realised. This can be a problem when working with high resolution data in two-dimensional grids, because if the concatenation involves a lot of files, you can end up running out of memory due to the coordinate arrays.
How To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
It would be nice if the coordinate arrays could stay lazy. During the concatenation in ESMValTool maybe we can try to delete the input cubes when we are done concatenating, but if this could be fixed in Iris it would also be great. Thanks.
Screenshots
Environment
OS & Version: [e.g., Ubuntu 20.04 LTS]
NAME="Red Hat Enterprise Linux"
VERSION="8.4 (Ootpa)"
Iris Version: [e.g., From the command line run
python -c "import iris; print(iris.__version__)"
]Additional context
Click to expand this section...
The text was updated successfully, but these errors were encountered: