8.2.4. glofrim.Glofrim.exchange

Glofrim.exchange(from_mod, to_mod, from_vars, to_vars, coupling, add=False, **kwargs)[source]

Exchanges variable content from specified source variable in source model to a specified destination variable in the destination model. exchange is possible for entire grid or at specified indices; coupling either as totals or fractional values depending on exchange; source variable can either add to destination variable or overwrite it

Arguments:

from_mod {str} – string defining the source model to_mod {str} – string defining the destination model from_vars {str} – string defining the source variable to_vars {str} – string defining the destination variable coupling {SpatialCoupling} – object defining the spatial coupling structure

Keyword Arguments:

add {bool} – if True, source values are added to destination values; if False, overwritten (default: {False})