# Radiation: Calculate solar radiation on topography given latitude, date, and time¶

class Radiation(*args, **kwds)[source]

Compute 1D and 2D total incident shortwave radiation.

Landlab component that computes 1D and 2D total incident shortwave radiation. This code also computes relative incidence shortwave radiation compared to a flat surface. Ref: Bras, Rafael L. Hydrology: an introduction to hydrologic science. Addison Wesley Publishing Company, 1990.

Code author: Sai Nudurupati & Erkan Istanbulluoglu

Construction:

Radiation(grid, method='Grid', cloudiness=0.2, latitude=34.,
albedo=0.2, solar_constant=1366.67,
clearsky_turbidity=2., opt_airmass=0.)

Parameters: grid: RasterModelGrid A grid. method: {‘Grid’}, optional Currently, only default is available. cloudiness: float, optional Cloudiness. latitude: float, optional Latitude (radians). albedo: float, optional Albedo. solar_constant: float, optional Solar Constant (W/m^2). clearsky_turbidity: float, optional Clear sky turbidity. opt_airmass: float, optional Optical air mass.

Examples

>>> from landlab import RasterModelGrid
>>> import numpy as np

>>> grid = RasterModelGrid((5, 4), spacing=(0.2, 0.2))
('topographic__elevation',)
('topographic__elevation', 'm')]

>>> rad.grid.number_of_node_rows
5
4
True
True
>>> np.all(grid.at_node['topographic__elevation'] == 0.)
True

>>> grid['node']['topographic__elevation'] = np.array([
...       0., 0., 0., 0.,
...       1., 1., 1., 1.,
...       2., 2., 2., 2.,
...       3., 4., 4., 3.,
...       4., 4., 4., 4.])
>>> current_time = 0.5

update(current_time, hour=12.0, **kwds)[source]