SciTools / iris-esmf-regrid

A collection of structured and unstructured ESMF regridding schemes for Iris.
https://iris-esmf-regrid.readthedocs.io/en/latest
BSD 3-Clause "New" or "Revised" License
19 stars 17 forks source link

Support for ESMF Format offline weights #315

Open hdyson opened 11 months ago

hdyson commented 11 months ago

✨ Feature Request

It would be great if iris-esmf-regrid supported weight files generated offline.

Motivation

We have requirements to regrid high resolution source data to UGrid meshes. The weight generation for this is expensive (e.g. orography source data regrid to C768 on Jasmin required 550Gb RAM for 8 hours). It would be fantastic if we could perform this weights generation step once, and store the weights for future use.

In addition, by using the ESMF weights file format (or another "standard" weights file format), we get the opportunity to use weight files generated by other tools for e.g. consistency with other processing.

Additional context

ESMF weight file format is currently documented here: http://earthsystemmodeling.org/docs/release/ESMF_8_3_0/ESMF_refdoc/node3.html#sec:weightfileformat They are quite aggressive at deleting old versions of docs when new versions of ESMF are released, though, so that link will not be valid indefinitely.

trexfeathers commented 11 months ago

Perhaps the simplest thing would be to write a converter to work with the existing io module, which would avoid us needing to write any further ingestion code.

hdyson commented 11 months ago

Sounds good to me. 👍 I was in a meeting yesterday with @stephenworsley and got the impression that iris-esmf-regrid did not have support for offline weights. If the solution is to have a standalone format converter, or to extend the io module, then I think we have a pathway that works for us.

trexfeathers commented 11 months ago

I didn't mean to close this though! We'll still need to work on the converter

github-actions[bot] commented 4 months ago

@SciTools-incubator/esmf-regrid-devs This issue is stale due to a lack of activity in the last 180 days. Remove stale label or comment, otherwise this issue will close automatically in 14 days time.