xoa.regrid.Regridder.load_weights

xoa.regrid.Regridder.load_weights#

Regridder.load_weights(weights_file)[source]#

Load the weights of these grids from a netcdf file

The group that matches the fingerprint of the grids and the method is searched. A file in the legacy format, that holds the weights of a single grid without fingerprint, is still read, but only the sizes of the grids can be checked.

Raises:

ValueError – When the file has no weights for these grids and this method