gfs_dynamical_core.GFSDynamicalCore.__call__

GFSDynamicalCore.__call__(state, timestep)[source]

Gets diagnostics from the current model state and steps the state forward in time according to the timestep.

Parameters:
  • state (dict) – A model state dictionary satisfying the input_properties of this object.

  • timestep (timedelta) – The amount of time to step forward.

Returns:

  • diagnostics (dict) – Diagnostics from the timestep of the input state.

  • new_state (dict) – A dictionary whose keys are strings indicating state quantities and values are the value of those quantities at the timestep after input state.

Raises:
  • KeyError – If a required quantity is missing from the state.

  • InvalidStateError – If state is not a value input for the Stepper instance for other reasons.