xoa.regrid.Regridder.save_weights

xoa.regrid.Regridder.save_weights#

Regridder.save_weights(weights_file)[source]#

Save the weights to a group of a netcdf file

The group is named after the method and a fingerprint of the grids, and it is added to the file, which may hold the weights of other grids. Nothing is written if the group already exists. Bilinear and bicubic methods store fractional indices, and the conservative one stores the arrays of a sparse matrix.