openairclim.calc_response
Calculates responses for each species and scenario
- openairclim.calc_response.calc_resp(spec: str, inv, weights) ndarray[source]
Calculate response from response surfaces, emission inventories and pre-computed weighting parameters.
- Parameters:
spec (str) – Name of response species
inv (xarray.Dataset) – Emission inventory data
weights (xarray.Dataset) – Dataset with weighting parameters
- Raises:
KeyError – if species not valid
- Returns:
Response array
- Return type:
np.ndarray
- openairclim.calc_response.calc_resp_all(config, resp_dict, inv_dict)[source]
Loop calc_response function over elements in response dictionary
- Parameters:
- Returns:
- Dictionary of dictionary of numpy arrays of computed responses,
keys are species and inventory years
- Return type: