Inheritance diagram of climlab.radiation.RRTMG
class climlab.radiation.rrtm.rrtmg.RRTMG(icld=1, irng=1, idrv=0, permuteseed_sw=150, permuteseed_lw=300, dyofyr=0, inflgsw=2, inflglw=2, iceflgsw=1, iceflglw=1, liqflgsw=1, liqflglw=1, tauc_sw=0.0, tauc_lw=0.0, ssac_sw=0.0, asmc_sw=0.0, fsfc_sw=0.0, tauaer_sw=0.0, ssaaer_sw=0.0, asmaer_sw=0.0, ecaer_sw=0.0, tauaer_lw=0.0, isolvar=0, indsolvar=array([0., 0.]), bndsolvar=array([0.]), solcycfrac=0.0, **kwargs)[source]

Bases: climlab.radiation.radiation._Radiation_SW, climlab.radiation.radiation._Radiation_LW

Container to drive combined LW and SW radiation models.

For some details about inputs and diagnostics, see the radiation module.


Depth at grid centers (m)


Depth at grid interfaces (m)


Dictionary access to all diagnostic variables


Dictionary access to all input variables


Latitude of grid centers (degrees North)


Latitude of grid interfaces (degrees North)


Pressure levels at grid centers (hPa or mb)


Pressure levels at grid interfaces (hPa or mb)


Longitude of grid centers (degrees)


Longitude of grid interfaces (degrees)


The amount of time over which step_forward() is integrating in unit seconds.


add_diagnostic(self, name[, value])

Create a new diagnostic variable called name for this process and initialize it with the given value.

add_input(self, name[, value])

Create a new input variable called name for this process and initialize it with the given value.

add_subprocess(self, name, proc)

Adds a single subprocess to this process.

add_subprocesses(self, procdict)

Adds a dictionary of subproceses to this process.


Computes the tendencies for all state variables given current state and specified input.

compute_diagnostics(self[, num_iter])

Compute all tendencies and diagnostics, but don’t update model state.

declare_diagnostics(self, diaglist)

Add the variable names in inputlist to the list of diagnostics.

declare_input(self, inputlist)

Add the variable names in inputlist to the list of necessary inputs.

integrate_converge(self[, crit, verbose])

Integrates the model until model states are converging.

integrate_days(self[, days, verbose])

Integrates the model forward for a specified number of days.

integrate_years(self[, years, verbose])

Integrates the model by a given number of years.

remove_diagnostic(self, name)

Removes a diagnostic from the process.diagnostic dictionary and also delete the associated process attribute.

remove_subprocess(self, name[, verbose])

Removes a single subprocess from this process.

set_state(self, name, value)

Sets the variable name to a new state value.

set_timestep(self[, timestep, …])

Calculates the timestep in unit seconds and calls the setter function of timestep()


Updates state variables with computed tendencies.

to_xarray(self[, diagnostics])

Convert process variables to xarray.Dataset format.