Skip to content

aeromaps.models.sustainability_assessment.climate.temperature_target

temperature_target

Module to compute global world and aviation temperature targets.

TemperatureTarget

TemperatureTarget(name='temperature_target', *args, **kwargs)

Bases: AeroMAPSModel

Global world and aviation temperature targets.

Parameters:

Name Type Description Default
name str

Name of the model instance, by default "temperature_target"

'temperature_target'
Source code in aeromaps/models/sustainability_assessment/climate/temperature_target.py
23
24
def __init__(self, name="temperature_target", *args, **kwargs):
    super().__init__(name=name, *args, **kwargs)

compute

compute(historical_temperature_increase, temperature_target, aviation_temperature_target_allocated_share)

Temperature targets calculation.

Parameters:

Name Type Description Default
historical_temperature_increase float

Historical temperature increase (°C).

required
temperature_target float

Global temperature target (°C), set by user.

required
aviation_temperature_target_allocated_share float

Aviation temperature target allocated share (%).

required

Returns:

Name Type Description
world_temperature_target float

World temperature target (°C).

aviation_temperature_target float

Aviation temperature target (°C).

Source code in aeromaps/models/sustainability_assessment/climate/temperature_target.py
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
def compute(
    self,
    historical_temperature_increase: float,
    temperature_target: float,
    aviation_temperature_target_allocated_share: float,
) -> Tuple[float, float]:
    """
    Temperature targets calculation.

    Parameters
    ----------
    historical_temperature_increase : float
        Historical temperature increase (°C).
    temperature_target : float
        Global temperature target (°C), set by user.
    aviation_temperature_target_allocated_share : float
        Aviation temperature target allocated share (%).

    Returns
    -------
    world_temperature_target : float
        World temperature target (°C).
    aviation_temperature_target : float
        Aviation temperature target (°C).
    """

    world_temperature_target = temperature_target-historical_temperature_increase
    aviation_temperature_target = world_temperature_target * aviation_temperature_target_allocated_share / 100

    self.float_outputs["world_temperature_target"] = world_temperature_target
    self.float_outputs["aviation_temperature_target"] = aviation_temperature_target

    return world_temperature_target, aviation_temperature_target