Stream: python-questions

Topic: reading in & applying mapping weights files


view this post on Zulip Adam Herrington (Jul 29 2022 at 23:58):

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.

view this post on Zulip Deepak Cherian (Aug 01 2022 at 15:26):

Might have better luck asking here: https://github.com/pangeo-data/xESMF/discussions

view this post on Zulip Matt Long (Aug 16 2022 at 12:57):

@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