xoa.weights#
Weights files of the interpolation and regridding classes
A weights file is a netcdf file whose groups each hold the weights of one grid, so that a single file can serve all the grids of a model, like the ones of a staggered grid. The name of a group is made of the kind of weights, the method and a fingerprint of the grids, so that weights are found automatically and can never be loaded on another grid.
Note
Groups are appended to the file and never modified, and the file is not protected against several processes writing to it at the same time.
Functions
|
Describe the groups of a weights file |
|
Find the groups of a weights file that match criteria |
|
Get the name of the group of weights |
|
Tell if a weights file exists and has a group |
|
Tell if a file holds the weights of a single grid at its root, without fingerprint |
|
List the groups of a weights file, which is empty if the file does not exist |
|
Load a group of weights in memory |
|
Append a group of weights to a file, which is created if needed |
|
Load the weights of a given grid from a file, with all the checks |