Closed itarec1988 closed 6 years ago
Glad that you find xESMF helpful!
You don't have to loop over layers. xESMF will do the broadcasting for you, i.e. regridder(co)
should just work.
The next version will let users explicitly load existing weights instead of doing so implicitly (#11), so that message won't exist anymore.
You are right.. it works. Thanks again.
What is the status of this? I am using xesmf 0.2.0 with esmf/esmpy 7.1.0 and would really like to turn off the reuse existing weights prints.
This https://github.com/JiaweiZhuang/xESMF/issues/86 PR exists but has not been submitted yet. @JiaweiZhuang , could the next version have the reuse weights message commented out, or do you see a real need to have it? When we create GEOS-Chem benchmark plots we literally gets hundreds of lines of this message, drowning out the important messages.
This #86 PR exists but has not been submitted yet. @JiaweiZhuang
That one is an issue not an PR. A quick PR to switch it to logging/warning is welcome!
I propose removal in the next version with an open call for submission of a PR to implement as logging/warning.
Hey @JiaweiZhuang
I am using xESMF since some weeks ago and I am very happy with it. Its very fast compared to my former regridding tool ESMPy.. Well done.
I was just wondering if there is a way of avoiding the messages when the weights are reused? I tried with ; at the end of the code snipet but still the message is printed out. I am looping over several layer and I really want to avoid printing. This is an excerpt of the loop I have:
This is printed after each loop... Reuse existing file: bilinear_451x900_184x309.nc
Thanks in advance..