TrimSpatialBox#

class scarlet2.renderer.TrimSpatialBox(model_frame, obs_frame)[source]#

Bases: Renderer

Extract cutout the observation box from the model frame box

__call__(model, key=None)[source]#

What to run when TrimSpatialBox is called

get(name=None)#

Get parameter(s) from this module

Parameters:

name (str, optional) – Name of parameter. If not set, returns all parameters.

Returns:

requested data arrays for parameters

Return type:

dict

property parameters#

Parameters defined for this module

Returns:

name: (node, param) mapping for all parameters

Return type:

dict

set(values)#

Set parameter(s) from this module with values

Parameters:

values (dict[str,jnp.array]) – values to replace parameters with, identified by their name

Returns:

new module with parameter(s) replaced by values

Return type:

Module