Hooking extreme event detection algorithms into esm_runscripts #988
Replies: 7 comments 14 replies
-
Hi Jan, Depending on how expensive these algorithms are in terms of resources, one would need to use 1) the workflow manager to launch an independent job in slurm, or 2) make a plugin for it to connect to the same job as the simulation, the advantage being that the plugin allows coding in Python and accessing the information in I don't think we should add by default extra stuff to AWICM3 and AWIESM2 (I think the user should make sure they trigger it themselves), however, I don't really understand the science behind it or the needs for it. As always, it's more of a matter of what the users want/need. |
Beta Was this translation helpful? Give feedback.
-
Good point. Expensive things should not stop us from resubmitting the next job. Anything longer than a minute or two should run in a separate job. @norelrimbu suggested having a look at https://github.com/oloapinivad/MiLES 1D and 2D blocking. I like that idea, as I used that package myself for a paper a while ago. It's written in R, but even as an R novice it was usable. I agree we should not use the esm_tools backend, just the options to hook in. |
Beta Was this translation helpful? Give feedback.
-
I would go for the route of new slurm jobs via the workflow manager. In principle, post jobs could get more and more expensive the more stuff we add in over time. In my view it should be:
Diagramming is better in Gitlab 😉. I think clever use of the workflow manager can handle that. @JanStreffing, what exactly do you mean here:
|
Beta Was this translation helpful? Give feedback.
-
@mandresm, @norelrimbu. I think we have collected enough information to give it a first try. Maybe we can find a 2 hour time slot somewhere, meet at AWI and see how far we can get. To give a bit of structure to our kickoff meeting, here are a few points we may want to consider. Feel free to add more:
I have no major meetings etc. the next weeks. I leave the suggestion of a date and time to you. |
Beta Was this translation helpful? Give feedback.
-
For my R function only ncdf4 R-package is necessary. But for more complex calculations, like PV blocking based indices, we need more R packages. Keep in mind that new version of the R packages are published often. It is not difficult, probably, to change the R codes in Fortran routines. |
Beta Was this translation helpful? Give feedback.
-
Some documentation about it: |
Beta Was this translation helpful? Give feedback.
-
The R scripts I would like to add also use external libraries. Until now, I ran them by using a conda environment where I had installed the packages before:
Would something similar be possible also when running the scripts as part of esm_tools? |
Beta Was this translation helpful? Give feedback.
-
At the palo climate retreat we had a discussion on automatically triggering some of our existing extreme event detection algorithms for AWI-ESM2, AWI-CM3, and eventually AWI-ESM3 output. People that would be interested to hook their existing scripts into esm_tools were: @norelrimbu and @justuscontzen after his thesis.
Questions and suggestions from my side:
I would suggest we try this process with a one or two frequently used algorithm and see how it goes.
@nwieters @mandresm @pgierz From your side it would be nice to have some input on which place to hook in. e.g. do we use the general postprocessing script interface or some place else. Also, do we better control via arguments or is it easier to read straight from the finished yaml.
Beta Was this translation helpful? Give feedback.
All reactions