act.retrievals.calculate_dsh_from_dsdh_sdn

act.retrievals.calculate_dsh_from_dsdh_sdn(obj, 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:
  • obj (Xarray dataset) – Object 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:

obj (Xarray dataset) – ACT Xarray dataset oject with calculations included as new variables.