This question is for a colleague who uses python and wants to use mapping weight files that I've generated using various remapping packages. In NCL, this is pretty simply. But it's not clear whether xESMF or whatever python library of choice can do this.
Might have better luck asking here: https://github.com/pangeo-data/xESMF/discussions
@Adam Herrington, this is pretty easy, I think. This xESMF function:
https://github.com/JiaweiZhuang/xESMF/blob/2d2e365065711337286404e36fcb23c0def9eba8/xesmf/smm.py#L10
reads weights. And this one:
https://github.com/JiaweiZhuang/xESMF/blob/2d2e365065711337286404e36fcb23c0def9eba8/xesmf/smm.py#L44
applies them.
Last updated: May 16 2025 at 17:14 UTC