Radiation
frierson_atmospheric_heating(ds, albedo=0)
Returns the atmospheric radiative heating rate from the surface and top of atmosphere energy fluxes. A negative value indicates that the atmosphere is cooling.
This takes into account any radiation that is absorbed by the atmosphere on its way down from space to the surface,
as specified through tau_equator and the amount reflected at the surface through the albedo.
In Isca, there is no absorption of the shortwave radiation as it moves back up through the atmosphere to space after being reflected at the surface.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ds
|
Dataset
|
Dataset for particular experiment, must contain:
|
required |
albedo
|
float
|
Fraction of incident shortwave radiation reflected by the surface.
It is specified through the option |
0
|
Returns: Atmospheric radiative heating rate in \(W/m^2\).
Source code in isca_tools/utils/radiation.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | |
frierson_net_toa_sw_dwn(insolation, surface_pressure, albedo=0, tau_equator=0, tau_lat_var=0, pressure_exponent=4, ref_pressure=101325)
Function to calculate the net downward shortwave radiation at the top of atmosphere for the Frierson and Byrne radiation schemes.
This takes into account any radiation that is absorbed by the atmosphere on its way down from space to the surface,
as specified through tau_equator and the amount reflected at the surface through the albedo.
In Isca, there is no absorption of the shortwave radiation as it moves back up through the atmosphere to space after being reflected at the surface.
All default values are the default values in Isca if the option is not specified in the relavent namelist.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
insolation
|
DataArray
|
Incident shortwave radiation at the top of atmosphere
with dimensions of latitude, longitude and time.
This is saved by Isca if the variable |
required |
surface_pressure
|
DataArray
|
Surface pressure in Pa with dimensions of latitude, longitude and time, \(p_s\).
This is saved by Isca if the variable |
required |
albedo
|
float
|
Fraction of incident shortwave radiation reflected by the surface.
It is specified through the option |
0
|
tau_equator
|
float
|
Surface optical depth at the equator, \(\tau_{0e}^*\).
It is specified through the option |
0
|
tau_lat_var
|
float
|
Variation of optical depth with latitude, \(\Delta \tau^*\).
It is specified through the option |
0
|
pressure_exponent
|
float
|
Determines the variation of optical depth with pressure, \(\kappa^*\).
It is specified through the option |
4
|
ref_pressure
|
float
|
Reference pressure used by Isca in Pa.
It is specified through the option |
101325
|
Returns:
| Type | Description |
|---|---|
DataArray
|
Net downward shortwave radiation at the top of atmosphere with dimensions of latitude, longitude and time. |
Source code in isca_tools/utils/radiation.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | |
frierson_sw_optical_depth(surface_pressure, tau_equator=0, tau_lat_var=0, pressure_exponent=4, ref_pressure=101325)
Function to calculate shortwave surface optical depth, \(\tau_s\), as a function of latitude, \(\phi\), as performed in Isca for the Frierson and Byrne radiation schemes:
All default values are the default values in Isca if the option is not specified in the relavent namelist.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
surface_pressure
|
DataArray
|
Surface pressure in Pa with dimensions of latitude, longitude and time, \(p_s\).
This is saved by Isca if the variable |
required |
tau_equator
|
float
|
Surface optical depth at the equator, \(\tau_{0e}^*\).
It is specified through the option |
0
|
tau_lat_var
|
float
|
Variation of optical depth with latitude, \(\Delta \tau^*\).
It is specified through the option |
0
|
pressure_exponent
|
float
|
Determines the variation of optical depth with pressure, \(\kappa^*\).
It is specified through the option |
4
|
ref_pressure
|
float
|
Reference pressure used by Isca in Pa.
It is specified through the option |
101325
|
Returns:
| Type | Description |
|---|---|
DataArray
|
Shortwave surface optical depth with dimensions of latitude, longitude and time. |
Source code in isca_tools/utils/radiation.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | |
get_frierson_sw_abs(atm_abs=None, p_surf=None, sw_diff=0, solar_exponent=4, p_ref=101325, swdn_sfc=None, swdn_toa=None, albedo=0)
Calculates the fraction of incoming shortwave radiation absorbed by the atmosphere.
Calculates atmospheric shortwave absorption either from supplied downward
shortwave fluxes at the surface and top of atmosphere, or from the
Frierson shortwave optical-depth parameterization. The flux-based method
is used only when both swdn_sfc and swdn_toa are provided.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
atm_abs
|
Optional[float]
|
Atmospheric shortwave absorption parameter used by the optical-depth parameterization. Ignored when both shortwave flux inputs are provided. This is the name in Isca namelist. |
None
|
p_surf
|
Optional[DataArray]
|
Surface pressure. Used by the optical-depth parameterization; ignored when both shortwave flux inputs are provided. |
None
|
sw_diff
|
float
|
Additive shortwave optical-depth parameter. This is the name in Isca namelist. |
0
|
solar_exponent
|
float
|
Exponent controlling the pressure dependence of shortwave optical depth. This is the name in Isca namelist. |
4
|
p_ref
|
float
|
Reference pressure for the optical-depth parameterization, in Pa. |
101325
|
swdn_sfc
|
Optional[DataArray]
|
Downward shortwave flux at the surface. |
None
|
swdn_toa
|
Optional[DataArray]
|
Downward shortwave flux at the top of the atmosphere. |
None
|
albedo
|
float
|
Surface albedo used to infer atmospheric absorption from the fluxes. |
0
|
Returns:
| Type | Description |
|---|---|
DataArray
|
Fraction of incoming shortwave radiation absorbed by the atmosphere. |
DataArray
|
The returned |
DataArray
|
the supplied fluxes or surface pressure. |
Notes
With supplied fluxes, atmospheric absorption is
Otherwise, it is calculated from the shortwave optical depth as
where $\(\tau_{\mathrm{sw}}\)$ is calculated by
frierson_sw_optical_depth.
Source code in isca_tools/utils/radiation.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | |
get_heat_capacity(c_p, density, layer_depth, return_depth=False)
Given heat capacity un units of \(JK^{-1}kg^{-1}\), this returns heat capacity in units of \(JK^{-1}m^{-2}\).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
c_p
|
float
|
Specific heat at constant pressure. Units: \(JK^{-1}kg^{-1}\) |
required |
density
|
float
|
Density of substance (usually air or water). Units: \(kgm^{-3}\) |
required |
layer_depth
|
float
|
Depth of layer or heat capacity if |
required |
return_depth
|
bool
|
If |
False
|
Returns:
| Type | Description |
|---|---|
float
|
Heat capacity in units of \(JK^{-1}m^{-2}\) or mixed layer depth in \(m\) if |
Source code in isca_tools/utils/radiation.py
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | |
get_sw_abs_amp(swdn_sfc, swdn_toa, time, albedo)
Compute the atmospheric shortwave absorption from annual-harmonic amplitudes.
The atmospheric absorption fraction is inferred from the ratio between the amplitude of the first annual harmonic of downward shortwave radiation at the surface and at the top of the atmosphere:
\(f_\mathrm{abs} = 1 - \frac{A_\mathrm{sfc}} {A_\mathrm{TOA}(1 - \alpha)}\)
where \(A_\mathrm{sfc}\) and \(A_\mathrm{TOA}\) are the positive amplitudes of the annual harmonic in surface and top-of-atmosphere downward shortwave radiation, respectively, and \(\alpha\) is the surface albedo.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
swdn_sfc
|
ndarray
|
Downward shortwave radiation at the surface, sampled at |
required |
swdn_toa
|
ndarray
|
Downward shortwave radiation at the top of the atmosphere, sampled at
|
required |
time
|
ndarray
|
Time coordinate corresponding to the radiation data. Its units and
sampling must be compatible with :func: |
required |
albedo
|
float
|
Surface albedo, expressed as a fraction between 0 and 1. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Fraction of the incoming annual-harmonic shortwave-radiation amplitude |
float
|
absorbed by the atmosphere. |
Notes
This diagnostic concerns the seasonal-cycle amplitude rather than the
time-mean shortwave absorption. It assumes that amp_toa and
1 - albedo are non-zero.
Source code in isca_tools/utils/radiation.py
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | |
opd_lw_gray(lat, pressure=None, kappa=1, tau_eq=6, tau_pole=1.5, pressure_ref=10 ** 5, frac_linear=0.1, k_exponent=4)
Returns the longwave optical depth used in the
Frierson
Isca rad_scheme.
If pressure not provided, will return surface value. Otherwise, will return value at give pressure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lat
|
ndarray
|
|
required |
pressure
|
Optional[float]
|
Pressure in Pa. |
None
|
kappa
|
float
|
Frierson optical depth scaling parameter.
|
1
|
tau_eq
|
float
|
Surface longwave optical depth at equator.
|
6
|
tau_pole
|
float
|
Surface longwave optical depth at pole.
|
1.5
|
pressure_ref
|
float
|
Reference pressure in Pa. |
10 ** 5
|
frac_linear
|
float
|
Determines partitioning between linear term and \(p^k\) term.
|
0.1
|
k_exponent
|
float
|
Pressure exponent.
|
4
|
Returns:
| Name | Type | Description |
|---|---|---|
opd |
ndarray
|
|
Source code in isca_tools/utils/radiation.py
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | |