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 from the downwelling shortwave diffuse hemispheric irradiance (dsdh) and the shortwave direct normal irradiance (sdn) at a given location (lat,lon)

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. Defaults to downwelling_sw_diffuse_hemisp_irradiance.

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

  • lat (str) – Name of latitude field in dataset to use. Defaults to ‘lat’.

  • lon (str) – Name of longitued field in dataset to use. Defaults to ‘lon’.

Returns:

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