act.retrievals.calculate_dsh_from_dsdh_sdn#

act.retrievals.calculate_dsh_from_dsdh_sdn(ds, dsdh='down_short_diffuse_hemisp', sdn='short_direct_normal', lat='lat', lon='lon')[source]#

Function to derive the downwelling shortwave hemispheric irradiance (dsh) from the downwelling shortwave diffuse hemispheric irradiance (dsdh) and the shortwave direct normal irradiance (sdn). The derived values are added the returned Datasets as a new varible.

Parameters:
  • ds (xarray.Dataset) – Xarray dataset where variables for these calculations are stored.

  • dsdh (str) – Name of the downwelling shortwave diffuse hemispheric irradiance field to use.

  • sdn (str) – Name of shortwave direct normal irradiance field to use.

  • lat (str) – Name of latitude variable in dataset to use for deriving solar zenight angle.

  • lon (str) – Name of longitude variable in dataset to use for deriving solar zenight angle.

Returns:

ds (xarray.Dataset) – ACT Xarray Dataset with calculations included as new variable.