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, iaer=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., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]), solcycfrac=0.0, **kwargs)[source]
Bases:
_Radiation_SW,_Radiation_LWContainer to drive combined LW and SW radiation models.
For some details about inputs and diagnostics, see the radiation module.
- Attributes:
- S0
- coszen
depthDepth at grid centers (m)
depth_boundsDepth at grid interfaces (m)
diagnosticsDictionary access to all diagnostic variables
inputDictionary access to all input variables
- insolation
- irradiance_factor
latLatitude of grid centers (degrees North)
lat_boundsLatitude of grid interfaces (degrees North)
levPressure levels at grid centers (hPa or mb)
lev_boundsPressure levels at grid interfaces (hPa or mb)
lonLongitude of grid centers (degrees)
lon_boundsLongitude of grid interfaces (degrees)
timestepThe amount of time over which
step_forward()is integrating in unit seconds.
Methods
add_diagnostic(name[, value])Create a new diagnostic variable called
namefor this process and initialize it with the givenvalue.add_input(name[, value])Create a new input variable called
namefor this process and initialize it with the givenvalue.add_subprocess(name, proc[, verbose])Adds a single subprocess to this process.
add_subprocesses(procdict)Adds a dictionary of subproceses to this process.
compute()Computes the tendencies for all state variables given current state and specified input.
compute_diagnostics([num_iter])Compute all tendencies and diagnostics, but don't update model state.
declare_diagnostics(diaglist)Add the variable names in
inputlistto the list of diagnostics.declare_input(inputlist)Add the variable names in
inputlistto the list of necessary inputs.integrate_converge([crit, verbose])Integrates the model until model states are converging.
integrate_days([days, verbose])Integrates the model forward for a specified number of days.
integrate_years([years, verbose])Integrates the model by a given number of years.
remove_diagnostic(name)Removes a diagnostic from the
process.diagnosticdictionary and also delete the associated process attribute.remove_subprocess(name[, verbose])Removes a single subprocess from this process.
set_state(name, value)Sets the variable
nameto a new statevalue.set_timestep([timestep, num_steps_per_year])Calculates the timestep in unit seconds and calls the setter function of
timestep()step_forward()Updates state variables with computed tendencies.
to_xarray([diagnostics, timeave])Convert process variables to
xarray.Datasetformat.- property S0
- property coszen
- property irradiance_factor